diff options
author | Dale Johannesen <dalej@apple.com> | 2010-04-02 21:49:27 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-04-02 21:49:27 +0000 |
commit | 7249ef04557cc6f9af7b6df93728683be3b65048 (patch) | |
tree | 4379fc07cd2190fe45784617ddb787cc89d9b28a /include/llvm/BasicBlock.h | |
parent | a144c3f34dd8adc093d9be6cbc3e6f39d47c75dd (diff) | |
download | llvm-7249ef04557cc6f9af7b6df93728683be3b65048.tar.gz llvm-7249ef04557cc6f9af7b6df93728683be3b65048.tar.bz2 llvm-7249ef04557cc6f9af7b6df93728683be3b65048.tar.xz |
Skip debug info when looking for existing EH calls at the
beginning of a block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r-- | include/llvm/BasicBlock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index e358f91f90..bf5874f682 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -131,6 +131,12 @@ public: const Instruction* getFirstNonPHI() const { return const_cast<BasicBlock*>(this)->getFirstNonPHI(); } + + // Same as above, but also skip debug intrinsics. + Instruction* getFirstNonPHIOrDbg(); + const Instruction* getFirstNonPHIOrDbg() const { + return const_cast<BasicBlock*>(this)->getFirstNonPHIOrDbg(); + } /// removeFromParent - This method unlinks 'this' from the containing /// function, but does not delete it. |