diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index 35d2c0c..7338912 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -25,6 +25,7 @@ class PHINode; class AllocaInst; class ConstantExpr; class TargetData; +class DbgInfoIntrinsic; template<typename T> class SmallVectorImpl; @@ -94,6 +95,11 @@ AllocaInst *DemoteRegToStack(Instruction &X, bool VolatileLoads = false, /// The phi node is deleted and it returns the pointer to the alloca inserted. AllocaInst *DemotePHIToStack(PHINode *P, Instruction *AllocaPoint = 0); +/// OnlyUsedByDbgIntrinsics - Return true if the instruction I is only used +/// by DbgIntrinsics. If DbgInUses is specified then the vector is filled +/// with DbgInfoIntrinsic that use the instruction I. +bool OnlyUsedByDbgInfoIntrinsics(Instruction *I, + SmallVectorImpl<DbgInfoIntrinsic *> *DbgInUses = 0); } // End llvm namespace #endif |