summaryrefslogtreecommitdiffstats
path: root/examples/PrintFunctionNames
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-02-19 21:39:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-02-19 21:39:31 +0000
commit96b1d4b4eb6b18dd6df7a2c0833332b45840580f (patch)
tree5c389038723168572e7e35c9f10d3460ad7354ca /examples/PrintFunctionNames
parentb20f5c6f79968ce57ebb6222f0d2e7f51908d1be (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 'examples/PrintFunctionNames')
-rw-r--r--examples/PrintFunctionNames/CMakeLists.txt25
1 files changed, 24 insertions, 1 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt
index 86793ce7e1..58b4603e9b 100644
--- a/examples/PrintFunctionNames/CMakeLists.txt
+++ b/examples/PrintFunctionNames/CMakeLists.txt
@@ -1,11 +1,34 @@
set(MODULE TRUE)
set( LLVM_USED_LIBS
+ clangFrontendTool
clangFrontend
+ clangDriver
+ clangSerialization
+ clangCodeGen
+ clangParse
+ clangSema
+ clangStaticAnalyzerFrontend
+ clangStaticAnalyzerCheckers
+ clangStaticAnalyzerCore
+ clangAnalysis
+ clangIndex
+ clangRewrite
clangAST
+ clangLex
+ clangBasic
)
-set( LLVM_LINK_COMPONENTS support mc)
+# 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
+ )
add_clang_library(PrintFunctionNames PrintFunctionNames.cpp)