Change Library Names Not To Conflict With Others When Installed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-10-27 23:18:45 +00:00
parent af362fc492
commit 6cb21d443e
51 changed files with 101 additions and 92 deletions

View File

@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL=../.. LEVEL=../..
TOOLNAME=ModuleMaker TOOLNAME=ModuleMaker
USEDLIBS= bcwriter vmcore support.a LLVMsystem.a USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = analysis LIBRARYNAME = LLVMAnalysis
PARALLEL_DIRS = IPA DataStructure PARALLEL_DIRS = IPA DataStructure
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1

View File

@ -9,7 +9,7 @@
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = asmparser LIBRARYNAME = LLVMAsmParser
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,6 +9,6 @@
LEVEL = ../.. LEVEL = ../..
PARALLEL_DIRS = SelectionDAG PARALLEL_DIRS = SelectionDAG
LIBRARYNAME = codegen LIBRARYNAME = LLVMCodeGen
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
PARALLEL_DIRS = PARALLEL_DIRS =
LIBRARYNAME = selectiondag LIBRARYNAME = LLVMSelectionDAG
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = debugger LIBRARYNAME = LLVMDebugger
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = executionengine LIBRARYNAME = LLVMExecutionEngine
PARALLEL_DIRS = Interpreter JIT PARALLEL_DIRS = Interpreter JIT
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = support LIBRARYNAME = LLVMSupport
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = LLVMsystem LIBRARYNAME = LLVMSystem
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
EXTRA_DIST = AIX Cygwin Darwin FreeBSD Interix Linux SunOS Unix Win32 EXTRA_DIST = AIX Cygwin Darwin FreeBSD Interix Linux SunOS Unix Win32

View File

