llvm.org GIT mirror llvm / e15f2e1
fix the autoconf script to detect "has asmprinter"ness of a target by looking for lib/Target/*AsmPrinter.cpp. Fix llvm-config to handle targets that don't have an explicit AsmPrinter library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119057 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 8 years ago
3 changed file(s) with 5 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
649649 LLVM_ENUM_DISASSEMBLERS=""
650650 for target_to_build in $TARGETS_TO_BUILD; do
651651 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
652 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
653 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
654 fi
655 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
656 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
652 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
657653 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
658654 fi
659655 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
50995099 LLVM_ENUM_DISASSEMBLERS=""
51005100 for target_to_build in $TARGETS_TO_BUILD; do
51015101 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5102 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5103 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5104 fi
5105 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5106 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5102 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
51075103 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
51085104 fi
51095105 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
319319 $NAME_MAP{$target} = [$target.'info',
320320 $target.'asmprinter',
321321 $target.'codegen']
322 } elsif (defined $NAME_MAP{$target.'codegen'}) {
323 $NAME_MAP{$target} = [$target.'info',
324 $target.'codegen']
322325 } else {
323326 $NAME_MAP{$target} = [$target.'info',
324327 $NAME_MAP{$target}[0]]