[llvm] r175428 - Add `DIFile DISubprogram::getFile() const` for DragonEgg.

David Blaikie dblaikie at gmail.com
Sun Feb 17 23:54:56 PST 2013


Author: dblaikie
Date: Mon Feb 18 01:54:55 2013
New Revision: 175428

URL: http://llvm.org/viewvc/llvm-project?rev=175428&view=rev
Log:
Add `DIFile DISubprogram::getFile() const` for DragonEgg.

Modified:
    llvm/trunk/include/llvm/DebugInfo.h

Modified: llvm/trunk/include/llvm/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo.h?rev=175428&r1=175427&r2=175428&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/DebugInfo.h Mon Feb 18 01:54:55 2013
@@ -570,6 +570,10 @@ namespace llvm {
       return getFieldAs<DIFile>(6).getDirectory();
     }
 
+    DIFile getFile() const {
+      return getFieldAs<DIFile>(6);
+    }
+
     /// getScopeLineNumber - Get the beginning of the scope of the
     /// function, not necessarily where the name of the program
     /// starts.





More information about the llvm-commits mailing list