@ -20,7 +20,6 @@
#include "Unix.h" #include "Unix.h"
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/stat.h>
namespace llvm { namespace llvm {
using namespace sys; using namespace sys;

View File

@ -20,7 +20,6 @@
#include "Unix.h" #include "Unix.h"
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/stat.h>
namespace llvm { namespace llvm {
using namespace sys; using namespace sys;

View File

@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = cwriter LIBRARYNAME = LLVMCBackend
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
PARALLEL_DIRS = CBackend X86 SparcV9 PowerPC Skeleton PARALLEL_DIRS = CBackend X86 SparcV9 PowerPC Skeleton
LIBRARYNAME = target LIBRARYNAME = LLVMTarget
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = powerpc LIBRARYNAME = LLVMPowerPC
TARGET = PowerPC TARGET = PowerPC
# Make sure that tblgen is run, first thing. # Make sure that tblgen is run, first thing.

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = skeleton LIBRARYNAME = LLVMSkeleton
TARGET = Skeleton TARGET = Skeleton
# Make sure that tblgen is run, first thing. # Make sure that tblgen is run, first thing.

View File

@ -9,6 +9,6 @@
LEVEL = ../../../.. LEVEL = ../../../..
DIRS = DIRS =
LIBRARYNAME = sparcv9sched LIBRARYNAME = LLVMSparcV9InstrSched
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../../.. LEVEL = ../../../..
LIBRARYNAME = sparcv9livevar LIBRARYNAME = LLVMSparcV9LiveVar
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = sparcv9 LIBRARYNAME = LLVMSparcV9
PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc
BUILT_SOURCES = \ BUILT_SOURCES = \

View File

@ -9,6 +9,6 @@
LEVEL = ../../../.. LEVEL = ../../../..
DIRS = DIRS =
LIBRARYNAME = sparcv9modulosched LIBRARYNAME = LLVMSparcV9ModuloSched
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,7 +9,7 @@
LEVEL = ../../../.. LEVEL = ../../../..
DIRS = DIRS =
LIBRARYNAME = sparcv9regalloc LIBRARYNAME = LLVMSparcV9RegAlloc
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = x86 LIBRARYNAME = LLVMX86
TARGET = X86 TARGET = X86
# Make sure that tblgen is run, first thing. # Make sure that tblgen is run, first thing.
BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \ BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = hello LIBRARYNAME = LLVMHello
SHARED_LIBRARY = 1 SHARED_LIBRARY = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = ipo LIBRARYNAME = LLVMipo
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = instrument LIBRARYNAME = LLVMInstrumentation
PARALLEL_DIRS = ProfilePaths PARALLEL_DIRS = ProfilePaths
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../../.. LEVEL = ../../../..
LIBRARYNAME = profpaths LIBRARYNAME = LLVMProfilePaths
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
PARALLEL_DIRS = Utils Instrumentation Scalar IPO PARALLEL_DIRS = Utils Instrumentation Scalar IPO
LIBRARYNAME = transforms LIBRARYNAME = LLVMTransforms
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = scalaropts LIBRARYNAME = LLVMScalarOpts
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../../.. LEVEL = ../../..
LIBRARYNAME = transformutils LIBRARYNAME = LLVMTransformUtils
BUILD_ARCHIVE = 1 BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = vmcore LIBRARYNAME = LLVMCore
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -24,7 +24,7 @@ LLVMDIS_EXEC = $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)/llvm-dis
all :: $(SAMPLES) all :: $(SAMPLES)
ifdef OPTIMIZE ifdef OPTIMIZE
%.bc : %.st % : %.st
@$(ECHO) "Compiling and Optimizing $< to $*.bc" @$(ECHO) "Compiling and Optimizing $< to $*.bc"
$(VERB)$(STKRC_EXEC) -e -o - $< | opt -stats -q -f -o $*.bc \ $(VERB)$(STKRC_EXEC) -e -o - $< | opt -stats -q -f -o $*.bc \
-aa-eval -adce -branch-combine -cee -constmerge -constprop -dce -die -ds-aa \ -aa-eval -adce -branch-combine -cee -constmerge -constprop -dce -die -ds-aa \

View File

@ -8,10 +8,11 @@ LEVEL=../..
# #
# Give the name of a library. This will build a dynamic version. # Give the name of a library. This will build a dynamic version.
# #
TOOLNAME=stkrc TOOLNAME = stkrc
LLVMLIBS= asmparser bcwriter transforms ipo.a ipa.a \ LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
scalaropts analysis.a target.a transformutils \ LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
vmcore support.a LLVMsystem.a LLVMCore LLVMSupport.a LLVMSystem.a
USEDLIBS=stkr_compiler USEDLIBS=stkr_compiler

View File

@ -18,7 +18,7 @@ LEVEL = ../..
include $(LEVEL)/Makefile.config include $(LEVEL)/Makefile.config
# Generic JIT libraries # Generic JIT libraries
JITLIBS = lli-jit codegen executionengine JITLIBS = LLVMJIT LLVMCodeGen LLVMExecutionEngine
ARCHLIBS = ARCHLIBS =
# You can enable the X86 JIT on a non-X86 host by setting the flag # 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 # What the X86 JIT requires
ifdef ENABLE_X86_JIT ifdef ENABLE_X86_JIT
JITLIBS += x86 selectiondag JITLIBS += LLVMX86 LLVMSelectionDAG
# X86 doesn't require any ARCHLIBS # X86 doesn't require any ARCHLIBS
endif endif
@ -43,10 +43,10 @@ endif
# What the Sparc JIT requires # What the Sparc JIT requires
ifdef ENABLE_SPARCV9_JIT ifdef ENABLE_SPARCV9_JIT
JITLIBS += sparcv9 JITLIBS += LLVMSparcV9
ARCHLIBS += sparcv9sched sparcv9livevar instrument.a profpaths \ ARCHLIBS += LLVMSparcV9sched LLVMSparcV9livevar LLVMInstrumentation.a \
bcwriter transforms.a ipo.a ipa.a datastructure.a \ LLVMProfilePaths LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMipa.a \
sparcv9regalloc LLVMDataStructure.a LLVMSparcV9regalloc
endif endif
# You can enable the PowerPC JIT on a non-PowerPC host by setting the flag # 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 # What the PowerPC JIT requires
ifdef ENABLE_PPC_JIT ifdef ENABLE_PPC_JIT
JITLIBS += powerpc JITLIBS += LLVMPowerPC
endif endif
USEDLIBS += lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ USEDLIBS += LLVMInterpreter $(JITLIBS) $(ARCHLIBS) LLVMScalarOpts \
transformutils.a bcreader vmcore support target.a LLVMsystem.a LLVMAnalysis.a LLVMTransformUtils.a LLVMBCReader LLVMCore \
LLVMSupport.a LLVMTarget.a LLVMSystem.a

View File

@ -8,9 +8,9 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
TOOLNAME = analyze TOOLNAME = analyze
USEDLIBS = asmparser bcreader analysis ipa datastructure scalaropts.a \ USEDLIBS = LLVMAsmParser LLVMBCReader LLVMAnalysis LLVMipa LLVMDataStructure \
transforms.a target.a scalaropts.a transformutils.a vmcore support \ LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
LLVMsystem.a LLVMTransformUtils.a LLVMCore LLVMSupport.a LLVMSystem.a
TOOLLINKOPTS = $(PLATFORMLIBDL) TOOLLINKOPTS = $(PLATFORMLIBDL)

View File

@ -10,11 +10,12 @@ LEVEL = ../..
TOOLNAME = bugpoint TOOLNAME = bugpoint
OPTLIBS = transforms instrument profpaths OPTLIBS = LLVMTransforms LLVMInstrumentation LLVMProfilePaths
ANALIBS = datastructure ipa target.a ANALIBS = LLVMDataStructure LLVMipa LLVMTarget.a
USEDLIBS = ipo scalaropts analysis $(OPTLIBS) $(ANALIBS) transformutils \ USEDLIBS = LLVMipo LLVMScalarOpts LLVMAnalysis $(OPTLIBS) $(ANALIBS) \
asmparser bcreader bcwriter vmcore support LLVMsystem.a LLVMTransformUtils LLVMAsmParser LLVMBCReader LLVMBCWriter LLVMCore \
LLVMSupport.a LLVMSystem.a
TOOLLINKOPTS = $(PLATFORMLIBDL) TOOLLINKOPTS = $(PLATFORMLIBDL)

View File

@ -9,7 +9,8 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = extract TOOLNAME = extract
USEDLIBS = bcreader bcwriter transforms.a ipo.a target.a analysis.a \ USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
transformutils.a ipa.a vmcore support.a LLVMsystem.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a LLVMCore LLVMSupport.a \
LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,7 +9,8 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = gccas TOOLNAME = gccas
USEDLIBS = asmparser bcwriter transforms ipo.a ipa.a scalaropts analysis.a \ USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
target.a transformutils vmcore support.a LLVMsystem.a LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -10,7 +10,8 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = gccld TOOLNAME = gccld
USEDLIBS = ipo.a transforms.a scalaropts.a analysis.a ipa.a transformutils.a \ USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a LLVMipa.a \
target.a bcreader bcwriter vmcore support.a LLVMsystem.a LLVMTransformUtils.a LLVMTarget.a LLVMBCReader LLVMBCWriter LLVMCore \
LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -10,27 +10,28 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llc TOOLNAME = llc
USEDLIBS = \ USEDLIBS = \
cwriter \ LLVMCBackend \
powerpc \ LLVMPowerPC \
sparcv9 \ LLVMSparcV9 \
x86 \ LLVMX86 \
skeleton \ LLVMSkeleton \
selectiondag \ LLVMSelectionDAG \
sparcv9regalloc \ LLVMSparcV9RegAlloc \
sparcv9sched \ LLVMSparcV9InstrSched \
codegen \ LLVMCodeGen \
target.a \ LLVMTarget.a \
sparcv9livevar \ LLVMSparcV9LiveVar \
ipa.a \ LLVMipa.a \
transforms.a \ LLVMTransforms.a \
scalaropts.a \ LLVMScalarOpts.a \
analysis.a \ LLVMAnalysis.a \
transformutils.a \ LLVMTransformUtils.a \
bcreader \ LLVMBCReader \
bcwriter \ LLVMBCWriter \
vmcore \ LLVMCore \
support.a \ LLVMSupport.a \
LLVMsystem.a LLVMSystem.a
TOOLLINKOPTS = $(PLATFORMLIBDL) TOOLLINKOPTS = $(PLATFORMLIBDL)
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
# #
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
LIBRARYNAME = execve LIBRARYNAME = LLVMexecve
SHARED_LIBRARY = 1 SHARED_LIBRARY = 1
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,6 +9,6 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-ar TOOLNAME = llvm-ar
USEDLIBS = bcreader vmcore support.a LLVMsystem.a USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,6 +8,6 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-as TOOLNAME = llvm-as
USEDLIBS = asmparser bcwriter vmcore support.a LLVMsystem.a USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,5 +9,5 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-bcanalyzer TOOLNAME = llvm-bcanalyzer
USEDLIBS = bcreader vmcore support.a LLVMsystem.a USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,7 +9,7 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-db TOOLNAME = llvm-db
USEDLIBS = debugger USEDLIBS = LLVMDebugger
# Enable JIT support # Enable JIT support
include ../Makefile.JIT include ../Makefile.JIT

View File

@ -9,5 +9,5 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-dis TOOLNAME = llvm-dis
USEDLIBS = bcreader vmcore support.a LLVMsystem.a USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -86,6 +86,7 @@ llvm::GetAllUndefinedSymbols(Module *M,
std::set<std::string> DefinedSymbols; std::set<std::string> DefinedSymbols;
UndefinedSymbols.clear(); // Start out empty UndefinedSymbols.clear(); // Start out empty
// Add in all the external functions
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I) for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
if (I->hasName()) { if (I->hasName()) {
if (I->isExternal()) if (I->isExternal())
@ -93,6 +94,8 @@ llvm::GetAllUndefinedSymbols(Module *M,
else if (!I->hasInternalLinkage()) else if (!I->hasInternalLinkage())
DefinedSymbols.insert(I->getName()); DefinedSymbols.insert(I->getName());
} }
// Add in all the external globals
for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I) for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
if (I->hasName()) { if (I->hasName()) {
if (I->isExternal()) if (I->isExternal())

View File

@ -9,6 +9,6 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-link TOOLNAME = llvm-link
USEDLIBS = bcreader bcwriter vmcore support.a LLVMsystem.a USEDLIBS = LLVMBCReader LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,5 +9,5 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-nm TOOLNAME = llvm-nm
USEDLIBS = bcreader vmcore support.a LLVMsystem.a USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,5 +9,5 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = llvm-prof 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 include $(LEVEL)/Makefile.common

View File

@ -9,10 +9,11 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = opt TOOLNAME = opt
USEDLIBS = bcreader bcwriter \ USEDLIBS = LLVMBCReader LLVMBCWriter LLVMInstrumentation LLVMProfilePaths \
instrument profpaths scalaropts \ LLVMScalarOpts LLVMipo LLVMipa LLVMDataStructure LLVMTransforms \
ipo ipa datastructure transforms target.a analysis \ LLVMTarget.a LLVMAnalysis LLVMTransformUtils LLVMCore LLVMSupport.a \
transformutils vmcore support LLVMsystem.a LLVMSystem.a
TOOLLINKOPTS = $(PLATFORMLIBDL) TOOLLINKOPTS = $(PLATFORMLIBDL)
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===## ##===----------------------------------------------------------------------===##
LEVEL = ../.. LEVEL = ../..
TOOLNAME = tblgen TOOLNAME = tblgen
USEDLIBS = support.a LLVMsystem.a USEDLIBS = LLVMSupport.a LLVMSystem.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common

View File

@ -9,7 +9,7 @@
LEVEL = ../.. LEVEL = ../..
TOOLNAME = fpcmp TOOLNAME = fpcmp
USEDLIBS = support.a USEDLIBS = LLVMSupport.a
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common