aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/IRBuilder.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-22 00:24:57 +0000
committerOwen Anderson <resistor@mac.com>2009-07-22 00:24:57 +0000
commit175b6540352920afd47979cecb8c2667a3f7fdd3 (patch)
tree663be741b84470d97945f01da459a3627af683fd /include/llvm/Support/IRBuilder.h
parentbdb23b3806e83737a67a023a729547caf03fc533 (diff)
downloadexternal_llvm-175b6540352920afd47979cecb8c2667a3f7fdd3.zip
external_llvm-175b6540352920afd47979cecb8c2667a3f7fdd3.tar.gz
external_llvm-175b6540352920afd47979cecb8c2667a3f7fdd3.tar.bz2
Get rid of the Pass+Context magic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/IRBuilder.h')
-rw-r--r--include/llvm/Support/IRBuilder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h
index 2ef13a7..835a286 100644
--- a/include/llvm/Support/IRBuilder.h
+++ b/include/llvm/Support/IRBuilder.h
@@ -51,22 +51,22 @@ public:
IRBuilder(LLVMContext &C) : Context(C), Folder(C) { ClearInsertionPoint(); }
explicit IRBuilder(BasicBlock *TheBB, const T& F)
- : Context(*TheBB->getParent()->getContext()), Folder(F) {
+ : Context(TheBB->getContext()), Folder(F) {
SetInsertPoint(TheBB);
}
explicit IRBuilder(BasicBlock *TheBB)
- : Context(*TheBB->getParent()->getContext()), Folder(Context) {
+ : Context(TheBB->getContext()), Folder(Context) {
SetInsertPoint(TheBB);
}
IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP, const T& F)
- : Context(*TheBB->getParent()->getContext()), Folder(F) {
+ : Context(TheBB->getContext()), Folder(F) {
SetInsertPoint(TheBB, IP);
}
IRBuilder(BasicBlock *TheBB, BasicBlock::iterator IP)
- : Context(*TheBB->getParent()->getContext()), Folder(Context) {
+ : Context(TheBB->getContext()), Folder(Context) {
SetInsertPoint(TheBB, IP);
}