diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-20 20:18:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-20 20:18:21 +0000 |
commit | 47a0f0d56f7a229bf2646c7b69fbe1ed43b87715 (patch) | |
tree | a6d382a6ee99443fd767f627956266a9886060a2 | |
parent | af82e3510b768f2f194eaebdea5924f4f506caed (diff) | |
download | bcm5719-llvm-47a0f0d56f7a229bf2646c7b69fbe1ed43b87715.tar.gz bcm5719-llvm-47a0f0d56f7a229bf2646c7b69fbe1ed43b87715.zip |
Remove setDbgMetadata and getDbgMetadata; their users have been
replaced with setDebugLoc and getDebugLoc.
llvm-svn: 108914
-rw-r--r-- | llvm/include/llvm/Instruction.h | 10 | ||||
-rw-r--r-- | llvm/lib/VMCore/Metadata.cpp | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h index 0b772b0aae4..45959ccc6e5 100644 --- a/llvm/include/llvm/Instruction.h +++ b/llvm/include/llvm/Instruction.h @@ -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; } diff --git a/llvm/lib/VMCore/Metadata.cpp b/llvm/lib/VMCore/Metadata.cpp index 3100d4ac7c9..22e758763d6 100644 --- a/llvm/lib/VMCore/Metadata.cpp +++ b/llvm/lib/VMCore/Metadata.cpp @@ -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. |