diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-08-17 13:53:59 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-08-17 13:53:59 +0000 |
commit | 3c3bc48d331db26aaff3ff4f7a61f60a17fea112 (patch) | |
tree | 7cbec58b1aa254700ddac87d52819a0751d5ab11 /tools | |
parent | abb247fc036d55d06b06853cae66ab055269d605 (diff) | |
download | external_llvm-3c3bc48d331db26aaff3ff4f7a61f60a17fea112.zip external_llvm-3c3bc48d331db26aaff3ff4f7a61f60a17fea112.tar.gz external_llvm-3c3bc48d331db26aaff3ff4f7a61f60a17fea112.tar.bz2 |
Move X86 assembler printers into separate directory. This allows JIT-only users not to link it in (use 'x86codegen' llvm-config arg for this)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lli/Makefile | 2 | ||||
-rw-r--r-- | tools/llvm-config/llvm-config.in.in | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tools/lli/Makefile b/tools/lli/Makefile index b070cee..8f6eeed 100644 --- a/tools/lli/Makefile +++ b/tools/lli/Makefile @@ -9,7 +9,7 @@ LEVEL := ../.. TOOLNAME := lli -LINK_COMPONENTS := jit interpreter native bitreader selectiondag +LINK_COMPONENTS := jit interpreter nativecodegen bitreader selectiondag # Enable JIT support include $(LEVEL)/Makefile.common diff --git a/tools/llvm-config/llvm-config.in.in b/tools/llvm-config/llvm-config.in.in index 296ba42..36b5112 100644 --- a/tools/llvm-config/llvm-config.in.in +++ b/tools/llvm-config/llvm-config.in.in @@ -326,8 +326,17 @@ sub build_name_map { } } + # Add target-specific entries + foreach my $target (@TARGETS_BUILT) { + # FIXME: Temporary, until we don't switch all targets + if (defined $NAME_MAP{$target.'asmprinter'}) { + $NAME_MAP{$target} = [$target.'asmprinter', $target.'codegen'] + } + } + # Add virtual entries. $NAME_MAP{'native'} = have_native_backend() ? [$ARCH] : []; + $NAME_MAP{'nativecodegen'} = have_native_backend() ? [$ARCH.'codegen'] : []; $NAME_MAP{'backend'} = have_native_backend() ? ['native'] : ['cbackend']; $NAME_MAP{'engine'} = find_best_engine; $NAME_MAP{'all'} = [name_map_entries]; # Must be last. |