diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-19 21:39:31 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-19 21:39:31 +0000 |
commit | 96b1d4b4eb6b18dd6df7a2c0833332b45840580f (patch) | |
tree | 5c389038723168572e7e35c9f10d3460ad7354ca /unittests | |
parent | b20f5c6f79968ce57ebb6222f0d2e7f51908d1be (diff) |
Revert 125820 and 125819 to fix PR9266.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Basic/Makefile | 2 | ||||
-rw-r--r-- | unittests/Frontend/FrontendActionTest.cpp | 2 | ||||
-rw-r--r-- | unittests/Frontend/Makefile | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/unittests/Basic/Makefile b/unittests/Basic/Makefile index 4bac50c12a..e7ac57cbe1 100644 --- a/unittests/Basic/Makefile +++ b/unittests/Basic/Makefile @@ -9,7 +9,7 @@ CLANG_LEVEL = ../.. TESTNAME = Basic -LINK_COMPONENTS := support mc +LINK_COMPONENTS := core support mc USEDLIBS = clangBasic.a include $(CLANG_LEVEL)/unittests/Makefile diff --git a/unittests/Frontend/FrontendActionTest.cpp b/unittests/Frontend/FrontendActionTest.cpp index a32388a062..49a63983f0 100644 --- a/unittests/Frontend/FrontendActionTest.cpp +++ b/unittests/Frontend/FrontendActionTest.cpp @@ -14,6 +14,7 @@ #include "clang/Frontend/FrontendAction.h" #include "llvm/ADT/Triple.h" +#include "llvm/LLVMContext.h" #include "llvm/Support/MemoryBuffer.h" #include "gtest/gtest.h" @@ -60,6 +61,7 @@ TEST(ASTFrontendAction, Sanity) { invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; CompilerInstance compiler; + compiler.setLLVMContext(new LLVMContext); compiler.setInvocation(invocation); compiler.createDiagnostics(0, NULL); diff --git a/unittests/Frontend/Makefile b/unittests/Frontend/Makefile index 4d9937f517..cdbfb4c57c 100644 --- a/unittests/Frontend/Makefile +++ b/unittests/Frontend/Makefile @@ -9,7 +9,7 @@ CLANG_LEVEL = ../.. TESTNAME = Frontend -LINK_COMPONENTS := support mc +LINK_COMPONENTS := core support mc USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ |