mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Add a constified getLandingPad() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149303 91177308-0d34-0410-b5e6-96231b3b80d8
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