Remove setDbgMetadata and getDbgMetadata; their users have been
authorDan Gohman <gohman@apple.com>
Tue, 20 Jul 2010 20:18:21 +0000 (20:18 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 20 Jul 2010 20:18:21 +0000 (20:18 +0000)
replaced with setDebugLoc and getDebugLoc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108914 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h
lib/VMCore/Metadata.cpp

index 0b772b0aae44184ece239f97269efd4c9efb7ca0..45959ccc6e59acee127e3af07cfdbf17e9d2d0aa 100644 (file)
@@ -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; }
   
index 3100d4ac7c9c3de089651a8c3870562534f1591a..22e758763d63297271b56a8042d63102935e8f30 100644 (file)
@@ -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.