mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-08 03:26:34 +00:00
A couple IRBuilder functions were still using getGlobalContext().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78997 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d3ed36572
commit
d644cb8ff5
@ -165,14 +165,14 @@ public:
|
|||||||
|
|
||||||
/// CreateRetVoid - Create a 'ret void' instruction.
|
/// CreateRetVoid - Create a 'ret void' instruction.
|
||||||
ReturnInst *CreateRetVoid() {
|
ReturnInst *CreateRetVoid() {
|
||||||
return Insert(ReturnInst::Create(getGlobalContext()));
|
return Insert(ReturnInst::Create(Context));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @verbatim
|
/// @verbatim
|
||||||
/// CreateRet - Create a 'ret <val>' instruction.
|
/// CreateRet - Create a 'ret <val>' instruction.
|
||||||
/// @endverbatim
|
/// @endverbatim
|
||||||
ReturnInst *CreateRet(Value *V) {
|
ReturnInst *CreateRet(Value *V) {
|
||||||
return Insert(ReturnInst::Create(getGlobalContext(), V));
|
return Insert(ReturnInst::Create(Context, V));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// CreateAggregateRet - Create a sequence of N insertvalue instructions,
|
/// CreateAggregateRet - Create a sequence of N insertvalue instructions,
|
||||||
@ -187,7 +187,7 @@ public:
|
|||||||
Value *V = UndefValue::get(RetType);
|
Value *V = UndefValue::get(RetType);
|
||||||
for (unsigned i = 0; i != N; ++i)
|
for (unsigned i = 0; i != N; ++i)
|
||||||
V = CreateInsertValue(V, retVals[i], i, "mrv");
|
V = CreateInsertValue(V, retVals[i], i, "mrv");
|
||||||
return Insert(ReturnInst::Create(getGlobalContext(), V));
|
return Insert(ReturnInst::Create(Context, V));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// CreateBr - Create an unconditional 'br label X' instruction.
|
/// CreateBr - Create an unconditional 'br label X' instruction.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user