[llvm-commits] [llvm] r63675 - /llvm/trunk/include/llvm/CodeGen/DebugLoc.h

Bill Wendling isanbard at gmail.com
Tue Feb 3 14:49:16 PST 2009


Author: void
Date: Tue Feb  3 16:49:14 2009
New Revision: 63675

URL: http://llvm.org/viewvc/llvm-project?rev=63675&view=rev
Log:
Add getter for the index.

Modified:
    llvm/trunk/include/llvm/CodeGen/DebugLoc.h

Modified: llvm/trunk/include/llvm/CodeGen/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DebugLoc.h?rev=63675&r1=63674&r2=63675&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DebugLoc.h Tue Feb  3 16:49:14 2009
@@ -40,6 +40,8 @@
     static DebugLoc getUnknownLoc()   { DebugLoc L; L.Idx = 0;   return L; }
     static DebugLoc get(unsigned idx) { DebugLoc L; L.Idx = idx; return L; }
 
+    unsigned getIndex() const { return Idx; }
+
     /// isInvalid - Return true if the DebugLoc is invalid.
     bool isInvalid() const { return Idx == ~0U; }
 





More information about the llvm-commits mailing list