mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user