When not destroying the source, the linker is not remapping the types. Added support
[oota-llvm.git] / include / llvm / Metadata.h
index c3230251d4823b76858fd2ced1574cc96cfa119f..9466a5791ccbd2c92b590dba51e58f1ec15ea7c5 100644 (file)
@@ -34,8 +34,9 @@ template<typename ValueSubClass, typename ItemParentClass>
 //===----------------------------------------------------------------------===//
 /// MDString - a single uniqued string.
 /// These are used to efficiently contain a byte sequence for metadata.
-/// MDString is always unnamd.
+/// MDString is always unnamed.
 class MDString : public Value {
+  virtual void anchor();
   MDString(const MDString &);            // DO NOT IMPLEMENT
 
   StringRef Str;
@@ -225,6 +226,9 @@ public:
 
   /// print - Implement operator<< on NamedMDNode.
   void print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW = 0) const;
+
+  /// dump() - Allow printing of NamedMDNodes from the debugger.
+  void dump() const;
 };
 
 } // end llvm namespace