diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-01-31 00:26:24 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-01-31 00:26:24 +0000 |
commit | 7750c3fc9f1dc47fce14c5dbb6c17bf5b52f3ba1 (patch) | |
tree | 66cc83258fe0a12a06d63576ea46a4cd8a1217c9 /lib/VMCore | |
parent | a1a8a323f43a95620fc4c6b5aad8d5ff5e5eb590 (diff) | |
download | external_llvm-7750c3fc9f1dc47fce14c5dbb6c17bf5b52f3ba1.zip external_llvm-7750c3fc9f1dc47fce14c5dbb6c17bf5b52f3ba1.tar.gz external_llvm-7750c3fc9f1dc47fce14c5dbb6c17bf5b52f3ba1.tar.bz2 |
Add a constified getLandingPad() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index d0aa275..d353b0a 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -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()); +} |