aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-14 19:10:47 +0000
committerChris Lattner <sabre@nondot.org>2010-11-14 19:10:47 +0000
commite15f2e17ea27f3c2e9aae695e5bf6c4bf21097b1 (patch)
tree2e9e73ee97eaff67e7e4419eb4d8fe98c5b2646e /tools
parent1139691e3aadff751c035f38f835d436ec6cf10a (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-config/llvm-config.in.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-config/llvm-config.in.in b/tools/llvm-config/llvm-config.in.in
index a13307b867..840a10e23a 100644
--- a/tools/llvm-config/llvm-config.in.in
+++ b/tools/llvm-config/llvm-config.in.in
@@ -320,6 +320,9 @@ sub build_name_map {
$NAME_MAP{$target} = [$target.'info',
$target.'asmprinter',
$target.'codegen']
+ } elsif (defined $NAME_MAP{$target.'codegen'}) {
+ $NAME_MAP{$target} = [$target.'info',
+ $target.'codegen']
} else {
$NAME_MAP{$target} = [$target.'info',
$NAME_MAP{$target}[0]]