mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
Add getter for the index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eacf2dc4bb
commit
713adbc472
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user