summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-03 22:49:14 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-03 22:49:14 +0000
commit779819399345af921a3dca2d8051cb97db557cfd (patch)
tree7ab564daaadaea9f65334009b0c52b920f332304
parent0404dc11af6dfe3056e2f9eb154afc46668fe491 (diff)
downloadbcm5719-llvm-779819399345af921a3dca2d8051cb97db557cfd.tar.gz
bcm5719-llvm-779819399345af921a3dca2d8051cb97db557cfd.zip
Add getter for the index.
llvm-svn: 63675
-rw-r--r--llvm/include/llvm/CodeGen/DebugLoc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/DebugLoc.h b/llvm/include/llvm/CodeGen/DebugLoc.h
index b89bf6302a0..51f5116c756 100644
--- a/llvm/include/llvm/CodeGen/DebugLoc.h
+++ b/llvm/include/llvm/CodeGen/DebugLoc.h
@@ -40,6 +40,8 @@ namespace llvm {
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; }
OpenPOWER on IntegriCloud