summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-14 05:34:32 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-14 05:34:32 +0000
commit59fb3ac51bfea3fb5c81c13c8d202c56307296bb (patch)
tree92a42689f607e504525292ae2c62a9860ac2514b
parent867e91468baf1eac9c04a64c72107a8ac65bb8f6 (diff)
downloadbcm5719-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.cpp3
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);
OpenPOWER on IntegriCloud