aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-03-13 01:26:15 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-03-13 01:26:15 +0000
commit6f555ca2cd0bba50542adcbb131f541ae70d34cd (patch)
tree551444ef3af31f75e10dbbee06c3470dff7a1ae8 /include
parent815baebe1c8dc02accf128ae10dff9a1742d3244 (diff)
downloadexternal_llvm-6f555ca2cd0bba50542adcbb131f541ae70d34cd.zip
external_llvm-6f555ca2cd0bba50542adcbb131f541ae70d34cd.tar.gz
external_llvm-6f555ca2cd0bba50542adcbb131f541ae70d34cd.tar.bz2
Delete MDNodes when LLVMContext is destroyed. Previous attempts: r97918, r97788.
Tested: clang debug bootstrap, llvm-gcc bootstrap, `make check-lit` after configuring with --with-llvmgccdir (and this did run the FrontendC* tests this time) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Metadata.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index cf87989..ff3e03e 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -110,9 +110,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,
@@ -168,9 +165,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.