aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-07-20 22:18:50 +0000
committerDevang Patel <dpatel@apple.com>2011-07-20 22:18:50 +0000
commit40c7e4142e2327a540eceb640392a6da4ccfb3bf (patch)
treedce690dfa1192fda347658cb72aa1d4e35b6aa07 /include
parent747032522f9f3b2d9bae71aa303c1a0fd953eee9 (diff)
downloadexternal_llvm-40c7e4142e2327a540eceb640392a6da4ccfb3bf.zip
external_llvm-40c7e4142e2327a540eceb640392a6da4ccfb3bf.tar.gz
external_llvm-40c7e4142e2327a540eceb640392a6da4ccfb3bf.tar.bz2
There are two ways to map a variable to its lexical scope. Lexical scope information is embedded in MDNode describing the variable. It is also available as a part of DebugLoc attached with DBG_VALUE instruction. DebugLoc attached with an instruction is less reliable in optimized code so use information embedded in the MDNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DebugInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 152d11e..929dd1d 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -614,6 +614,8 @@ namespace llvm {
return (getUnsignedField(6) & FlagArtificial) != 0;
}
+ /// getInlinedAt - If this variable is inlined then return inline location.
+ MDNode *getInlinedAt();
/// Verify - Verify that a variable descriptor is well formed.
bool Verify() const;