Update llvm and clang library Makefiles.

This commit is contained in:
Dimitry Andric 2014-11-24 19:46:35 +00:00
parent 268335d002
commit 281cb6ece0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang350-import/; revision=274973
39 changed files with 183 additions and 90 deletions

View File

@ -11,11 +11,6 @@ _libclangstaticanalyzer= \
_libclangarcmigrate= \
libclangarcmigrate
.endif # MK_CLANG_FULL
.if ${MK_CLANG_FULL} != "no" || ${MK_LLDB} != "no"
_libclangrewriter= \
libclangrewritecore \
libclangrewritefrontend
.endif # (MK_CLANG_FULL || MK_LLDB)
SUBDIR= libclanganalysis \
${_libclangarcmigrate} \
@ -28,7 +23,8 @@ SUBDIR= libclanganalysis \
libclangfrontendtool \
libclanglex \
libclangparse \
${_libclangrewriter} \
libclangrewritefrontend \
libclangrewrite \
libclangsema \
libclangserialization \
${_libclangstaticanalyzer} \
@ -51,6 +47,7 @@ SUBDIR= libclanganalysis \
libllvmobjcarcopts \
libllvmobject \
libllvmoption \
libllvmprofiledata \
libllvmscalaropts \
libllvmselectiondag \
libllvmsupport \
@ -74,6 +71,7 @@ SUBDIR= libclanganalysis \
libllvmpowerpcasmparser \
libllvmpowerpccodegen \
libllvmpowerpcdesc \
libllvmpowerpcdisassembler \
libllvmpowerpcinfo \
libllvmpowerpcinstprinter \
libllvmsparcasmparser \
@ -91,7 +89,8 @@ SUBDIR= libclanganalysis \
libllvmx86utils
.if ${MK_CLANG_EXTRAS} != "no"
SUBDIR+=libllvmdebuginfo
SUBDIR+=libllvmdebuginfo \
libllvmmcanalysis
.endif # MK_CLANG_EXTRAS
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SUBDIR+=libllvmexecutionengine \

View File

