diff options
author | Devang Patel <dpatel@apple.com> | 2011-03-17 22:18:16 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-03-17 22:18:16 +0000 |
commit | 813c9a0f19c0d27085a3ea81eb44033747007741 (patch) | |
tree | 62f672bd1b588cc0bbb49f142864ab808a221e24 /include/llvm/Transforms | |
parent | e68d8ec25296574109b586359d37318c725442ac (diff) | |
download | external_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.h | 5 |
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 |