aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-17 20:42:00 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-17 20:42:00 +0000
commit092a9dda2d13918a6410db26f41c7b5aa97ff989 (patch)
tree2dcdd3c50dd465a3e1068c713ed64e39781dea35 /cmake/modules
parent234f6893a2bb752479e51c943e1eb604f2f48429 (diff)
downloadexternal_llvm-092a9dda2d13918a6410db26f41c7b5aa97ff989.zip
external_llvm-092a9dda2d13918a6410db26f41c7b5aa97ff989.tar.gz
external_llvm-092a9dda2d13918a6410db26f41c7b5aa97ff989.tar.bz2
Sketch support for target specific assembly parser.
- Not fully enabled yet, need a configure regeneration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rwxr-xr-xcmake/modules/LLVMConfig.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/modules/LLVMConfig.cmake b/cmake/modules/LLVMConfig.cmake
index a401795..6b65645 100755
--- a/cmake/modules/LLVMConfig.cmake
+++ b/cmake/modules/LLVMConfig.cmake
@@ -35,7 +35,7 @@ endfunction(explicit_llvm_config)
function(explicit_map_components_to_libraries out_libs)
set( link_components ${ARGN} )
foreach(c ${link_components})
- # add codegen/asmprinter
+ # add codegen, asmprinter, asmparser
list(FIND LLVM_TARGETS_TO_BUILD ${c} idx)
if( NOT idx LESS 0 )
list(FIND llvm_libs "LLVM${c}CodeGen" idx)
@@ -53,6 +53,10 @@ function(explicit_map_components_to_libraries out_libs)
if( NOT asmidx LESS 0 )
list(APPEND expanded_components "LLVM${c}AsmPrinter")
endif()
+ list(FIND llvm_libs "LLVM${c}AsmParser" asmidx)
+ if( NOT asmidx LESS 0 )
+ list(APPEND expanded_components "LLVM${c}AsmParser")
+ endif()
list(FIND llvm_libs "LLVM${c}Info" asmidx)
if( NOT asmidx LESS 0 )
list(APPEND expanded_components "LLVM${c}Info")