diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-07 18:46:57 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-07 18:46:57 +0000 |
commit | 92ce42f9fc8758ff83da3ebf7cd0a60bdaec3c58 (patch) | |
tree | 236a928be7dc781322bd7e10bf5551bf452737b5 /include/llvm/Metadata.h | |
parent | 9467f0e3bd2b0fece0d50a6d92f996b4f3952096 (diff) | |
download | external_llvm-92ce42f9fc8758ff83da3ebf7cd0a60bdaec3c58.zip external_llvm-92ce42f9fc8758ff83da3ebf7cd0a60bdaec3c58.tar.gz external_llvm-92ce42f9fc8758ff83da3ebf7cd0a60bdaec3c58.tar.bz2 |
Reapply r97788 to free MDNodes when the LLVMContext is destroyed. It
bootstraps llvm-gcc this time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r-- | include/llvm/Metadata.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index e536322..cecb7da 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -108,9 +108,6 @@ class MDNode : public Value, public FoldingSetNode { /// node with T. void replaceOperand(MDNodeOperand *Op, Value *NewVal); ~MDNode(); - /// replaceAllOperandsWithNull - This is used while destroying llvm context to - /// gracefully delete all nodes. This method replaces all operands with null. - void replaceAllOperandsWithNull(); protected: explicit MDNode(LLVMContext &C, Value *const *Vals, unsigned NumVals, @@ -166,9 +163,7 @@ private: bool isNotUniqued() const { return (getSubclassDataFromValue() & NotUniquedBit) != 0; } - void setIsNotUniqued() { - setValueSubclassData(getSubclassDataFromValue() | NotUniquedBit); - } + void setIsNotUniqued(); // Shadow Value::setValueSubclassData with a private forwarding method so that // any future subclasses cannot accidentally use it. |