mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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
This commit is contained in:
@@ -563,13 +563,11 @@ getAllMetadataOtherThanDebugLocImpl(SmallVectorImpl<std::pair<unsigned,
|
||||
}
|
||||
|
||||
|
||||
/// removeAllMetadata - Remove all metadata from this instruction.
|
||||
void Instruction::removeAllMetadata() {
|
||||
assert(hasMetadata() && "Caller should check");
|
||||
DbgLoc = DebugLoc();
|
||||
if (hasMetadataHashEntry()) {
|
||||
getContext().pImpl->MetadataStore.erase(this);
|
||||
setHasMetadataHashEntry(false);
|
||||
}
|
||||
/// clearMetadataHashEntries - Clear all hashtable-based metadata from
|
||||
/// this instruction.
|
||||
void Instruction::clearMetadataHashEntries() {
|
||||
assert(hasMetadataHashEntry() && "Caller should check");
|
||||
getContext().pImpl->MetadataStore.erase(this);
|
||||
setHasMetadataHashEntry(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user