aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-01 03:55:42 +0000
committerChris Lattner <sabre@nondot.org>2010-04-01 03:55:42 +0000
commit8e068543918ce088afefd56c43c9c2b0eeb5e55d (patch)
tree2670a5fd5071294345ca27012be83326cbc061b4 /include
parentc426ccdd087e60b150af3d192107ccaf85e2b980 (diff)
downloadexternal_llvm-8e068543918ce088afefd56c43c9c2b0eeb5e55d.zip
external_llvm-8e068543918ce088afefd56c43c9c2b0eeb5e55d.tar.gz
external_llvm-8e068543918ce088afefd56c43c9c2b0eeb5e55d.tar.bz2
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')
-rw-r--r--include/llvm/Support/DebugLoc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h
index 3b8365e..300d740 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.