aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/BasicBlock.cpp
diff options
context:
space:
mode:
authorVasileios Porpodas <vporpodas@google.com>2022-12-14 15:57:08 -0800
committerVasileios Porpodas <vporpodas@google.com>2022-12-15 10:03:37 -0800
commit80f2f1eabc491cde39d543e4ebda93e2d2974d1f (patch)
treea1a1d52b6cbd050a0830c45e322caae50468de27 /llvm/lib/IR/BasicBlock.cpp
parent40cc041d4eec7306a67bfdbfeaa8796b8d856b60 (diff)
downloadllvm-80f2f1eabc491cde39d543e4ebda93e2d2974d1f.zip
llvm-80f2f1eabc491cde39d543e4ebda93e2d2974d1f.tar.gz
llvm-80f2f1eabc491cde39d543e4ebda93e2d2974d1f.tar.bz2
[NFC] Rename Function::insertBasicBlockAt() to Function::insert().
I think this is a better name because it is what STL uses. Differential Revision: https://reviews.llvm.org/D140068
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r--llvm/lib/IR/BasicBlock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index 273a31f..63d363e 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -62,9 +62,9 @@ void BasicBlock::insertInto(Function *NewParent, BasicBlock *InsertBefore) {
assert(!Parent && "Already has a parent");
if (InsertBefore)
- NewParent->insertBasicBlockAt(InsertBefore->getIterator(), this);
+ NewParent->insert(InsertBefore->getIterator(), this);
else
- NewParent->insertBasicBlockAt(NewParent->end(), this);
+ NewParent->insert(NewParent->end(), this);
}
BasicBlock::~BasicBlock() {