diff options
author | Devang Patel <dpatel@apple.com> | 2009-03-06 00:19:37 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-03-06 00:19:37 +0000 |
commit | c79e1182470ed12f1f3d0d35c1725366519a9af7 (patch) | |
tree | 2e302fe67dd40882c7132603db116e1f14f73c9f /include/llvm/Transforms/Utils/Local.h | |
parent | 46c95bbe0616fc37cb56866a57939487f45eca00 (diff) |
Add "check/remove dbg var" helper routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 36c13f4c98..c3088a2c7c 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -17,6 +17,7 @@ namespace llvm { +class User; class BasicBlock; class Instruction; class Value; @@ -100,6 +101,14 @@ AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0); /// with DbgInfoIntrinsic that use the instruction I. bool OnlyUsedByDbgInfoIntrinsics(Instruction *I, SmallVectorImpl<DbgInfoIntrinsic *> *DbgInUses = 0); + +/// UserIsDebugInfo - Return true if U is a constant expr used by +/// llvm.dbg.variable or llvm.dbg.global_variable +bool UserIsDebugInfo(User *U); + +/// RemoveDbgInfoUser - Remove an User which is representing debug info. +void RemoveDbgInfoUser(User *U); + } // End llvm namespace #endif |