Add "check/remove dbg var" helper routines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2009-03-06 00:19:37 +00:00
parent 46c95bbe06
commit c79e118247
2 changed files with 53 additions and 0 deletions

View File

@@ -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