aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/BasicBlock.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-05-26 21:03:23 +0000
committerPhilip Reames <listmail@philipreames.com>2015-05-26 21:03:23 +0000
commit38840245e446c9ac688cb3035d6891cfbdd4ef93 (patch)
tree8a8362b66a7f0c4461741867cefd5f301cb00701 /llvm/lib/IR/BasicBlock.cpp
parent316b571007cdf4b377af568c5a7d5eb05b2b9171 (diff)
downloadllvm-38840245e446c9ac688cb3035d6891cfbdd4ef93.zip
llvm-38840245e446c9ac688cb3035d6891cfbdd4ef93.tar.gz
llvm-38840245e446c9ac688cb3035d6891cfbdd4ef93.tar.bz2
[PlaceSafepoints] Cleanup InsertSafepointPoll function
While working on another change, I noticed that the naming in this function was mildly deceptive. While fixing that, I took the oppurtunity to modernize some of the code. NFC intended. llvm-svn: 238252
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r--llvm/lib/IR/BasicBlock.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index e6a4585..70ae3c3 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -117,6 +117,10 @@ const Module *BasicBlock::getModule() const {
return getParent()->getParent();
}
+Module *BasicBlock::getModule() {
+ return getParent()->getParent();
+}
+
TerminatorInst *BasicBlock::getTerminator() {
if (InstList.empty()) return nullptr;
return dyn_cast<TerminatorInst>(&InstList.back());