aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-03-17 22:18:16 +0000
committerDevang Patel <dpatel@apple.com>2011-03-17 22:18:16 +0000
commit813c9a0f19c0d27085a3ea81eb44033747007741 (patch)
tree62f672bd1b588cc0bbb49f142864ab808a221e24 /include/llvm/Transforms
parente68d8ec25296574109b586359d37318c725442ac (diff)
downloadexternal_llvm-813c9a0f19c0d27085a3ea81eb44033747007741.zip
external_llvm-813c9a0f19c0d27085a3ea81eb44033747007741.tar.gz
external_llvm-813c9a0f19c0d27085a3ea81eb44033747007741.tar.bz2
Try to not lose variable's debug info during instcombine.
This is done by lowering dbg.declare intrinsic into dbg.value intrinsic. Radar 9143931. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Utils/Local.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 8f97428..16bcc54 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -19,6 +19,7 @@ namespace llvm {
class User;
class BasicBlock;
+class Function;
class BranchInst;
class Instruction;
class DbgDeclareInst;
@@ -169,6 +170,10 @@ static inline unsigned getKnownAlignment(Value *V, const TargetData *TD = 0) {
bool ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
StoreInst *SI, DIBuilder &Builder);
+/// LowerDbgDeclare - Lowers llvm.dbg.declare intrinsics into appropriate set
+/// of llvm.dbg.value intrinsics.
+bool LowerDbgDeclare(Function &F);
+
} // End llvm namespace
#endif