diff options
author | Devang Patel <dpatel@apple.com> | 2011-04-29 22:28:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-04-29 22:28:59 +0000 |
commit | 40348e8d1ff564a23101d4fd37fe4dd03d9018ab (patch) | |
tree | 9e645e9f72365508042d913bae394de7b3dac90f /include/llvm/Transforms/Utils/BasicBlockUtils.h | |
parent | d94bc549fcc34f1d97d27221ce5bbf46df207557 (diff) | |
download | external_llvm-40348e8d1ff564a23101d4fd37fe4dd03d9018ab.zip external_llvm-40348e8d1ff564a23101d4fd37fe4dd03d9018ab.tar.gz external_llvm-40348e8d1ff564a23101d4fd37fe4dd03d9018ab.tar.bz2 |
Assing line number info to new PHIs created by SSA updater.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/BasicBlockUtils.h')
-rw-r--r-- | include/llvm/Transforms/Utils/BasicBlockUtils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h index 5335860..90eabef 100644 --- a/include/llvm/Transforms/Utils/BasicBlockUtils.h +++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h @@ -19,6 +19,7 @@ #include "llvm/BasicBlock.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/DebugLoc.h" namespace llvm { @@ -181,6 +182,10 @@ BasicBlock *SplitBlockPredecessors(BasicBlock *BB, BasicBlock *const *Preds, ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB, BasicBlock *Pred); +/// GetFirstDebugLocInBasicBlock - Return first valid DebugLoc entry in a +/// given basic block. +DebugLoc GetFirstDebugLocInBasicBlock(const BasicBlock *BB); + } // End llvm namespace #endif |