Remove unneeded files from the build.
I used the following command to determine which source files were unneeded: | for i in `find lib/clang -name '*.o'` | do | MATCHES="`(nm -g --defined-only $i; nm -g --defined-only \ | usr.bin/clang/clang/clang) | sed -e 's/.* //' | \ | sort | uniq -d | wc -l`" | [ $MATCHES -eq 0 ] && echo "$i: unneeded" | done This should slightly improve the build times.
This commit is contained in:
parent
4a23ecc77e
commit
9987dff003
@ -17,7 +17,7 @@ TARGET_ARCH?= ${MACHINE_ARCH}
|
||||
# XXX: 8.0, to keep __FreeBSD_cc_version happy
|
||||
CFLAGS+=-DLLVM_HOSTTRIPLE=\"${TARGET_ARCH}-undermydesk-freebsd9.0\" \
|
||||
-DCLANG_VENDOR=\"FreeBSD\ \" -DSVN_REVISION=\"104832\" \
|
||||
-DCLANG_VENDOR_SUFFIX=\"\ 20100614\"
|
||||
-DCLANG_VENDOR_SUFFIX=\"\ 20100615\"
|
||||
|
||||
.PATH: ${LLVM_SRCS}/${SRCDIR}
|
||||
|
||||
|
@ -10,15 +10,15 @@ SRCS= AliasAnalysis.cpp AliasAnalysisCounter.cpp \
|
||||
DbgInfoPrinter.cpp DebugInfo.cpp IVUsers.cpp InlineCost.cpp \
|
||||
InstCount.cpp InstructionSimplify.cpp Interval.cpp \
|
||||
IntervalPartition.cpp LazyValueInfo.cpp \
|
||||
LibCallAliasAnalysis.cpp LibCallSemantics.cpp Lint.cpp \
|
||||
LiveValues.cpp LoopDependenceAnalysis.cpp LoopInfo.cpp \
|
||||
LoopPass.cpp MemoryBuiltins.cpp MemoryDependenceAnalysis.cpp \
|
||||
LibCallAliasAnalysis.cpp Lint.cpp LiveValues.cpp \
|
||||
LoopDependenceAnalysis.cpp LoopInfo.cpp LoopPass.cpp \
|
||||
MemoryBuiltins.cpp MemoryDependenceAnalysis.cpp \
|
||||
PHITransAddr.cpp PointerTracking.cpp PostDominators.cpp \
|
||||
ProfileEstimatorPass.cpp ProfileInfo.cpp ProfileInfoLoader.cpp \
|
||||
ProfileInfoLoaderPass.cpp ProfileVerifierPass.cpp \
|
||||
ScalarEvolution.cpp ScalarEvolutionAliasAnalysis.cpp \
|
||||
ScalarEvolutionExpander.cpp ScalarEvolutionNormalization.cpp \
|
||||
SparsePropagation.cpp Trace.cpp ValueTracking.cpp
|
||||
SparsePropagation.cpp ValueTracking.cpp
|
||||
|
||||
TGHDRS= Intrinsics
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
LIB= llvmbitreader
|
||||
|
||||
SRCDIR= lib/Bitcode/Reader
|
||||
SRCS= BitReader.cpp BitcodeReader.cpp
|
||||
SRCS= BitcodeReader.cpp
|
||||
|
||||
TGHDRS= Intrinsics
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
LIB= llvmbitwriter
|
||||
|
||||
SRCDIR= lib/Bitcode/Writer
|
||||
SRCS= BitWriter.cpp BitcodeWriter.cpp BitcodeWriterPass.cpp \
|
||||
SRCS= BitcodeWriter.cpp BitcodeWriterPass.cpp \
|
||||
ValueEnumerator.cpp
|
||||
|
||||
.include "../clang.lib.mk"
|
||||
|
@ -7,21 +7,20 @@ SRCS= AggressiveAntiDepBreaker.cpp Analysis.cpp BranchFolding.cpp \
|
||||
CalcSpillWeights.cpp CodePlacementOpt.cpp \
|
||||
CriticalAntiDepBreaker.cpp DeadMachineInstructionElim.cpp \
|
||||
DwarfEHPrepare.cpp ELFCodeEmitter.cpp ELFWriter.cpp \
|
||||
ExactHazardRecognizer.cpp GCMetadata.cpp GCMetadataPrinter.cpp \
|
||||
GCStrategy.cpp IfConversion.cpp IntrinsicLowering.cpp \
|
||||
LLVMTargetMachine.cpp LatencyPriorityQueue.cpp \
|
||||
LiveInterval.cpp LiveIntervalAnalysis.cpp \
|
||||
LiveStackAnalysis.cpp LiveVariables.cpp LowerSubregs.cpp \
|
||||
MachineBasicBlock.cpp MachineCSE.cpp MachineDominators.cpp \
|
||||
MachineFunction.cpp MachineFunctionAnalysis.cpp \
|
||||
MachineFunctionPass.cpp MachineFunctionPrinterPass.cpp \
|
||||
MachineInstr.cpp MachineLICM.cpp MachineLoopInfo.cpp \
|
||||
MachineModuleInfo.cpp MachineModuleInfoImpls.cpp \
|
||||
MachinePassRegistry.cpp MachineRegisterInfo.cpp \
|
||||
MachineSSAUpdater.cpp MachineSink.cpp MachineVerifier.cpp \
|
||||
ObjectCodeEmitter.cpp OcamlGC.cpp OptimizeExts.cpp \
|
||||
OptimizePHIs.cpp PHIElimination.cpp Passes.cpp \
|
||||
PostRASchedulerList.cpp PreAllocSplitting.cpp \
|
||||
ExactHazardRecognizer.cpp GCMetadata.cpp GCStrategy.cpp \
|
||||
IfConversion.cpp IntrinsicLowering.cpp LLVMTargetMachine.cpp \
|
||||
LatencyPriorityQueue.cpp LiveInterval.cpp \
|
||||
LiveIntervalAnalysis.cpp LiveStackAnalysis.cpp \
|
||||
LiveVariables.cpp LowerSubregs.cpp MachineBasicBlock.cpp \
|
||||
MachineCSE.cpp MachineDominators.cpp MachineFunction.cpp \
|
||||
MachineFunctionAnalysis.cpp MachineFunctionPass.cpp \
|
||||
MachineFunctionPrinterPass.cpp MachineInstr.cpp \
|
||||
MachineLICM.cpp MachineLoopInfo.cpp MachineModuleInfo.cpp \
|
||||
MachineModuleInfoImpls.cpp MachinePassRegistry.cpp \
|
||||
MachineRegisterInfo.cpp MachineSSAUpdater.cpp MachineSink.cpp \
|
||||
MachineVerifier.cpp ObjectCodeEmitter.cpp OcamlGC.cpp \
|
||||
OptimizeExts.cpp OptimizePHIs.cpp PHIElimination.cpp \
|
||||
Passes.cpp PostRASchedulerList.cpp PreAllocSplitting.cpp \
|
||||
ProcessImplicitDefs.cpp PrologEpilogInserter.cpp \
|
||||
PseudoSourceValue.cpp RegAllocFast.cpp RegAllocLinearScan.cpp \
|
||||
RegAllocLocal.cpp RegAllocPBQP.cpp RegisterCoalescer.cpp \
|
||||
|
@ -5,8 +5,8 @@ LIB= llvmcore
|
||||
SRCDIR= lib/VMCore
|
||||
SRCS= AsmWriter.cpp Attributes.cpp AutoUpgrade.cpp BasicBlock.cpp \
|
||||
ConstantFold.cpp Constants.cpp Core.cpp DebugLoc.cpp \
|
||||
Dominators.cpp Function.cpp GVMaterializer.cpp Globals.cpp \
|
||||
IRBuilder.cpp InlineAsm.cpp Instruction.cpp Instructions.cpp \
|
||||
Dominators.cpp Function.cpp Globals.cpp IRBuilder.cpp \
|
||||
InlineAsm.cpp Instruction.cpp Instructions.cpp \
|
||||
IntrinsicInst.cpp LLVMContext.cpp LLVMContextImpl.cpp \
|
||||
LeakDetector.cpp Metadata.cpp Module.cpp Pass.cpp \
|
||||
PassManager.cpp PrintModulePass.cpp Type.cpp \
|
||||
|
@ -6,11 +6,10 @@ SRCDIR= lib/Transforms/IPO
|
||||
SRCS= ArgumentPromotion.cpp ConstantMerge.cpp \
|
||||
DeadArgumentElimination.cpp DeadTypeElimination.cpp \
|
||||
ExtractGV.cpp FunctionAttrs.cpp GlobalDCE.cpp GlobalOpt.cpp \
|
||||
IPConstantPropagation.cpp IPO.cpp InlineAlways.cpp \
|
||||
InlineSimple.cpp Inliner.cpp Internalize.cpp LoopExtractor.cpp \
|
||||
LowerSetJmp.cpp MergeFunctions.cpp PartialSpecialization.cpp \
|
||||
PruneEH.cpp StripDeadPrototypes.cpp StripSymbols.cpp \
|
||||
StructRetPromotion.cpp
|
||||
IPConstantPropagation.cpp InlineAlways.cpp InlineSimple.cpp \
|
||||
Inliner.cpp Internalize.cpp LoopExtractor.cpp LowerSetJmp.cpp \
|
||||
MergeFunctions.cpp PartialSpecialization.cpp PruneEH.cpp \
|
||||
StripDeadPrototypes.cpp StripSymbols.cpp StructRetPromotion.cpp
|
||||
|
||||
TGHDRS= Intrinsics
|
||||
|
||||
|
@ -5,11 +5,10 @@ LIB= llvmmc
|
||||
SRCDIR= lib/MC
|
||||
SRCS= MCAsmInfo.cpp MCAsmInfoCOFF.cpp MCAsmInfoDarwin.cpp \
|
||||
MCAsmStreamer.cpp MCAssembler.cpp MCCodeEmitter.cpp \
|
||||
MCContext.cpp MCDisassembler.cpp MCExpr.cpp MCInst.cpp \
|
||||
MCInstPrinter.cpp MCLoggingStreamer.cpp MCMachOStreamer.cpp \
|
||||
MCNullStreamer.cpp MCObjectWriter.cpp MCSection.cpp \
|
||||
MCSectionCOFF.cpp MCSectionELF.cpp MCSectionMachO.cpp \
|
||||
MCStreamer.cpp MCSymbol.cpp MCValue.cpp MachObjectWriter.cpp \
|
||||
TargetAsmBackend.cpp
|
||||
MCContext.cpp MCExpr.cpp MCInst.cpp MCInstPrinter.cpp \
|
||||
MCLoggingStreamer.cpp MCMachOStreamer.cpp MCNullStreamer.cpp \
|
||||
MCObjectWriter.cpp MCSection.cpp MCSectionCOFF.cpp \
|
||||
MCSectionELF.cpp MCSectionMachO.cpp MCStreamer.cpp \
|
||||
MCSymbol.cpp MachObjectWriter.cpp TargetAsmBackend.cpp
|
||||
|
||||
.include "../clang.lib.mk"
|
||||
|
@ -9,7 +9,7 @@ SRCS= ADCE.cpp BasicBlockPlacement.cpp CodeGenPrepare.cpp \
|
||||
LICM.cpp LoopDeletion.cpp LoopIndexSplit.cpp LoopRotation.cpp \
|
||||
LoopStrengthReduce.cpp LoopUnrollPass.cpp LoopUnswitch.cpp \
|
||||
MemCpyOptimizer.cpp Reassociate.cpp Reg2Mem.cpp SCCP.cpp \
|
||||
Scalar.cpp ScalarReplAggregates.cpp SimplifyCFGPass.cpp \
|
||||
ScalarReplAggregates.cpp SimplifyCFGPass.cpp \
|
||||
SimplifyHalfPowrLibCalls.cpp SimplifyLibCalls.cpp \
|
||||
TailDuplication.cpp TailRecursionElimination.cpp
|
||||
|
||||
|
@ -6,14 +6,14 @@ SRCDIR= lib/Support
|
||||
SRCS= APFloat.cpp APInt.cpp APSInt.cpp Allocator.cpp CommandLine.cpp \
|
||||
ConstantRange.cpp Debug.cpp DeltaAlgorithm.cpp Dwarf.cpp \
|
||||
ErrorHandling.cpp FileUtilities.cpp FoldingSet.cpp \
|
||||
FormattedStream.cpp GraphWriter.cpp IsInf.cpp IsNAN.cpp \
|
||||
ManagedStatic.cpp MemoryBuffer.cpp MemoryObject.cpp \
|
||||
PluginLoader.cpp PrettyStackTrace.cpp Regex.cpp \
|
||||
SlowOperationInformer.cpp SmallPtrSet.cpp SmallVector.cpp \
|
||||
SourceMgr.cpp Statistic.cpp StringExtras.cpp StringMap.cpp \
|
||||
StringPool.cpp StringRef.cpp SystemUtils.cpp \
|
||||
TargetRegistry.cpp Timer.cpp Triple.cpp Twine.cpp \
|
||||
circular_raw_ostream.cpp raw_os_ostream.cpp raw_ostream.cpp \
|
||||
regcomp.c regerror.c regexec.c regfree.c regstrlcpy.c
|
||||
FormattedStream.cpp GraphWriter.cpp ManagedStatic.cpp \
|
||||
MemoryBuffer.cpp MemoryObject.cpp PluginLoader.cpp \
|
||||
PrettyStackTrace.cpp Regex.cpp SlowOperationInformer.cpp \
|
||||
SmallPtrSet.cpp SmallVector.cpp SourceMgr.cpp Statistic.cpp \
|
||||
StringExtras.cpp StringMap.cpp StringPool.cpp StringRef.cpp \
|
||||
SystemUtils.cpp TargetRegistry.cpp Timer.cpp Triple.cpp \
|
||||
Twine.cpp circular_raw_ostream.cpp raw_os_ostream.cpp \
|
||||
raw_ostream.cpp regcomp.c regerror.c regexec.c regfree.c \
|
||||
regstrlcpy.c
|
||||
|
||||
.include "../clang.lib.mk"
|
||||
|
@ -3,9 +3,8 @@
|
||||
LIB= llvmsystem
|
||||
|
||||
SRCDIR= lib/System
|
||||
SRCS= Alarm.cpp Atomic.cpp Disassembler.cpp DynamicLibrary.cpp \
|
||||
Errno.cpp Host.cpp IncludeFile.cpp Memory.cpp Mutex.cpp \
|
||||
Path.cpp Process.cpp Program.cpp RWMutex.cpp \
|
||||
SRCS= Atomic.cpp DynamicLibrary.cpp Errno.cpp Host.cpp Memory.cpp \
|
||||
Mutex.cpp Path.cpp Process.cpp Program.cpp RWMutex.cpp \
|
||||
SearchForAddressOfSpecialSymbol.cpp Signals.cpp \
|
||||
ThreadLocal.cpp Threading.cpp TimeValue.cpp Valgrind.cpp
|
||||
|
||||
|
@ -5,8 +5,7 @@ LIB= llvmtarget
|
||||
SRCDIR= lib/Target
|
||||
SRCS= Mangler.cpp SubtargetFeature.cpp Target.cpp TargetAsmLexer.cpp \
|
||||
TargetData.cpp TargetELFWriterInfo.cpp TargetFrameInfo.cpp \
|
||||
TargetInstrInfo.cpp TargetIntrinsicInfo.cpp \
|
||||
TargetLoweringObjectFile.cpp TargetMachine.cpp \
|
||||
TargetRegisterInfo.cpp TargetSubtarget.cpp
|
||||
TargetInstrInfo.cpp TargetLoweringObjectFile.cpp \
|
||||
TargetMachine.cpp TargetRegisterInfo.cpp TargetSubtarget.cpp
|
||||
|
||||
.include "../clang.lib.mk"
|
||||
|
Loading…
x
Reference in New Issue
Block a user