diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-20 22:25:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-20 22:25:04 +0000 |
commit | 4f1be4abba762f8a7b77d7622abaf1ed1a87b48b (patch) | |
tree | cac6260696e5757612a2ce38b17bd6c54226ce49 /lib/VMCore/Instruction.cpp | |
parent | 7648bd428b42170b27b53a4faff33dc029579dcc (diff) |
Rename removeAllMetadata to clearMetadataHashEntries and simplify
it to just do the things that need to be done when an instruction
is deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instruction.cpp')
-rw-r--r-- | lib/VMCore/Instruction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 9792adaaa1..05bed4c643 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -49,8 +49,8 @@ Instruction::Instruction(const Type *ty, unsigned it, Use *Ops, unsigned NumOps, // Out of line virtual method, so the vtable, etc has a home. Instruction::~Instruction() { assert(Parent == 0 && "Instruction still linked in the program!"); - if (hasMetadata()) - removeAllMetadata(); + if (hasMetadataHashEntry()) + clearMetadataHashEntries(); } |