diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-08-14 06:12:30 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2009-08-14 06:12:30 +0000 |
commit | e44b8c4b7037d0d822bb5adf4a901c9bc17c2f56 (patch) | |
tree | b695a23bf9119d2fd79bdc526db4efb84d2a1899 | |
parent | 232e253c99d89070fcb73edc39e1c6d2e5480533 (diff) | |
download | external_llvm-e44b8c4b7037d0d822bb5adf4a901c9bc17c2f56.zip external_llvm-e44b8c4b7037d0d822bb5adf4a901c9bc17c2f56.tar.gz external_llvm-e44b8c4b7037d0d822bb5adf4a901c9bc17c2f56.tar.bz2 |
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
-rw-r--r-- | include/llvm/Support/IRBuilder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index 549b89e..cf6f337 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -165,14 +165,14 @@ public: /// CreateRetVoid - Create a 'ret void' instruction. ReturnInst *CreateRetVoid() { - return Insert(ReturnInst::Create(getGlobalContext())); + return Insert(ReturnInst::Create(Context)); } /// @verbatim /// CreateRet - Create a 'ret <val>' instruction. /// @endverbatim ReturnInst *CreateRet(Value *V) { - return Insert(ReturnInst::Create(getGlobalContext(), V)); + return Insert(ReturnInst::Create(Context, V)); } /// CreateAggregateRet - Create a sequence of N insertvalue instructions, @@ -187,7 +187,7 @@ public: Value *V = UndefValue::get(RetType); for (unsigned i = 0; i != N; ++i) 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. |