diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-03-27 05:46:58 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-03-27 05:46:58 +0000 |
| commit | 1c78f4a0ff6811e9c3d8fe4a827358b9c01dab61 (patch) | |
| tree | e4bf2f09027d73c0dfdb84fad3e4d6a5b2ded4ca /llvm/lib/IR | |
| parent | 70c8efd03cb5ca69a75983839930ec90bbf51b04 (diff) | |
| download | bcm5719-llvm-1c78f4a0ff6811e9c3d8fe4a827358b9c01dab61.tar.gz bcm5719-llvm-1c78f4a0ff6811e9c3d8fe4a827358b9c01dab61.zip | |
[IR] Share implementation for pairs of const and non-const methods using const_cast. NFCI
llvm-svn: 298830
Diffstat (limited to 'llvm/lib/IR')
| -rw-r--r-- | llvm/lib/IR/BasicBlock.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/IR/Instruction.cpp | 6 |
2 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp index 9047fb0cb7a..90ca21ab91f 100644 --- a/llvm/lib/IR/BasicBlock.cpp +++ b/llvm/lib/IR/BasicBlock.cpp @@ -429,9 +429,6 @@ bool BasicBlock::isLandingPad() const { } /// Return the landingpad instruction associated with the landing pad. -LandingPadInst *BasicBlock::getLandingPadInst() { - return dyn_cast<LandingPadInst>(getFirstNonPHI()); -} const LandingPadInst *BasicBlock::getLandingPadInst() const { return dyn_cast<LandingPadInst>(getFirstNonPHI()); } diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index 8674342a88a..d2114dc24af 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -60,12 +60,6 @@ const Module *Instruction::getModule() const { return getParent()->getModule(); } -Module *Instruction::getModule() { - return getParent()->getModule(); -} - -Function *Instruction::getFunction() { return getParent()->getParent(); } - const Function *Instruction::getFunction() const { return getParent()->getParent(); } |

