aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DebugInfo.h
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2010-01-15 03:37:48 +0000
committerVictor Hernandez <vhernandez@apple.com>2010-01-15 03:37:48 +0000
commit283ba2fbb4a40d5f7615aba070f2f7ec161d19ac (patch)
tree2b50ef9973091db7646a7325a75f13c791a5b003 /include/llvm/Analysis/DebugInfo.h
parent8396a17bc3a6d2cb9aedd22fc15780ac8ab41662 (diff)
downloadexternal_llvm-283ba2fbb4a40d5f7615aba070f2f7ec161d19ac.zip
external_llvm-283ba2fbb4a40d5f7615aba070f2f7ec161d19ac.tar.gz
external_llvm-283ba2fbb4a40d5f7615aba070f2f7ec161d19ac.tar.bz2
Improve llvm.dbg.declare intrinsic by referring directly to the storage in its first argument, via function-local metadata (instead of via a bitcast).
This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DebugInfo.h')
-rw-r--r--include/llvm/Analysis/DebugInfo.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index c626b12..cc9514c 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -491,7 +491,6 @@ namespace llvm {
Module &M;
LLVMContext& VMContext;
- const Type *EmptyStructPtr; // "{}*".
Function *DeclareFn; // llvm.dbg.declare
Function *ValueFn; // llvm.dbg.value
@@ -659,7 +658,7 @@ namespace llvm {
/// Finds the dbg.declare intrinsic corresponding to this value if any.
/// It looks through pointer casts too.
- const DbgDeclareInst *findDbgDeclare(const Value *V, bool stripCasts = true);
+ const DbgDeclareInst *findDbgDeclare(const Value *V);
/// Find the debug info descriptor corresponding to this global variable.
Value *findDbgGlobalDeclare(GlobalVariable *V);