summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-27 23:18:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-27 23:18:45 +0000
commit57cbe39d1e07ce52dd81f2d94cf5010d56edcab3 (patch)
tree290f5d51a2405b0cd2438b18f2d4c65b7e720505 /llvm
parent9f337bf96fa817ce4e36fc953b69a5c5c04b8f44 (diff)
downloadbcm5719-llvm-57cbe39d1e07ce52dd81f2d94cf5010d56edcab3.tar.gz
bcm5719-llvm-57cbe39d1e07ce52dd81f2d94cf5010d56edcab3.zip
Change Library Names Not To Conflict With Others When Installed
llvm-svn: 17286
Diffstat (limited to 'llvm')
-rw-r--r--llvm/examples/ModuleMaker/Makefile2
-rw-r--r--llvm/lib/Analysis/Makefile2
-rw-r--r--llvm/lib/AsmParser/Makefile2
-rw-r--r--llvm/lib/CodeGen/Makefile2
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/Makefile2
-rw-r--r--llvm/lib/Debugger/Makefile2
-rw-r--r--llvm/lib/ExecutionEngine/Makefile2
-rw-r--r--llvm/lib/Support/Makefile2
-rw-r--r--llvm/lib/System/Makefile2
-rw-r--r--llvm/lib/System/Unix/MappedFile.cpp1
-rw-r--r--llvm/lib/Target/CBackend/Makefile2
-rw-r--r--llvm/lib/Target/Makefile2
-rw-r--r--llvm/lib/Target/PowerPC/Makefile2
-rw-r--r--llvm/lib/Target/Skeleton/Makefile2
-rw-r--r--llvm/lib/Target/SparcV9/InstrSched/Makefile2
-rw-r--r--llvm/lib/Target/SparcV9/LiveVar/Makefile2
-rw-r--r--llvm/lib/Target/SparcV9/Makefile2
-rw-r--r--llvm/lib/Target/SparcV9/ModuloScheduling/Makefile2
-rw-r--r--llvm/lib/Target/SparcV9/RegAlloc/Makefile2
-rw-r--r--llvm/lib/Target/X86/Makefile2
-rw-r--r--llvm/lib/Transforms/Hello/Makefile2
-rw-r--r--llvm/lib/Transforms/IPO/Makefile2
-rw-r--r--llvm/lib/Transforms/Instrumentation/Makefile2
-rw-r--r--llvm/lib/Transforms/Instrumentation/ProfilePaths/Makefile2
-rw-r--r--llvm/lib/Transforms/Makefile2
-rw-r--r--llvm/lib/Transforms/Scalar/Makefile2
-rw-r--r--llvm/lib/Transforms/Utils/Makefile2
-rw-r--r--llvm/lib/VMCore/Makefile2
-rw-r--r--llvm/projects/Stacker/samples/Makefile2
-rw-r--r--llvm/projects/Stacker/tools/stkrc/Makefile9
-rw-r--r--llvm/tools/Makefile.JIT19
-rw-r--r--llvm/tools/analyze/Makefile6
-rw-r--r--llvm/tools/bugpoint/Makefile9
-rw-r--r--llvm/tools/extract/Makefile5
-rw-r--r--llvm/tools/gccas/Makefile5
-rw-r--r--llvm/tools/gccld/Makefile5
-rw-r--r--llvm/tools/llc/Makefile43
-rw-r--r--llvm/tools/llee/Makefile2
-rw-r--r--llvm/tools/llvm-ar/Makefile2
-rw-r--r--llvm/tools/llvm-as/Makefile2
-rw-r--r--llvm/tools/llvm-bcanalyzer/Makefile2
-rw-r--r--llvm/tools/llvm-db/Makefile2
-rw-r--r--llvm/tools/llvm-dis/Makefile2
-rw-r--r--llvm/tools/llvm-ld/Linker.cpp3
-rw-r--r--llvm/tools/llvm-link/Makefile2
-rw-r--r--llvm/tools/llvm-nm/Makefile2
-rw-r--r--llvm/tools/llvm-prof/Makefile2
-rw-r--r--llvm/tools/opt/Makefile9
-rw-r--r--llvm/utils/TableGen/Makefile2
-rw-r--r--llvm/utils/fpcmp/Makefile2
50 files changed, 101 insertions, 91 deletions
diff --git a/llvm/examples/ModuleMaker/Makefile b/llvm/examples/ModuleMaker/Makefile
index c99b7e7891c..2bd8a38b7e2 100644
--- a/llvm/examples/ModuleMaker/Makefile
+++ b/llvm/examples/ModuleMaker/Makefile
@@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL=../..
TOOLNAME=ModuleMaker
-USEDLIBS= bcwriter vmcore support.a LLVMsystem.a
+USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Analysis/Makefile b/llvm/lib/Analysis/Makefile
index 2a8d34ea726..b679b572c5b 100644
--- a/llvm/lib/Analysis/Makefile
+++ b/llvm/lib/Analysis/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = analysis
+LIBRARYNAME = LLVMAnalysis
PARALLEL_DIRS = IPA DataStructure
BUILD_ARCHIVE = 1
diff --git a/llvm/lib/AsmParser/Makefile b/llvm/lib/AsmParser/Makefile
index b5e6fb9cf6d..2b85e1aaad1 100644
--- a/llvm/lib/AsmParser/Makefile
+++ b/llvm/lib/AsmParser/Makefile
@@ -9,7 +9,7 @@
LEVEL = ../..
-LIBRARYNAME = asmparser
+LIBRARYNAME = LLVMAsmParser
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/CodeGen/Makefile b/llvm/lib/CodeGen/Makefile
index cc72a03a16a..05453a36ef7 100644
--- a/llvm/lib/CodeGen/Makefile
+++ b/llvm/lib/CodeGen/Makefile
@@ -9,6 +9,6 @@
LEVEL = ../..
PARALLEL_DIRS = SelectionDAG
-LIBRARYNAME = codegen
+LIBRARYNAME = LLVMCodeGen
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/CodeGen/SelectionDAG/Makefile b/llvm/lib/CodeGen/SelectionDAG/Makefile
index d3fc5a956ff..85aafab0b84 100644
--- a/llvm/lib/CodeGen/SelectionDAG/Makefile
+++ b/llvm/lib/CodeGen/SelectionDAG/Makefile
@@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
PARALLEL_DIRS =
-LIBRARYNAME = selectiondag
+LIBRARYNAME = LLVMSelectionDAG
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Debugger/Makefile b/llvm/lib/Debugger/Makefile
index 1cb6e0d21d4..b9df8dc775c 100644
--- a/llvm/lib/Debugger/Makefile
+++ b/llvm/lib/Debugger/Makefile
@@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = debugger
+LIBRARYNAME = LLVMDebugger
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/ExecutionEngine/Makefile b/llvm/lib/ExecutionEngine/Makefile
index a100b703233..c4998fc53d1 100644
--- a/llvm/lib/ExecutionEngine/Makefile
+++ b/llvm/lib/ExecutionEngine/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = executionengine
+LIBRARYNAME = LLVMExecutionEngine
PARALLEL_DIRS = Interpreter JIT
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Support/Makefile b/llvm/lib/Support/Makefile
index 0b6660408ac..2e4a5b066aa 100644
--- a/llvm/lib/Support/Makefile
+++ b/llvm/lib/Support/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = support
+LIBRARYNAME = LLVMSupport
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/System/Makefile b/llvm/lib/System/Makefile
index e40fe4bca02..d0a7acff26b 100644
--- a/llvm/lib/System/Makefile
+++ b/llvm/lib/System/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = LLVMsystem
+LIBRARYNAME = LLVMSystem
BUILD_ARCHIVE = 1
EXTRA_DIST = AIX Cygwin Darwin FreeBSD Interix Linux SunOS Unix Win32
diff --git a/llvm/lib/System/Unix/MappedFile.cpp b/llvm/lib/System/Unix/MappedFile.cpp
index fec2408c195..7e03cd15a81 100644
--- a/llvm/lib/System/Unix/MappedFile.cpp
+++ b/llvm/lib/System/Unix/MappedFile.cpp
@@ -20,7 +20,6 @@
#include "Unix.h"
#include <fcntl.h>
#include <sys/mman.h>
-#include <sys/stat.h>
namespace llvm {
using namespace sys;
diff --git a/llvm/lib/Target/CBackend/Makefile b/llvm/lib/Target/CBackend/Makefile
index 7fcc434c911..fc32db0a40e 100644
--- a/llvm/lib/Target/CBackend/Makefile
+++ b/llvm/lib/Target/CBackend/Makefile
@@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = cwriter
+LIBRARYNAME = LLVMCBackend
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Target/Makefile b/llvm/lib/Target/Makefile
index da74511be51..7c525ef86ff 100644
--- a/llvm/lib/Target/Makefile
+++ b/llvm/lib/Target/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
PARALLEL_DIRS = CBackend X86 SparcV9 PowerPC Skeleton
-LIBRARYNAME = target
+LIBRARYNAME = LLVMTarget
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Target/PowerPC/Makefile b/llvm/lib/Target/PowerPC/Makefile
index 05768ab212c..95432819cdc 100644
--- a/llvm/lib/Target/PowerPC/Makefile
+++ b/llvm/lib/Target/PowerPC/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = powerpc
+LIBRARYNAME = LLVMPowerPC
TARGET = PowerPC
# Make sure that tblgen is run, first thing.
diff --git a/llvm/lib/Target/Skeleton/Makefile b/llvm/lib/Target/Skeleton/Makefile
index bc9a16ddfd9..07ce6f267c6 100644
--- a/llvm/lib/Target/Skeleton/Makefile
+++ b/llvm/lib/Target/Skeleton/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = skeleton
+LIBRARYNAME = LLVMSkeleton
TARGET = Skeleton
# Make sure that tblgen is run, first thing.
diff --git a/llvm/lib/Target/SparcV9/InstrSched/Makefile b/llvm/lib/Target/SparcV9/InstrSched/Makefile
index 81caf77b1fc..ea2c3aa57a4 100644
--- a/llvm/lib/Target/SparcV9/InstrSched/Makefile
+++ b/llvm/lib/Target/SparcV9/InstrSched/Makefile
@@ -9,6 +9,6 @@
LEVEL = ../../../..
DIRS =
-LIBRARYNAME = sparcv9sched
+LIBRARYNAME = LLVMSparcV9InstrSched
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Target/SparcV9/LiveVar/Makefile b/llvm/lib/Target/SparcV9/LiveVar/Makefile
index 6973f63aa58..a2a53e6ca3a 100644
--- a/llvm/lib/Target/SparcV9/LiveVar/Makefile
+++ b/llvm/lib/Target/SparcV9/LiveVar/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
-LIBRARYNAME = sparcv9livevar
+LIBRARYNAME = LLVMSparcV9LiveVar
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Target/SparcV9/Makefile b/llvm/lib/Target/SparcV9/Makefile
index 363b73cad6d..30ee8699871 100644
--- a/llvm/lib/Target/SparcV9/Makefile
+++ b/llvm/lib/Target/SparcV9/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = sparcv9
+LIBRARYNAME = LLVMSparcV9
PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc
BUILT_SOURCES = \
diff --git a/llvm/lib/Target/SparcV9/ModuloScheduling/Makefile b/llvm/lib/Target/SparcV9/ModuloScheduling/Makefile
index 44bf5ed6cae..2ec0503a173 100644
--- a/llvm/lib/Target/SparcV9/ModuloScheduling/Makefile
+++ b/llvm/lib/Target/SparcV9/ModuloScheduling/Makefile
@@ -9,6 +9,6 @@
LEVEL = ../../../..
DIRS =
-LIBRARYNAME = sparcv9modulosched
+LIBRARYNAME = LLVMSparcV9ModuloSched
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Target/SparcV9/RegAlloc/Makefile b/llvm/lib/Target/SparcV9/RegAlloc/Makefile
index 4daa1f5c469..c19984cb204 100644
--- a/llvm/lib/Target/SparcV9/RegAlloc/Makefile
+++ b/llvm/lib/Target/SparcV9/RegAlloc/Makefile
@@ -9,7 +9,7 @@
LEVEL = ../../../..
DIRS =
-LIBRARYNAME = sparcv9regalloc
+LIBRARYNAME = LLVMSparcV9RegAlloc
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Target/X86/Makefile b/llvm/lib/Target/X86/Makefile
index bdaf28c5e8a..87115eac81a 100644
--- a/llvm/lib/Target/X86/Makefile
+++ b/llvm/lib/Target/X86/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = x86
+LIBRARYNAME = LLVMX86
TARGET = X86
# Make sure that tblgen is run, first thing.
BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
diff --git a/llvm/lib/Transforms/Hello/Makefile b/llvm/lib/Transforms/Hello/Makefile
index af4253d1d1a..d9886a95e55 100644
--- a/llvm/lib/Transforms/Hello/Makefile
+++ b/llvm/lib/Transforms/Hello/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = hello
+LIBRARYNAME = LLVMHello
SHARED_LIBRARY = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Transforms/IPO/Makefile b/llvm/lib/Transforms/IPO/Makefile
index fe82fc11fa2..4f4563f18c8 100644
--- a/llvm/lib/Transforms/IPO/Makefile
+++ b/llvm/lib/Transforms/IPO/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = ipo
+LIBRARYNAME = LLVMipo
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Transforms/Instrumentation/Makefile b/llvm/lib/Transforms/Instrumentation/Makefile
index e1831afab6c..d749b6b3bde 100644
--- a/llvm/lib/Transforms/Instrumentation/Makefile
+++ b/llvm/lib/Transforms/Instrumentation/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = instrument
+LIBRARYNAME = LLVMInstrumentation
PARALLEL_DIRS = ProfilePaths
BUILD_ARCHIVE = 1
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/Makefile b/llvm/lib/Transforms/Instrumentation/ProfilePaths/Makefile
index 8deeeac814a..5a7477caf32 100644
--- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/Makefile
+++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
-LIBRARYNAME = profpaths
+LIBRARYNAME = LLVMProfilePaths
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Transforms/Makefile b/llvm/lib/Transforms/Makefile
index 88a2ca222fc..25cee595fd2 100644
--- a/llvm/lib/Transforms/Makefile
+++ b/llvm/lib/Transforms/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
PARALLEL_DIRS = Utils Instrumentation Scalar IPO
-LIBRARYNAME = transforms
+LIBRARYNAME = LLVMTransforms
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Transforms/Scalar/Makefile b/llvm/lib/Transforms/Scalar/Makefile
index 6ea90d178c6..267747f57b8 100644
--- a/llvm/lib/Transforms/Scalar/Makefile
+++ b/llvm/lib/Transforms/Scalar/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = scalaropts
+LIBRARYNAME = LLVMScalarOpts
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/Transforms/Utils/Makefile b/llvm/lib/Transforms/Utils/Makefile
index f4da9832fde..b349b6c5c52 100644
--- a/llvm/lib/Transforms/Utils/Makefile
+++ b/llvm/lib/Transforms/Utils/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
-LIBRARYNAME = transformutils
+LIBRARYNAME = LLVMTransformUtils
BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/lib/VMCore/Makefile b/llvm/lib/VMCore/Makefile
index 9fc1c96caa9..d3df2bfe785 100644
--- a/llvm/lib/VMCore/Makefile
+++ b/llvm/lib/VMCore/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = vmcore
+LIBRARYNAME = LLVMCore
include $(LEVEL)/Makefile.common
diff --git a/llvm/projects/Stacker/samples/Makefile b/llvm/projects/Stacker/samples/Makefile
index d5b9b6ed0a1..22190a78dbb 100644
--- a/llvm/projects/Stacker/samples/Makefile
+++ b/llvm/projects/Stacker/samples/Makefile
@@ -24,7 +24,7 @@ LLVMDIS_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/llvm-dis
all :: $(SAMPLES)
ifdef OPTIMIZE
-%.bc : %.st
+% : %.st
@$(ECHO) "Compiling and Optimizing $< to $*.bc"
$(VERB)$(STKRC_EXEC) -e -o - $< | opt -stats -q -f -o $*.bc \
-aa-eval -adce -branch-combine -cee -constmerge -constprop -dce -die -ds-aa \
diff --git a/llvm/projects/Stacker/tools/stkrc/Makefile b/llvm/projects/Stacker/tools/stkrc/Makefile
index f413dc236e4..4f352836fe6 100644
--- a/llvm/projects/Stacker/tools/stkrc/Makefile
+++ b/llvm/projects/Stacker/tools/stkrc/Makefile
@@ -8,10 +8,11 @@ LEVEL=../..
#
# Give the name of a library. This will build a dynamic version.
#
-TOOLNAME=stkrc
-LLVMLIBS= asmparser bcwriter transforms ipo.a ipa.a \
- scalaropts analysis.a target.a transformutils \
- vmcore support.a LLVMsystem.a
+TOOLNAME = stkrc
+LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
+ LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
+ LLVMCore LLVMSupport.a LLVMSystem.a
+
USEDLIBS=stkr_compiler
diff --git a/llvm/tools/Makefile.JIT b/llvm/tools/Makefile.JIT
index 8c9e5b0cb0a..7a2c48f5a6b 100644
--- a/llvm/tools/Makefile.JIT
+++ b/llvm/tools/Makefile.JIT
@@ -18,7 +18,7 @@ LEVEL = ../..
include $(LEVEL)/Makefile.config
# Generic JIT libraries
-JITLIBS = lli-jit codegen executionengine
+JITLIBS = LLVMJIT LLVMCodeGen LLVMExecutionEngine
ARCHLIBS =
# You can enable the X86 JIT on a non-X86 host by setting the flag
@@ -30,7 +30,7 @@ endif
# What the X86 JIT requires
ifdef ENABLE_X86_JIT
- JITLIBS += x86 selectiondag
+ JITLIBS += LLVMX86 LLVMSelectionDAG
# X86 doesn't require any ARCHLIBS
endif
@@ -43,10 +43,10 @@ endif
# What the Sparc JIT requires
ifdef ENABLE_SPARCV9_JIT
- JITLIBS += sparcv9
- ARCHLIBS += sparcv9sched sparcv9livevar instrument.a profpaths \
- bcwriter transforms.a ipo.a ipa.a datastructure.a \
- sparcv9regalloc
+ JITLIBS += LLVMSparcV9
+ ARCHLIBS += LLVMSparcV9sched LLVMSparcV9livevar LLVMInstrumentation.a \
+ LLVMProfilePaths LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMipa.a \
+ LLVMDataStructure.a LLVMSparcV9regalloc
endif
# You can enable the PowerPC JIT on a non-PowerPC host by setting the flag
@@ -58,8 +58,9 @@ endif
# What the PowerPC JIT requires
ifdef ENABLE_PPC_JIT
- JITLIBS += powerpc
+ JITLIBS += LLVMPowerPC
endif
-USEDLIBS += lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
- transformutils.a bcreader vmcore support target.a LLVMsystem.a
+USEDLIBS += LLVMInterpreter $(JITLIBS) $(ARCHLIBS) LLVMScalarOpts \
+ LLVMAnalysis.a LLVMTransformUtils.a LLVMBCReader LLVMCore \
+ LLVMSupport.a LLVMTarget.a LLVMSystem.a
diff --git a/llvm/tools/analyze/Makefile b/llvm/tools/analyze/Makefile
index ec94fe6a3eb..0d76f278ffe 100644
--- a/llvm/tools/analyze/Makefile
+++ b/llvm/tools/analyze/Makefile
@@ -8,9 +8,9 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = analyze
-USEDLIBS = asmparser bcreader analysis ipa datastructure scalaropts.a \
- transforms.a target.a scalaropts.a transformutils.a vmcore support \
- LLVMsystem.a
+USEDLIBS = LLVMAsmParser LLVMBCReader LLVMAnalysis LLVMipa LLVMDataStructure \
+ LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
+ LLVMTransformUtils.a LLVMCore LLVMSupport.a LLVMSystem.a
TOOLLINKOPTS = $(PLATFORMLIBDL)
diff --git a/llvm/tools/bugpoint/Makefile b/llvm/tools/bugpoint/Makefile
index aa1338ce6aa..e3addbdb266 100644
--- a/llvm/tools/bugpoint/Makefile
+++ b/llvm/tools/bugpoint/Makefile
@@ -10,11 +10,12 @@ LEVEL = ../..
TOOLNAME = bugpoint
-OPTLIBS = transforms instrument profpaths
-ANALIBS = datastructure ipa target.a
+OPTLIBS = LLVMTransforms LLVMInstrumentation LLVMProfilePaths
+ANALIBS = LLVMDataStructure LLVMipa LLVMTarget.a
-USEDLIBS = ipo scalaropts analysis $(OPTLIBS) $(ANALIBS) transformutils \
- asmparser bcreader bcwriter vmcore support LLVMsystem.a
+USEDLIBS = LLVMipo LLVMScalarOpts LLVMAnalysis $(OPTLIBS) $(ANALIBS) \
+ LLVMTransformUtils LLVMAsmParser LLVMBCReader LLVMBCWriter LLVMCore \
+ LLVMSupport.a LLVMSystem.a
TOOLLINKOPTS = $(PLATFORMLIBDL)
diff --git a/llvm/tools/extract/Makefile b/llvm/tools/extract/Makefile
index 35c624a4d6b..14a8124ee84 100644
--- a/llvm/tools/extract/Makefile
+++ b/llvm/tools/extract/Makefile
@@ -9,7 +9,8 @@
LEVEL = ../..
TOOLNAME = extract
-USEDLIBS = bcreader bcwriter transforms.a ipo.a target.a analysis.a \
- transformutils.a ipa.a vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
+ LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a LLVMCore LLVMSupport.a \
+ LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/gccas/Makefile b/llvm/tools/gccas/Makefile
index 37404d4b5ff..e67f3adbf7f 100644
--- a/llvm/tools/gccas/Makefile
+++ b/llvm/tools/gccas/Makefile
@@ -9,7 +9,8 @@
LEVEL = ../..
TOOLNAME = gccas
-USEDLIBS = asmparser bcwriter transforms ipo.a ipa.a scalaropts analysis.a \
- target.a transformutils vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
+ LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
+ LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/gccld/Makefile b/llvm/tools/gccld/Makefile
index fe1b166f044..2915c6b0567 100644
--- a/llvm/tools/gccld/Makefile
+++ b/llvm/tools/gccld/Makefile
@@ -10,7 +10,8 @@
LEVEL = ../..
TOOLNAME = gccld
-USEDLIBS = ipo.a transforms.a scalaropts.a analysis.a ipa.a transformutils.a \
- target.a bcreader bcwriter vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a LLVMipa.a \
+ LLVMTransformUtils.a LLVMTarget.a LLVMBCReader LLVMBCWriter LLVMCore \
+ LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llc/Makefile b/llvm/tools/llc/Makefile
index c11c521f9c2..553ff952add 100644
--- a/llvm/tools/llc/Makefile
+++ b/llvm/tools/llc/Makefile
@@ -10,27 +10,28 @@
LEVEL = ../..
TOOLNAME = llc
USEDLIBS = \
- cwriter \
- powerpc \
- sparcv9 \
- x86 \
- skeleton \
- selectiondag \
- sparcv9regalloc \
- sparcv9sched \
- codegen \
- target.a \
- sparcv9livevar \
- ipa.a \
- transforms.a \
- scalaropts.a \
- analysis.a \
- transformutils.a \
- bcreader \
- bcwriter \
- vmcore \
- support.a \
- LLVMsystem.a
+ LLVMCBackend \
+ LLVMPowerPC \
+ LLVMSparcV9 \
+ LLVMX86 \
+ LLVMSkeleton \
+ LLVMSelectionDAG \
+ LLVMSparcV9RegAlloc \
+ LLVMSparcV9InstrSched \
+ LLVMCodeGen \
+ LLVMTarget.a \
+ LLVMSparcV9LiveVar \
+ LLVMipa.a \
+ LLVMTransforms.a \
+ LLVMScalarOpts.a \
+ LLVMAnalysis.a \
+ LLVMTransformUtils.a \
+ LLVMBCReader \
+ LLVMBCWriter \
+ LLVMCore \
+ LLVMSupport.a \
+ LLVMSystem.a
+
TOOLLINKOPTS = $(PLATFORMLIBDL)
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llee/Makefile b/llvm/tools/llee/Makefile
index fdf3389f28a..9e9fc60a3c8 100644
--- a/llvm/tools/llee/Makefile
+++ b/llvm/tools/llee/Makefile
@@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../..
-LIBRARYNAME = execve
+LIBRARYNAME = LLVMexecve
SHARED_LIBRARY = 1
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-ar/Makefile b/llvm/tools/llvm-ar/Makefile
index 2f4257b64de..938f73ef11a 100644
--- a/llvm/tools/llvm-ar/Makefile
+++ b/llvm/tools/llvm-ar/Makefile
@@ -9,6 +9,6 @@
LEVEL = ../..
TOOLNAME = llvm-ar
-USEDLIBS = bcreader vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-as/Makefile b/llvm/tools/llvm-as/Makefile
index 689e2684aee..5482aa1a959 100644
--- a/llvm/tools/llvm-as/Makefile
+++ b/llvm/tools/llvm-as/Makefile
@@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-as
-USEDLIBS = asmparser bcwriter vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-bcanalyzer/Makefile b/llvm/tools/llvm-bcanalyzer/Makefile
index e913be2f14b..17a9d3234f6 100644
--- a/llvm/tools/llvm-bcanalyzer/Makefile
+++ b/llvm/tools/llvm-bcanalyzer/Makefile
@@ -9,5 +9,5 @@
LEVEL = ../..
TOOLNAME = llvm-bcanalyzer
-USEDLIBS = bcreader vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-db/Makefile b/llvm/tools/llvm-db/Makefile
index db090540cbf..e1f1f2d9b7d 100644
--- a/llvm/tools/llvm-db/Makefile
+++ b/llvm/tools/llvm-db/Makefile
@@ -9,7 +9,7 @@
LEVEL = ../..
TOOLNAME = llvm-db
-USEDLIBS = debugger
+USEDLIBS = LLVMDebugger
# Enable JIT support
include ../Makefile.JIT
diff --git a/llvm/tools/llvm-dis/Makefile b/llvm/tools/llvm-dis/Makefile
index 2b0189d40ea..3c8d3b5814d 100644
--- a/llvm/tools/llvm-dis/Makefile
+++ b/llvm/tools/llvm-dis/Makefile
@@ -9,5 +9,5 @@
LEVEL = ../..
TOOLNAME = llvm-dis
-USEDLIBS = bcreader vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-ld/Linker.cpp b/llvm/tools/llvm-ld/Linker.cpp
index 4af152b155b..9d1999517fd 100644
--- a/llvm/tools/llvm-ld/Linker.cpp
+++ b/llvm/tools/llvm-ld/Linker.cpp
@@ -86,6 +86,7 @@ llvm::GetAllUndefinedSymbols(Module *M,
std::set<std::string> DefinedSymbols;
UndefinedSymbols.clear(); // Start out empty
+ // Add in all the external functions
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
if (I->hasName()) {
if (I->isExternal())
@@ -93,6 +94,8 @@ llvm::GetAllUndefinedSymbols(Module *M,
else if (!I->hasInternalLinkage())
DefinedSymbols.insert(I->getName());
}
+
+ // Add in all the external globals
for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
if (I->hasName()) {
if (I->isExternal())
diff --git a/llvm/tools/llvm-link/Makefile b/llvm/tools/llvm-link/Makefile
index 1fc4683bb49..49862724065 100644
--- a/llvm/tools/llvm-link/Makefile
+++ b/llvm/tools/llvm-link/Makefile
@@ -9,6 +9,6 @@
LEVEL = ../..
TOOLNAME = llvm-link
-USEDLIBS = bcreader bcwriter vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-nm/Makefile b/llvm/tools/llvm-nm/Makefile
index d1b1bd15055..b3f1702bf5c 100644
--- a/llvm/tools/llvm-nm/Makefile
+++ b/llvm/tools/llvm-nm/Makefile
@@ -9,5 +9,5 @@
LEVEL = ../..
TOOLNAME = llvm-nm
-USEDLIBS = bcreader vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/llvm-prof/Makefile b/llvm/tools/llvm-prof/Makefile
index c187296f844..567bc4316a1 100644
--- a/llvm/tools/llvm-prof/Makefile
+++ b/llvm/tools/llvm-prof/Makefile
@@ -9,5 +9,5 @@
LEVEL = ../..
TOOLNAME = llvm-prof
-USEDLIBS = analysis.a bcreader vmcore support.a LLVMsystem.a
+USEDLIBS = LLVMAnalysis.a LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/tools/opt/Makefile b/llvm/tools/opt/Makefile
index de0568afd2e..e43fed39876 100644
--- a/llvm/tools/opt/Makefile
+++ b/llvm/tools/opt/Makefile
@@ -9,10 +9,11 @@
LEVEL = ../..
TOOLNAME = opt
-USEDLIBS = bcreader bcwriter \
- instrument profpaths scalaropts \
- ipo ipa datastructure transforms target.a analysis \
- transformutils vmcore support LLVMsystem.a
+USEDLIBS = LLVMBCReader LLVMBCWriter LLVMInstrumentation LLVMProfilePaths \
+ LLVMScalarOpts LLVMipo LLVMipa LLVMDataStructure LLVMTransforms \
+ LLVMTarget.a LLVMAnalysis LLVMTransformUtils LLVMCore LLVMSupport.a \
+ LLVMSystem.a
+
TOOLLINKOPTS = $(PLATFORMLIBDL)
include $(LEVEL)/Makefile.common
diff --git a/llvm/utils/TableGen/Makefile b/llvm/utils/TableGen/Makefile
index 93fd75a3b0e..aad4c8d70e2 100644
--- a/llvm/utils/TableGen/Makefile
+++ b/llvm/utils/TableGen/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = tblgen
-USEDLIBS = support.a LLVMsystem.a
+USEDLIBS = LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common
diff --git a/llvm/utils/fpcmp/Makefile b/llvm/utils/fpcmp/Makefile
index e38c51d2bad..5ba547e699a 100644
--- a/llvm/utils/fpcmp/Makefile
+++ b/llvm/utils/fpcmp/Makefile
@@ -9,7 +9,7 @@
LEVEL = ../..
TOOLNAME = fpcmp
-USEDLIBS = support.a
+USEDLIBS = LLVMSupport.a
include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud