diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-01 03:55:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-01 03:55:42 +0000 |
commit | 68c551349947e659a79eb0d4782d0487756020b5 (patch) | |
tree | 2670a5fd5071294345ca27012be83326cbc061b4 /include/llvm/Support/DebugLoc.h | |
parent | ec306a9771dd151531e0af7a26ce973cfd43453d (diff) |
add a method to decode a DILocation into a NewDebugLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DebugLoc.h')
-rw-r--r-- | include/llvm/Support/DebugLoc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h index 3b8365efce..300d7401ce 100644 --- a/include/llvm/Support/DebugLoc.h +++ b/include/llvm/Support/DebugLoc.h @@ -40,6 +40,9 @@ namespace llvm { static NewDebugLoc get(unsigned Line, unsigned Col, MDNode *Scope, MDNode *InlinedAt); + /// getFromDILocation - Translate the DILocation quad into a NewDebugLoc. + static NewDebugLoc getFromDILocation(MDNode *N); + /// isUnknown - Return true if this is an unknown location. bool isUnknown() const { return ScopeIdx == 0; } @@ -96,7 +99,7 @@ namespace llvm { bool operator!=(const DebugLoc &DL) const { return !(*this == DL); } }; - /// DebugLocTracker - This class tracks debug location information. + /// DebugLocTracker - This class tracks debug location information. /// struct DebugLocTracker { /// DebugLocations - A vector of unique DebugLocTuple's. |