Refactor the DIFile (2nd) parameter to DITypes to be an MDNode reference to a raw...
[oota-llvm.git] / include / llvm / DebugInfo.h
index 4240b24359c94d710eec6891db1fe37beb621493..30ea378a6fadf8c5359d437c94ecd3873710bb5a 100644 (file)
@@ -177,6 +177,7 @@ namespace llvm {
       if (DbgNode && !isFile())
         DbgNode = 0;
     }
+    MDNode *getFileNode() const;
     bool Verify() const;
   };
 
@@ -287,12 +288,6 @@ namespace llvm {
     bool isValid() const {
       return DbgNode && (isBasicType() || isDerivedType() || isCompositeType());
     }
-    StringRef getDirectory() const  {
-      return getFieldAs<DIFile>(1).getDirectory();
-    }
-    StringRef getFilename() const  {
-      return getFieldAs<DIFile>(1).getFilename();
-    }
 
     /// isUnsignedDIType - Return true if type encoding is unsigned.
     bool isUnsignedDIType();