projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trailing whitespace.
[oota-llvm.git]
/
include
/
llvm
/
BasicBlock.h
diff --git
a/include/llvm/BasicBlock.h
b/include/llvm/BasicBlock.h
index e358f91f90ad0bdc81682d691e2bb1eb073842d2..bf5874f6824a1bb725b6eeb117be2abaf6d0c90a 100644
(file)
--- 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();
}
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.
/// removeFromParent - This method unlinks 'this' from the containing
/// function, but does not delete it.