diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-02-18 02:25:12 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-02-18 02:25:12 +0000 |
commit | 906c73ffbc78542ad333becb6e013dd9efc299b6 (patch) | |
tree | ba454de9c55cb9e52010de9a138225f7fa4debe3 /examples/PrintFunctionNames | |
parent | ef9a1d0e13662162aa8cdae8732c33b5d751d80c (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 'examples/PrintFunctionNames')
-rw-r--r-- | examples/PrintFunctionNames/CMakeLists.txt | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt index 58b4603e9b..86793ce7e1 100644 --- a/examples/PrintFunctionNames/CMakeLists.txt +++ b/examples/PrintFunctionNames/CMakeLists.txt @@ -1,34 +1,11 @@ set(MODULE TRUE) set( LLVM_USED_LIBS - clangFrontendTool clangFrontend - clangDriver - clangSerialization - clangCodeGen - clangParse - clangSema - clangStaticAnalyzerFrontend - clangStaticAnalyzerCheckers - clangStaticAnalyzerCore - clangAnalysis - clangIndex - clangRewrite clangAST - clangLex - clangBasic ) -# Why do we have to link to all this just to print out function names? -set( LLVM_LINK_COMPONENTS - ${LLVM_TARGETS_TO_BUILD} - asmparser - bitreader - bitwriter - codegen - ipo - selectiondag - ) +set( LLVM_LINK_COMPONENTS support mc) add_clang_library(PrintFunctionNames PrintFunctionNames.cpp) |