summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-02-18 02:25:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-02-18 02:25:12 +0000
commit906c73ffbc78542ad333becb6e013dd9efc299b6 (patch)
treeba454de9c55cb9e52010de9a138225f7fa4debe3 /unittests
parentef9a1d0e13662162aa8cdae8732c33b5d751d80c (diff)
Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenAction
This removes the final dependency edge from any lib outside of CodeGen to core. As a result we can, and do, trim the dependency on core from libclang, PrintFunctionNames, the unit tests and c-index-test. While at it, review and trim other unneeded dependencies. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Basic/Makefile2
-rw-r--r--unittests/CMakeLists.txt4
-rw-r--r--unittests/Frontend/FrontendActionTest.cpp2
-rw-r--r--unittests/Frontend/Makefile2
4 files changed, 4 insertions, 6 deletions
diff --git a/unittests/Basic/Makefile b/unittests/Basic/Makefile
index e7ac57cbe1..4bac50c12a 100644
--- a/unittests/Basic/Makefile
+++ b/unittests/Basic/Makefile
@@ -9,7 +9,7 @@
CLANG_LEVEL = ../..
TESTNAME = Basic
-LINK_COMPONENTS := core support mc
+LINK_COMPONENTS := support mc
USEDLIBS = clangBasic.a
include $(CLANG_LEVEL)/unittests/Makefile
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
index 0c91450e04..45358db370 100644
--- a/unittests/CMakeLists.txt
+++ b/unittests/CMakeLists.txt
@@ -37,13 +37,13 @@ if(SUPPORTS_NO_VARIADIC_MACROS_FLAG)
endif()
add_clang_unittest(Basic
- "Core"
+ "support mc"
"gtest gtest_main clangBasic"
Basic/FileManagerTest.cpp
)
add_clang_unittest(Frontend
- "Core"
+ "support mc"
"gtest gtest_main clangFrontend"
Frontend/FrontendActionTest.cpp
)
diff --git a/unittests/Frontend/FrontendActionTest.cpp b/unittests/Frontend/FrontendActionTest.cpp
index 49a63983f0..a32388a062 100644
--- a/unittests/Frontend/FrontendActionTest.cpp
+++ b/unittests/Frontend/FrontendActionTest.cpp
@@ -14,7 +14,6 @@
#include "clang/Frontend/FrontendAction.h"
#include "llvm/ADT/Triple.h"
-#include "llvm/LLVMContext.h"
#include "llvm/Support/MemoryBuffer.h"
#include "gtest/gtest.h"
@@ -61,7 +60,6 @@ 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 cdbfb4c57c..4d9937f517 100644
--- a/unittests/Frontend/Makefile
+++ b/unittests/Frontend/Makefile
@@ -9,7 +9,7 @@
CLANG_LEVEL = ../..
TESTNAME = Frontend
-LINK_COMPONENTS := core support mc
+LINK_COMPONENTS := support mc
USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \
clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \
clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \