aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/DebugLoc.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-14 01:14:57 +0000
committerDevang Patel <dpatel@apple.com>2011-07-14 01:14:57 +0000
commitd77ec6208cef2a8e615181c2bf0fc5a50a37a20b (patch)
treed8331e8707d219689ef95c84108e5ef17199ac22 /include/llvm/Support/DebugLoc.h
parent7332e6ee25378e19c0f621c80c32b283b07f428a (diff)
downloadexternal_llvm-d77ec6208cef2a8e615181c2bf0fc5a50a37a20b.zip
external_llvm-d77ec6208cef2a8e615181c2bf0fc5a50a37a20b.tar.gz
external_llvm-d77ec6208cef2a8e615181c2bf0fc5a50a37a20b.tar.bz2
Simplify and delay extracting DebugLoc elements, scope and InlinedAt, as much as possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/DebugLoc.h')
-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 98a05a4..c90915f 100644
--- a/include/llvm/Support/DebugLoc.h
+++ b/include/llvm/Support/DebugLoc.h
@@ -61,7 +61,10 @@ namespace llvm {
/// getFromDILocation - Translate the DILocation quad into a DebugLoc.
static DebugLoc getFromDILocation(MDNode *N);
-
+
+ /// getFromDILexicalBlock - Translate the DILexicalBlock into a DebugLoc.
+ static DebugLoc getFromDILexicalBlock(MDNode *N);
+
/// isUnknown - Return true if this is an unknown location.
bool isUnknown() const { return ScopeIdx == 0; }