mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
Add a constified getLandingPad() method.
llvm-svn: 149303
This commit is contained in:
@@ -268,6 +268,7 @@ public:
|
||||
/// getLandingPadInst() - Return the landingpad instruction associated with
|
||||
/// the landing pad.
|
||||
LandingPadInst *getLandingPadInst();
|
||||
const LandingPadInst *getLandingPadInst() const;
|
||||
|
||||
private:
|
||||
/// AdjustBlockAddressRefCount - BasicBlock stores the number of BlockAddress
|
||||
|
||||
@@ -366,3 +366,6 @@ bool BasicBlock::isLandingPad() const {
|
||||
LandingPadInst *BasicBlock::getLandingPadInst() {
|
||||
return dyn_cast<LandingPadInst>(getFirstNonPHI());
|
||||
}
|
||||
const LandingPadInst *BasicBlock::getLandingPadInst() const {
|
||||
return dyn_cast<LandingPadInst>(getFirstNonPHI());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user