diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-14 05:34:32 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-14 05:34:32 +0000 |
commit | 59fb3ac51bfea3fb5c81c13c8d202c56307296bb (patch) | |
tree | 92a42689f607e504525292ae2c62a9860ac2514b | |
parent | 867e91468baf1eac9c04a64c72107a8ac65bb8f6 (diff) | |
download | bcm5719-llvm-59fb3ac51bfea3fb5c81c13c8d202c56307296bb.tar.gz bcm5719-llvm-59fb3ac51bfea3fb5c81c13c8d202c56307296bb.zip |
Do not use llvm:getGlobalContext() in unittests
Currently trying to nuke this API from LLVM.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266276
-rw-r--r-- | clang/unittests/CodeGen/BufferSourceTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/CodeGen/BufferSourceTest.cpp b/clang/unittests/CodeGen/BufferSourceTest.cpp index 85df768aa1b..56aafcee351 100644 --- a/clang/unittests/CodeGen/BufferSourceTest.cpp +++ b/clang/unittests/CodeGen/BufferSourceTest.cpp @@ -40,6 +40,7 @@ const char TestProgram[] = TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { CompilerInstance compiler; + LLVMContext Context; compiler.createDiagnostics(); compiler.getLangOpts().CPlusPlus = 1; @@ -65,7 +66,7 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { compiler.getHeaderSearchOpts(), compiler.getPreprocessorOpts(), compiler.getCodeGenOpts(), - llvm::getGlobalContext()))); + Context))); compiler.createSema(clang::TU_Prefix, nullptr); |