@ -12,7 +12,7 @@ CFLAGS+= -I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
.if ${MK_CLANG_FULL} != "no"
CFLAGS+= -DCLANG_ENABLE_ARCMT \
-DCLANG_ENABLE_REWRITER \
-DCLANG_ENABLE_OBJC_REWRITER \
-DCLANG_ENABLE_STATIC_ANALYZER
.endif # MK_CLANG_FULL
@ -35,7 +35,7 @@ BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-unknown-freebsd11.
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \
-DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \
-DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\"
CXXFLAGS+= -fno-exceptions -fno-rtti
CXXFLAGS+= -std=c++11 -fno-exceptions -fno-rtti
.PATH: ${LLVM_SRCS}/${SRCDIR}
@ -80,8 +80,8 @@ AttrDump.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrIdentifierArg.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-identifier-arg-list \
AttrHasAttributeImpl.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-has-attribute-impl \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
@ -90,11 +90,6 @@ AttrImpl.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrLateParsed.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-late-parsed-list \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrList.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-list \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
@ -115,6 +110,11 @@ AttrParsedAttrList.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrParserStringSwitches.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-parser-string-switches \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrPCHRead.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-pch-read \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
@ -125,11 +125,6 @@ AttrPCHWrite.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrSpellings.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-spelling-list \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrSpellingListIndex.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-spelling-index \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
@ -140,8 +135,8 @@ AttrTemplateInstantiate.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
AttrTypeArg.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-type-arg-list \
AttrVisitor.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-ast-visitor \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Basic/Attr.td
@ -220,12 +215,6 @@ Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td
-d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Driver/Options.td
CC1AsOptions.inc.h: ${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td
${TBLGEN} -gen-opt-parser-defs \
-I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \
-d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td
Checkers.inc.h: ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td
${CLANG_TBLGEN} -gen-clang-sa-checkers \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \

View File

@ -24,9 +24,13 @@ SRCS= AnalysisDeclContext.cpp \
ReachableCode.cpp \
ScanfFormatString.cpp \
ThreadSafety.cpp \
ThreadSafetyCommon.cpp \
ThreadSafetyLogical.cpp \
ThreadSafetyTIL.cpp \
UninitializedValues.cpp
TGHDRS= AttrList \
AttrVisitor \
Attrs \
CommentCommandList \
CommentNodes \

View File

@ -28,6 +28,7 @@ SRCS= ARCMT.cpp \
TGHDRS= AttrList \
AttrParsedAttrList \
AttrVisitor \
Attrs \
CommentCommandList \
CommentNodes \

View File

@ -65,6 +65,7 @@ SRCS= APValue.cpp \
TGHDRS= AttrDump \
AttrImpl \
AttrList \
AttrVisitor \
Attrs \
CommentCommandInfo \
CommentCommandList \

View File

@ -5,7 +5,8 @@
LIB= clangbasic
SRCDIR= tools/clang/lib/Basic
SRCS= Builtins.cpp \
SRCS= Attributes.cpp \
Builtins.cpp \
CharInfo.cpp \
Diagnostic.cpp \
DiagnosticIDs.cpp \
@ -23,9 +24,12 @@ SRCS= Builtins.cpp \
Targets.cpp \
TokenKinds.cpp \
Version.cpp \
VersionTuple.cpp
VersionTuple.cpp \
VirtualFileSystem.cpp \
Warnings.cpp
TGHDRS= DiagnosticAnalysisKinds \
TGHDRS= AttrHasAttributeImpl \
DiagnosticAnalysisKinds \
DiagnosticASTKinds \
DiagnosticCommentKinds \
DiagnosticCommonKinds \

View File

@ -26,29 +26,34 @@ SRCS= BackendUtil.cpp \
CGExprComplex.cpp \
CGExprConstant.cpp \
CGExprScalar.cpp \
CGLoopInfo.cpp \
CGObjC.cpp \
CGObjCGNU.cpp \
CGObjCMac.cpp \
CGObjCRuntime.cpp \
CGOpenCLRuntime.cpp \
CGRTTI.cpp \
CGOpenMPRuntime.cpp \
CGRecordLayoutBuilder.cpp \
CGStmt.cpp \
CGStmtOpenMP.cpp \
CGVTT.cpp \
CGVTables.cpp \
CodeGenABITypes.cpp \
CodeGenAction.cpp \
CodeGenFunction.cpp \
CodeGenModule.cpp \
CodeGenPGO.cpp \
CodeGenTBAA.cpp \
CodeGenTypes.cpp \
ItaniumCXXABI.cpp \
MicrosoftCXXABI.cpp \
MicrosoftVBTables.cpp \
ModuleBuilder.cpp \
SanitizerBlacklist.cpp \
TargetInfo.cpp
TGHDRS= AttrList \
AttrParsedAttrList \
AttrVisitor \
Attrs \
CommentCommandList \
CommentNodes \

View File

@ -6,11 +6,11 @@ LIB= clangdriver
SRCDIR= tools/clang/lib/Driver
SRCS= Action.cpp \
CC1AsOptions.cpp \
Compilation.cpp \
Driver.cpp \
DriverOptions.cpp \
Job.cpp \
Multilib.cpp \
Phases.cpp \
SanitizerArgs.cpp \
Tool.cpp \
@ -20,8 +20,7 @@ SRCS= Action.cpp \
Types.cpp \
WindowsToolChain.cpp
TGHDRS= CC1AsOptions \
DiagnosticCommonKinds \
TGHDRS= DiagnosticCommonKinds \
DiagnosticDriverKinds \
DiagnosticSemaKinds \
Options

View File

@ -26,17 +26,18 @@ SRCS= ASTConsumers.cpp \
LangStandards.cpp \
LayoutOverrideSource.cpp \
LogDiagnosticPrinter.cpp \
ModuleDependencyCollector.cpp \
MultiplexConsumer.cpp \
PrintPreprocessedOutput.cpp \
SerializedDiagnosticPrinter.cpp \
TextDiagnostic.cpp \
TextDiagnosticBuffer.cpp \
TextDiagnosticPrinter.cpp \
VerifyDiagnosticConsumer.cpp \
Warnings.cpp
VerifyDiagnosticConsumer.cpp
TGHDRS= AttrList \
AttrParsedAttrList \
AttrVisitor \
Attrs \
CommentCommandList \
CommentNodes \

View File

@ -28,7 +28,7 @@ SRCS= HeaderMap.cpp \
TokenConcatenation.cpp \
TokenLexer.cpp
TGHDRS= AttrSpellings \
TGHDRS= AttrSpellingListIndex \
DiagnosticCommonKinds \
DiagnosticLexKinds

View File

@ -16,15 +16,14 @@ SRCS= ParseAST.cpp \
ParseOpenMP.cpp \
ParsePragma.cpp \
ParseStmt.cpp \
ParseStmtAsm.cpp \
ParseTemplate.cpp \
ParseTentative.cpp \
Parser.cpp
TGHDRS= AttrIdentifierArg \
AttrLateParsed \
AttrList \
TGHDRS= AttrList \
AttrParsedAttrList \
AttrTypeArg \
AttrParserStringSwitches \
Attrs \
CommentCommandList \
CommentNodes \

View File

@ -2,9 +2,9 @@
.include <bsd.own.mk>
LIB= clangrewritecore
LIB= clangrewrite
SRCDIR= tools/clang/lib/Rewrite/Core
SRCDIR= tools/clang/lib/Rewrite
SRCS= DeltaTree.cpp \
HTMLRewrite.cpp \
RewriteRope.cpp \

View File

@ -4,7 +4,7 @@
LIB= clangrewritefrontend
SRCDIR= tools/clang/lib/Rewrite/Frontend
SRCDIR= tools/clang/lib/Frontend/Rewrite
SRCS= FixItRewriter.cpp \
FrontendActions.cpp \
HTMLPrint.cpp \

View File

@ -49,7 +49,6 @@ SRCS= AnalysisBasedWarnings.cpp \
SemaTemplateInstantiateDecl.cpp \
SemaTemplateVariadic.cpp \
SemaType.cpp \
TargetAttributesSema.cpp \
TypeLocBuilder.cpp
TGHDRS= AttrList \
@ -58,6 +57,7 @@ TGHDRS= AttrList \
AttrParsedAttrList \
AttrSpellingListIndex \
AttrTemplateInstantiate \
AttrVisitor \
Attrs \
CommentCommandList \
CommentNodes \

View File

@ -33,7 +33,6 @@ SRCS= AllocationDiagnostics.cpp \
ExprInspectionChecker.cpp \
FixedAddressChecker.cpp \
GenericTaintChecker.cpp \
IdempotentOperationChecker.cpp \
IdenticalExprChecker.cpp \
IvarInvalidationChecker.cpp \
LLVMConventionsChecker.cpp \
@ -62,6 +61,7 @@ SRCS= AllocationDiagnostics.cpp \
StackAddrEscapeChecker.cpp \
StreamChecker.cpp \
TaintTesterChecker.cpp \
TestAfterDivZeroChecker.cpp \
TraversalChecker.cpp \
UndefBranchChecker.cpp \
UndefCapturedBlockVarChecker.cpp \
@ -74,6 +74,7 @@ SRCS= AllocationDiagnostics.cpp \
VirtualCallChecker.cpp
TGHDRS= AttrList \
AttrVisitor \
Attrs \
Checkers \
CommentCommandList \

View File

@ -10,6 +10,7 @@ SRCS= AnalysisConsumer.cpp \
FrontendActions.cpp
TGHDRS= AttrList \
AttrVisitor \
Attrs \
Checkers \
CommentCommandList \

View File

@ -12,9 +12,12 @@ SRCS= AliasAnalysis.cpp \
AliasSetTracker.cpp \
Analysis.cpp \
BasicAliasAnalysis.cpp \
BlockFrequencyInfo.cpp \
BlockFrequencyInfoImpl.cpp \
BranchProbabilityInfo.cpp \
CFG.cpp \
CFGPrinter.cpp \
CGSCCPassManager.cpp \
CaptureTracking.cpp \
CodeMetrics.cpp \
ConstantFolding.cpp \
@ -28,6 +31,8 @@ SRCS= AliasAnalysis.cpp \
InstructionSimplify.cpp \
Interval.cpp \
IntervalPartition.cpp \
JumpInstrTableInfo.cpp \
LazyCallGraph.cpp \
LazyValueInfo.cpp \
LibCallAliasAnalysis.cpp \
LibCallSemantics.cpp \
@ -56,9 +61,9 @@ SRCS= AliasAnalysis.cpp \
TypeBasedAliasAnalysis.cpp \
ValueTracking.cpp
.if ${MK_CLANG_EXTRAS} != "no"
SRCS+= BlockFrequencyInfo.cpp
.endif
#.if ${MK_CLANG_EXTRAS} != "no"
#SRCS+= BlockFrequencyInfo.cpp
#.endif
TGHDRS= Intrinsics

View File

@ -24,6 +24,7 @@ SRCS= A15SDOptimizer.cpp \
ARMMCInstLower.cpp \
ARMMachineFunctionInfo.cpp \
ARMRegisterInfo.cpp \
ARMOptimizeBarriersPass.cpp \
ARMSelectionDAGInfo.cpp \
ARMSubtarget.cpp \
ARMTargetMachine.cpp \

View File

@ -6,6 +6,7 @@ LIB= llvmarmdesc
SRCDIR= lib/Target/ARM/MCTargetDesc
SRCS= ARMAsmBackend.cpp \
ARMELFObjectWriter.cpp \
ARMELFObjectWriter.cpp \
ARMELFStreamer.cpp \
ARMMCAsmInfo.cpp \
@ -14,7 +15,10 @@ SRCS= ARMAsmBackend.cpp \
ARMMCTargetDesc.cpp \
ARMMachORelocationInfo.cpp \
ARMMachObjectWriter.cpp \
ARMUnwindOpAsm.cpp
ARMTargetStreamer.cpp \
ARMUnwindOpAsm.cpp \
ARMWinCOFFObjectWriter.cpp \
ARMWinCOFFStreamer.cpp
CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
TGHDRS= ARMGenInstrInfo \

View File

@ -6,19 +6,24 @@ LIB= llvmasmprinter
SRCDIR= lib/CodeGen/AsmPrinter
SRCS= ARMException.cpp \
AddressPool.cpp \
AsmPrinter.cpp \
AsmPrinterDwarf.cpp \
AsmPrinterInlineAsm.cpp \
DIE.cpp \
DIEHash.cpp \
DbgValueHistoryCalculator.cpp \
DwarfAccelTable.cpp \
DwarfCFIException.cpp \
DwarfCompileUnit.cpp \
DwarfDebug.cpp \
DwarfException.cpp \
DwarfFile.cpp \
DwarfStringPool.cpp \
DwarfUnit.cpp \
EHStreamer.cpp \
ErlangGCPrinter.cpp \
OcamlGCPrinter.cpp \
Win64Exception.cpp
Win64Exception.cpp \
WinCodeViewLineTables.cpp
TGHDRS= Intrinsics

View File

@ -8,11 +8,13 @@ SRCDIR= lib/CodeGen
SRCS= AggressiveAntiDepBreaker.cpp \
AllocationOrder.cpp \
Analysis.cpp \
AtomicExpandLoadLinkedPass.cpp \
BasicTargetTransformInfo.cpp \
BranchFolding.cpp \
CalcSpillWeights.cpp \
CallingConvLower.cpp \
CodeGen.cpp \
CodeGenPrepare.cpp \
CriticalAntiDepBreaker.cpp \
DFAPacketizer.cpp \
DeadMachineInstructionElim.cpp \
@ -26,11 +28,13 @@ SRCS= AggressiveAntiDepBreaker.cpp \
GCMetadata.cpp \
GCMetadataPrinter.cpp \
GCStrategy.cpp \
GlobalMerge.cpp \
IfConversion.cpp \
InlineSpiller.cpp \
InterferenceCache.cpp \
IntrinsicLowering.cpp \
JITCodeEmitter.cpp \
JumpInstrTables.cpp \
LLVMTargetMachine.cpp \
LatencyPriorityQueue.cpp \
LexicalScopes.cpp \
@ -38,10 +42,10 @@ SRCS= AggressiveAntiDepBreaker.cpp \
LiveInterval.cpp \
LiveIntervalAnalysis.cpp \
LiveIntervalUnion.cpp \
LivePhysRegs.cpp \
LiveRangeCalc.cpp \
LiveRangeEdit.cpp \
LiveRegMatrix.cpp \
LiveRegUnits.cpp \
LiveStackAnalysis.cpp \
LiveVariables.cpp \
LocalStackSlotAllocation.cpp \
@ -52,6 +56,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
MachineCSE.cpp \
MachineCodeEmitter.cpp \
MachineCopyPropagation.cpp \
MachineDominanceFrontier.cpp \
MachineDominators.cpp \
MachineFunction.cpp \
MachineFunctionAnalysis.cpp \
@ -65,6 +70,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
MachineModuleInfoImpls.cpp \
MachinePassRegistry.cpp \
MachinePostDominators.cpp \
MachineRegionInfo.cpp \
MachineRegisterInfo.cpp \
MachineSSAUpdater.cpp \
MachineScheduler.cpp \
@ -101,6 +107,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
Spiller.cpp \
SplitKit.cpp \
StackColoring.cpp \
StackMapLivenessAnalysis.cpp \
StackMaps.cpp \
StackProtector.cpp \
StackSlotColoring.cpp \

View File

@ -9,19 +9,24 @@ SRCS= AsmWriter.cpp \
Attributes.cpp \
AutoUpgrade.cpp \
BasicBlock.cpp \
Comdat.cpp \
ConstantFold.cpp \
ConstantRange.cpp \
Constants.cpp \
Core.cpp \
DIBuilder.cpp \
DataLayout.cpp \
DebugInfo.cpp \
DebugLoc.cpp \
DiagnosticInfo.cpp \
DiagnosticPrinter.cpp \
Dominators.cpp \
Function.cpp \
GCOV.cpp \
GVMaterializer.cpp \
Globals.cpp \
IRBuilder.cpp \
IRPrintingPasses.cpp \
InlineAsm.cpp \
Instruction.cpp \
Instructions.cpp \
@ -30,12 +35,13 @@ SRCS= AsmWriter.cpp \
LLVMContextImpl.cpp \
LeakDetector.cpp \
LegacyPassManager.cpp \
MDBuilder.cpp \
Mangler.cpp \
Metadata.cpp \
Module.cpp \
Pass.cpp \
PassManager.cpp \
PassRegistry.cpp \
PrintModulePass.cpp \
Type.cpp \
TypeFinder.cpp \
Use.cpp \

View File

@ -5,7 +5,8 @@
LIB= llvmmc
SRCDIR= lib/MC
SRCS= ELFObjectWriter.cpp \
SRCS= ConstantPools.cpp \
ELFObjectWriter.cpp \
MCAsmBackend.cpp \
MCAsmInfo.cpp \
MCAsmInfoCOFF.cpp \
@ -13,7 +14,6 @@ SRCS= ELFObjectWriter.cpp \
MCAsmInfoELF.cpp \
MCAsmStreamer.cpp \
MCAssembler.cpp \
MCAtom.cpp \
MCCodeEmitter.cpp \
MCCodeGenInfo.cpp \
MCContext.cpp \
@ -23,22 +23,17 @@ SRCS= ELFObjectWriter.cpp \
MCELFStreamer.cpp \
MCExpr.cpp \
MCExternalSymbolizer.cpp \
MCFunction.cpp \
MCInst.cpp \
MCInstPrinter.cpp \
MCInstrAnalysis.cpp \
MCLabel.cpp \
MCLinkerOptimizationHint.cpp \
MCMachOStreamer.cpp \
MCMachObjectTargetWriter.cpp \
MCModule.cpp \
MCModuleYAML.cpp \
MCNullStreamer.cpp \
MCObjectDisassembler.cpp \
MCObjectFileInfo.cpp \
MCObjectStreamer.cpp \
MCObjectSymbolizer.cpp \
MCObjectWriter.cpp \
MCPureStreamer.cpp \
MCRegisterInfo.cpp \
MCRelocationInfo.cpp \
MCSection.cpp \
@ -49,12 +44,15 @@ SRCS= ELFObjectWriter.cpp \
MCSubtargetInfo.cpp \
MCSymbol.cpp \
MCSymbolizer.cpp \
MCTargetOptions.cpp \
MCValue.cpp \
MCWin64EH.cpp \
MachObjectWriter.cpp \
StringTableBuilder.cpp \
SubtargetFeature.cpp \
WinCOFFObjectWriter.cpp \
WinCOFFStreamer.cpp
WinCOFFStreamer.cpp \
YAML.cpp
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SRCS+= MCDisassembler.cpp

View File

@ -0,0 +1,15 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmmcanalysis
SRCDIR= lib/MC/MCAnalysis
SRCS= MCAtom.cpp \
MCFunction.cpp \
MCModule.cpp \
MCModuleYAML.cpp \
MCObjectDisassembler.cpp \
MCObjectSymbolizer.cpp
.include "../clang.lib.mk"

View File

@ -7,6 +7,7 @@ LIB= llvmmipscodegen
SRCDIR= lib/Target/Mips
SRCS= Mips16FrameLowering.cpp \
Mips16HardFloat.cpp \
Mips16HardFloatInfo.cpp \
Mips16ISelDAGToDAG.cpp \
Mips16ISelLowering.cpp \
Mips16InstrInfo.cpp \
@ -16,6 +17,7 @@ SRCS= Mips16FrameLowering.cpp \
MipsCodeEmitter.cpp \
MipsConstantIslandPass.cpp \
MipsDelaySlotFiller.cpp \
MipsFastISel.cpp \
MipsFrameLowering.cpp \
MipsISelDAGToDAG.cpp \
MipsISelLowering.cpp \
@ -25,6 +27,7 @@ SRCS= Mips16FrameLowering.cpp \
MipsMCInstLower.cpp \
MipsMachineFunction.cpp \
MipsModuleISelDAGToDAG.cpp \
MipsOptimizePICCall.cpp \
MipsOs16.cpp \
MipsRegisterInfo.cpp \
MipsSEFrameLowering.cpp \
@ -42,6 +45,7 @@ TGHDRS= Intrinsics \
MipsGenCallingConv \
MipsGenCodeEmitter \
MipsGenDAGISel \
MipsGenFastISel \
MipsGenInstrInfo \
MipsGenMCPseudoLowering \
MipsGenRegisterInfo \

View File

@ -5,12 +5,16 @@
LIB= llvmmipsdesc
SRCDIR= lib/Target/Mips/MCTargetDesc
SRCS= MipsAsmBackend.cpp \
SRCS= MipsABIFlagsSection.cpp \
MipsAsmBackend.cpp \
MipsELFObjectWriter.cpp \
MipsELFStreamer.cpp \
MipsMCAsmInfo.cpp \
MipsMCCodeEmitter.cpp \
MipsMCExpr.cpp \
MipsMCTargetDesc.cpp \
MipsReginfo.cpp \
MipsNaClELFStreamer.cpp \
MipsOptionRecord.cpp \
MipsTargetStreamer.cpp
CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..

View File

@ -13,10 +13,12 @@ SRCS= Archive.cpp \
ELFObjectFile.cpp \
ELFYAML.cpp \
Error.cpp \
IRObjectFile.cpp \
MachOObjectFile.cpp \
MachOUniversal.cpp \
Object.cpp \
ObjectFile.cpp \
YAML.cpp
RecordStreamer.cpp \
SymbolicFile.cpp
.include "../clang.lib.mk"

View File

@ -0,0 +1,16 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmpowerpcdisassembler
SRCDIR= lib/Target/PowerPC/Disassembler
INCDIR= lib/Target/PowerPC
SRCS= PPCDisassembler.cpp
TGHDRS= PPCGenDisassemblerTables \
PPCGenInstrInfo \
PPCGenRegisterInfo \
PPCGenSubtargetInfo
.include "../clang.lib.mk"

View File

@ -0,0 +1,12 @@
# $FreeBSD$
.include <bsd.own.mk>
LIB= llvmprofiledata
SRCDIR= lib/ProfileData
SRCS= InstrProf.cpp \
InstrProfReader.cpp \
InstrProfWriter.cpp
.include "../clang.lib.mk"

View File

@ -7,6 +7,7 @@ LIB= llvmruntimedyld
SRCDIR= lib/ExecutionEngine/RuntimeDyld
SRCS= GDBRegistrar.cpp \
RuntimeDyld.cpp \
RuntimeDyldChecker.cpp \
RuntimeDyldELF.cpp \
RuntimeDyldMachO.cpp

View File

@ -6,7 +6,7 @@ LIB= llvmscalaropts
SRCDIR= lib/Transforms/Scalar
SRCS= ADCE.cpp \
CodeGenPrepare.cpp \
ConstantHoisting.cpp \
ConstantProp.cpp \
CorrelatedValuePropagation.cpp \
DCE.cpp \
@ -14,10 +14,10 @@ SRCS= ADCE.cpp \
EarlyCSE.cpp \
FlattenCFGPass.cpp \
GVN.cpp \
GlobalMerge.cpp \
IndVarSimplify.cpp \
JumpThreading.cpp \
LICM.cpp \
LoadCombine.cpp \
LoopDeletion.cpp \
LoopIdiomRecognize.cpp \
LoopRerollPass.cpp \
@ -27,6 +27,7 @@ SRCS= ADCE.cpp \
LoopUnswitch.cpp \
LowerAtomic.cpp \
MemCpyOptimizer.cpp \
MergedLoadStoreMotion.cpp \
PartiallyInlineLibCalls.cpp \
Reassociate.cpp \
Reg2Mem.cpp \
@ -34,6 +35,8 @@ SRCS= ADCE.cpp \
SROA.cpp \
SampleProfile.cpp \
ScalarReplAggregates.cpp \
Scalarizer.cpp \
SeparateConstOffsetFromGEP.cpp \
SimplifyCFGPass.cpp \
Sink.cpp \
StructurizeCFG.cpp \

View File

@ -8,12 +8,14 @@ SRCDIR= lib/Support
SRCS= APFloat.cpp \
APInt.cpp \
APSInt.cpp \
ARMBuildAttrs.cpp \
ARMWinEH.cpp \
Allocator.cpp \
Atomic.cpp \
BlockFrequency.cpp \
BranchProbability.cpp \
CommandLine.cpp \
ConstantRange.cpp \
Compression.cpp \
ConvertUTF.c \
ConvertUTFWrapper.cpp \
CrashRecoveryContext.cpp \
@ -37,6 +39,8 @@ SRCS= APFloat.cpp \
IntrusiveRefCntPtr.cpp \
IsInf.cpp \
IsNAN.cpp \
LEB128.cpp \
LineIterator.cpp \
Locale.cpp \
LockFileManager.cpp \
MD5.cpp \
@ -51,12 +55,15 @@ SRCS= APFloat.cpp \
Process.cpp \
Program.cpp \
RWMutex.cpp \
RandomNumberGenerator.cpp \
Regex.cpp \
ScaledNumber.cpp \
SearchForAddressOfSpecialSymbol.cpp \
Signals.cpp \
SmallPtrSet.cpp \
SmallVector.cpp \
SourceMgr.cpp \
SpecialCaseList.cpp \
Statistic.cpp \
StreamableMemoryObject.cpp \
StringExtras.cpp \
@ -84,16 +91,10 @@ SRCS= APFloat.cpp \
regerror.c \
regexec.c \
regfree.c \
regstrlcpy.c \
system_error.cpp
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SRCS+= Disassembler.cpp
.endif
regstrlcpy.c
.if ${MK_CLANG_EXTRAS} != "no"
SRCS+= Compression.cpp \
DataStream.cpp \
SRCS+= DataStream.cpp \
FileUtilities.cpp \
SystemUtils.cpp
.endif

View File

@ -8,6 +8,7 @@ SRCDIR= lib/TableGen
SRCS= Error.cpp \
Main.cpp \
Record.cpp \
SetTheory.cpp \
StringMatcher.cpp \
TableGenBackend.cpp \
TGLexer.cpp \

View File

@ -5,8 +5,7 @@
LIB= llvmtarget
SRCDIR= lib/Target
SRCS= Mangler.cpp \
Target.cpp \
SRCS= Target.cpp \
TargetIntrinsicInfo.cpp \
TargetJITInfo.cpp \
TargetLibraryInfo.cpp \

View File

@ -5,7 +5,9 @@
LIB= llvmtransformutils
SRCDIR= lib/Transforms/Utils
SRCS= BasicBlockUtils.cpp \
SRCS= ASanStackFrameLayout.cpp \
AddDiscriminators.cpp \
BasicBlockUtils.cpp \
BreakCriticalEdges.cpp \
BuildLibCalls.cpp \
BypassSlowDivision.cpp \
@ -13,6 +15,7 @@ SRCS= BasicBlockUtils.cpp \
CloneModule.cpp \
CmpInstAnalysis.cpp \
CodeExtractor.cpp \
CtorUtils.cpp \
DemoteRegToStack.cpp \
FlattenCFG.cpp \
GlobalStatus.cpp \
@ -36,7 +39,6 @@ SRCS= BasicBlockUtils.cpp \
SimplifyIndVar.cpp \
SimplifyInstructions.cpp \
SimplifyLibCalls.cpp \
SpecialCaseList.cpp \
UnifyFunctionExitNodes.cpp \
ValueMapper.cpp

View File

@ -6,7 +6,8 @@ LIB= llvmx86asmparser
SRCDIR= lib/Target/X86/AsmParser
INCDIR= lib/Target/X86
SRCS= X86AsmParser.cpp
SRCS= X86AsmInstrumentation.cpp \
X86AsmParser.cpp
TGHDRS= X86GenAsmMatcher \
X86GenInstrInfo \

View File

@ -6,7 +6,7 @@ LIB= llvmx86codegen
SRCDIR= lib/Target/X86
SRCS= X86AsmPrinter.cpp \
X86COFFMachineModuleInfo.cpp \
X86AtomicExpandPass.cpp \
X86CodeEmitter.cpp \
X86FastISel.cpp \
X86FixupLEAs.cpp \

View File

@ -13,7 +13,8 @@ SRCS= X86AsmBackend.cpp \
X86MCTargetDesc.cpp \
X86MachORelocationInfo.cpp \
X86MachObjectWriter.cpp \
X86WinCOFFObjectWriter.cpp
X86WinCOFFObjectWriter.cpp \
X86WinCOFFStreamer.cpp
CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
TGHDRS= X86GenInstrInfo \

View File

@ -9,11 +9,12 @@ INCDIR= lib/Target/X86
SRCS= X86Disassembler.cpp
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
SRCS+= X86DisassemblerDecoder.c
SRCS+= X86DisassemblerDecoder.cpp
.endif
TGHDRS= X86GenDisassemblerTables \
X86GenInstrInfo \
X86GenRegisterInfo
X86GenRegisterInfo \
X86GenSubtargetInfo
.include "../clang.lib.mk"