mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Remove setDbgMetadata and getDbgMetadata; their users have been
replaced with setDebugLoc and getDebugLoc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8238f02650
commit
a09e67af33
@ -170,16 +170,6 @@ public:
|
||||
void setMetadata(unsigned KindID, MDNode *Node);
|
||||
void setMetadata(const char *Kind, MDNode *Node);
|
||||
|
||||
/// setDbgMetadata - This is just an optimized helper function that is
|
||||
/// equivalent to setMetadata("dbg", Node);
|
||||
void setDbgMetadata(MDNode *Node);
|
||||
|
||||
/// getDbgMetadata - This is just an optimized helper function that is
|
||||
/// equivalent to calling getMetadata("dbg").
|
||||
MDNode *getDbgMetadata() const {
|
||||
return DbgLoc.getAsMDNode(getContext());
|
||||
}
|
||||
|
||||
/// setDebugLoc - Set the debug location information for this instruction.
|
||||
void setDebugLoc(const DebugLoc &Loc) { DbgLoc = Loc; }
|
||||
|
||||
|
@ -445,10 +445,6 @@ MDNode *Instruction::getMetadataImpl(const char *Kind) const {
|
||||
return getMetadataImpl(getContext().getMDKindID(Kind));
|
||||
}
|
||||
|
||||
void Instruction::setDbgMetadata(MDNode *Node) {
|
||||
DbgLoc = DebugLoc::getFromDILocation(Node);
|
||||
}
|
||||
|
||||
/// setMetadata - Set the metadata of of the specified kind to the specified
|
||||
/// node. This updates/replaces metadata if already present, or removes it if
|
||||
/// Node is null.
|
||||
|
Loading…
Reference in New Issue
Block a user