mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
rename NewDebugLoc -> DebugLoc, prune #includes in DebugLoc.h.
This keeps around temporary typedef for clang/llvm-gcc so the build won't break when I commit this :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -425,7 +425,7 @@ MDNode *Instruction::getMetadataImpl(const char *Kind) const {
|
||||
}
|
||||
|
||||
void Instruction::setDbgMetadata(MDNode *Node) {
|
||||
DbgLoc = NewDebugLoc::getFromDILocation(Node);
|
||||
DbgLoc = DebugLoc::getFromDILocation(Node);
|
||||
}
|
||||
|
||||
/// setMetadata - Set the metadata of of the specified kind to the specified
|
||||
@@ -436,7 +436,7 @@ void Instruction::setMetadata(unsigned KindID, MDNode *Node) {
|
||||
|
||||
// Handle 'dbg' as a special case since it is not stored in the hash table.
|
||||
if (KindID == LLVMContext::MD_dbg) {
|
||||
DbgLoc = NewDebugLoc::getFromDILocation(Node);
|
||||
DbgLoc = DebugLoc::getFromDILocation(Node);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -549,7 +549,7 @@ getAllMetadataOtherThanDebugLocImpl(SmallVectorImpl<std::pair<unsigned,
|
||||
/// removeAllMetadata - Remove all metadata from this instruction.
|
||||
void Instruction::removeAllMetadata() {
|
||||
assert(hasMetadata() && "Caller should check");
|
||||
DbgLoc = NewDebugLoc();
|
||||
DbgLoc = DebugLoc();
|
||||
if (hasMetadataHashEntry()) {
|
||||
getContext().pImpl->MetadataStore.erase(this);
|
||||
setHasMetadataHashEntry(false);
|
||||
|
||||
Reference in New Issue
Block a user