summaryrefslogtreecommitdiff
path: root/lang/llvm
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2018-12-09 20:04:38 +0000
committeradam <adam@pkgsrc.org>2018-12-09 20:04:38 +0000
commitc859e7b19dcd558c211972c47c585a4ef506a382 (patch)
treef09be1286874d3087abd9a0a3fa3a325eac17b34 /lang/llvm
parentefb1fd4565223c20630b5ebe741a1315bda7dd9e (diff)
downloadpkgsrc-c859e7b19dcd558c211972c47c585a4ef506a382.tar.gz
llvm: updated to 7.0.0
LLVM 7.0.0 Release The release contains the work on trunk up to SVN revision 338536 plus work on the release branch. It is the result of the community's work over the past six months, including: function multiversioning in Clang with the 'target' attribute for ELF-based x86/x86_64 targets, improved PCH support in clang-cl, preliminary DWARF v5 support, basic support for OpenMP 4.5 offloading to NVPTX, OpenCL C++ support, MSan, X-Ray and libFuzzer support for FreeBSD, early UBSan, X-Ray and libFuzzer support for OpenBSD, UBSan checks for implicit conversions, many long-tail compatibility issues fixed in lld which is now production ready for ELF, COFF and MinGW, new tools llvm-exegesis, llvm-mca and diagtool. And as usual, many optimizations, improved diagnostics, and bug fixes. For more details, see the release notes: https://llvm.org/releases/7.0.0/docs/ReleaseNotes.html https://llvm.org/releases/7.0.0/tools/clang/docs/ReleaseNotes.html https://llvm.org/releases/7.0.0/tools/clang/tools/extra/docs/ReleaseNotes.html https://llvm.org/releases/7.0.0/tools/lld/docs/ReleaseNotes.html
Diffstat (limited to 'lang/llvm')
-rw-r--r--lang/llvm/Makefile6
-rw-r--r--lang/llvm/PLIST117
-rw-r--r--lang/llvm/buildlink3.mk4
-rw-r--r--lang/llvm/distinfo15
-rw-r--r--lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake20
-rw-r--r--lang/llvm/patches/patch-include_llvm_Support_DataTypes.h.cmake39
-rw-r--r--lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt10
7 files changed, 123 insertions, 88 deletions
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile
index e87aac8d8f1..da5d0660503 100644
--- a/lang/llvm/Makefile
+++ b/lang/llvm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2018/08/09 14:57:30 jperkin Exp $
+# $NetBSD: Makefile,v 1.35 2018/12/09 20:04:38 adam Exp $
#
# when updating this, please also update:
# devel/include-what-you-use
@@ -19,7 +19,7 @@
# Always update all */buildlink3.mk to require the latest stable release
# version in BUILDLINK_API_DEPENDS, as there is no backwards compatibility
-DISTNAME= llvm-6.0.1.src
+DISTNAME= llvm-7.0.0.src
PKGNAME= ${DISTNAME:S/.src//}
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
@@ -98,7 +98,7 @@ CXXFLAGS+= -march=i586
# replacing config.guess is required even for cmake.
# It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm.
post-extract:
- ${RUN} mkdir -p ${WRKDIR}/build
+ ${MKDIR} ${WRKDIR}/build
.for f in config.guess config.sub
cp ../../mk/gnu-config/${f} ${WRKSRC}/cmake/${f}
.endfor
diff --git a/lang/llvm/PLIST b/lang/llvm/PLIST
index 1bbf054ebe0..40c4b2e18de 100644
--- a/lang/llvm/PLIST
+++ b/lang/llvm/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.8 2018/08/07 23:39:30 kamil Exp $
+@comment $NetBSD: PLIST,v 1.9 2018/12/09 20:04:38 adam Exp $
bin/FileCheck
bin/bugpoint
bin/count
+bin/dsymutil
bin/llc
bin/lli
bin/lli-child-target
@@ -20,16 +21,16 @@ bin/llvm-cxxfilt
bin/llvm-diff
bin/llvm-dis
bin/llvm-dlltool
-bin/llvm-dsymutil
bin/llvm-dwarfdump
bin/llvm-dwp
+bin/llvm-exegesis
bin/llvm-extract
bin/llvm-lib
bin/llvm-link
bin/llvm-lto
bin/llvm-lto2
bin/llvm-mc
-bin/llvm-mcmarkup
+bin/llvm-mca
bin/llvm-modextract
bin/llvm-mt
bin/llvm-nm
@@ -47,8 +48,10 @@ bin/llvm-size
bin/llvm-split
bin/llvm-stress
bin/llvm-strings
+bin/llvm-strip
bin/llvm-symbolizer
bin/llvm-tblgen
+bin/llvm-undname
bin/llvm-xray
bin/not
bin/obj2yaml
@@ -61,9 +64,12 @@ bin/yaml2obj
include/llvm-c/Analysis.h
include/llvm-c/BitReader.h
include/llvm-c/BitWriter.h
+include/llvm-c/Comdat.h
include/llvm-c/Core.h
+include/llvm-c/DataTypes.h
include/llvm-c/DebugInfo.h
include/llvm-c/Disassembler.h
+include/llvm-c/DisassemblerTypes.h
include/llvm-c/ErrorHandling.h
include/llvm-c/ExecutionEngine.h
include/llvm-c/IRReader.h
@@ -76,8 +82,10 @@ include/llvm-c/Support.h
include/llvm-c/Target.h
include/llvm-c/TargetMachine.h
include/llvm-c/Transforms/IPO.h
+include/llvm-c/Transforms/InstCombine.h
include/llvm-c/Transforms/PassManagerBuilder.h
include/llvm-c/Transforms/Scalar.h
+include/llvm-c/Transforms/Utils.h
include/llvm-c/Transforms/Vectorize.h
include/llvm-c/Types.h
include/llvm-c/lto.h
@@ -85,6 +93,7 @@ include/llvm/ADT/APFloat.h
include/llvm/ADT/APInt.h
include/llvm/ADT/APSInt.h
include/llvm/ADT/AllocatorList.h
+include/llvm/ADT/Any.h
include/llvm/ADT/ArrayRef.h
include/llvm/ADT/BitVector.h
include/llvm/ADT/BitmaskEnum.h
@@ -99,6 +108,7 @@ include/llvm/ADT/DepthFirstIterator.h
include/llvm/ADT/EpochTracker.h
include/llvm/ADT/EquivalenceClasses.h
include/llvm/ADT/FoldingSet.h
+include/llvm/ADT/FunctionExtras.h
include/llvm/ADT/GraphTraits.h
include/llvm/ADT/Hashing.h
include/llvm/ADT/ImmutableList.h
@@ -213,14 +223,15 @@ include/llvm/Analysis/MemoryLocation.h
include/llvm/Analysis/MemorySSA.h
include/llvm/Analysis/MemorySSAUpdater.h
include/llvm/Analysis/ModuleSummaryAnalysis.h
+include/llvm/Analysis/MustExecute.h
include/llvm/Analysis/ObjCARCAliasAnalysis.h
include/llvm/Analysis/ObjCARCAnalysisUtils.h
include/llvm/Analysis/ObjCARCInstKind.h
-include/llvm/Analysis/ObjectUtils.h
include/llvm/Analysis/OptimizationRemarkEmitter.h
include/llvm/Analysis/OrderedBasicBlock.h
include/llvm/Analysis/PHITransAddr.h
include/llvm/Analysis/Passes.h
+include/llvm/Analysis/PhiValues.h
include/llvm/Analysis/PostDominators.h
include/llvm/Analysis/ProfileSummaryInfo.h
include/llvm/Analysis/PtrUseVisitor.h
@@ -236,6 +247,7 @@ include/llvm/Analysis/ScalarEvolutionExpressions.h
include/llvm/Analysis/ScalarEvolutionNormalization.h
include/llvm/Analysis/ScopedNoAliasAA.h
include/llvm/Analysis/SparsePropagation.h
+include/llvm/Analysis/SyntheticCountsUtils.h
include/llvm/Analysis/TargetFolder.h
include/llvm/Analysis/TargetLibraryInfo.def
include/llvm/Analysis/TargetLibraryInfo.h
@@ -244,6 +256,7 @@ include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/Analysis/Trace.h
include/llvm/Analysis/TypeBasedAliasAnalysis.h
include/llvm/Analysis/TypeMetadataUtils.h
+include/llvm/Analysis/Utils/Local.h
include/llvm/Analysis/ValueLattice.h
include/llvm/Analysis/ValueLatticeUtils.h
include/llvm/Analysis/ValueTracking.h
@@ -253,6 +266,7 @@ include/llvm/AsmParser/SlotMapping.h
include/llvm/BinaryFormat/COFF.h
include/llvm/BinaryFormat/Dwarf.def
include/llvm/BinaryFormat/Dwarf.h
+include/llvm/BinaryFormat/DynamicTags.def
include/llvm/BinaryFormat/ELF.h
include/llvm/BinaryFormat/ELFRelocs/AArch64.def
include/llvm/BinaryFormat/ELFRelocs/AMDGPU.def
@@ -268,7 +282,6 @@ include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
include/llvm/BinaryFormat/ELFRelocs/RISCV.def
include/llvm/BinaryFormat/ELFRelocs/Sparc.def
include/llvm/BinaryFormat/ELFRelocs/SystemZ.def
-include/llvm/BinaryFormat/ELFRelocs/WebAssembly.def
include/llvm/BinaryFormat/ELFRelocs/i386.def
include/llvm/BinaryFormat/ELFRelocs/x86_64.def
include/llvm/BinaryFormat/MachO.def
@@ -283,13 +296,14 @@ include/llvm/Bitcode/BitcodeWriterPass.h
include/llvm/Bitcode/BitstreamReader.h
include/llvm/Bitcode/BitstreamWriter.h
include/llvm/Bitcode/LLVMBitCodes.h
+include/llvm/CodeGen/AccelTable.h
include/llvm/CodeGen/Analysis.h
include/llvm/CodeGen/AsmPrinter.h
include/llvm/CodeGen/AtomicExpandUtils.h
include/llvm/CodeGen/BasicTTIImpl.h
include/llvm/CodeGen/CalcSpillWeights.h
include/llvm/CodeGen/CallingConvLower.h
-include/llvm/CodeGen/CommandFlags.def
+include/llvm/CodeGen/CommandFlags.inc
include/llvm/CodeGen/CostTable.h
include/llvm/CodeGen/DAGCombine.h
include/llvm/CodeGen/DFAPacketizer.h
@@ -297,7 +311,7 @@ include/llvm/CodeGen/DIE.h
include/llvm/CodeGen/DIEValue.def
include/llvm/CodeGen/DwarfStringPoolEntry.h
include/llvm/CodeGen/EdgeBundles.h
-include/llvm/CodeGen/ExecutionDepsFix.h
+include/llvm/CodeGen/ExecutionDomainFix.h
include/llvm/CodeGen/ExpandReductions.h
include/llvm/CodeGen/FastISel.h
include/llvm/CodeGen/FaultMaps.h
@@ -307,6 +321,10 @@ include/llvm/CodeGen/GCMetadataPrinter.h
include/llvm/CodeGen/GCStrategy.h
include/llvm/CodeGen/GCs.h
include/llvm/CodeGen/GlobalISel/CallLowering.h
+include/llvm/CodeGen/GlobalISel/Combiner.h
+include/llvm/CodeGen/GlobalISel/CombinerHelper.h
+include/llvm/CodeGen/GlobalISel/CombinerInfo.h
+include/llvm/CodeGen/GlobalISel/ConstantFoldingMIRBuilder.h
include/llvm/CodeGen/GlobalISel/GISelWorkList.h
include/llvm/CodeGen/GlobalISel/IRTranslator.h
include/llvm/CodeGen/GlobalISel/InstructionSelect.h
@@ -317,6 +335,7 @@ include/llvm/CodeGen/GlobalISel/Legalizer.h
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
include/llvm/CodeGen/GlobalISel/Localizer.h
+include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
include/llvm/CodeGen/GlobalISel/RegBankSelect.h
include/llvm/CodeGen/GlobalISel/RegisterBank.h
@@ -339,6 +358,7 @@ include/llvm/CodeGen/LiveRegMatrix.h
include/llvm/CodeGen/LiveRegUnits.h
include/llvm/CodeGen/LiveStacks.h
include/llvm/CodeGen/LiveVariables.h
+include/llvm/CodeGen/LoopTraversal.h
include/llvm/CodeGen/LowLevelType.h
include/llvm/CodeGen/MIRParser/MIRParser.h
include/llvm/CodeGen/MIRPrinter.h
@@ -365,6 +385,7 @@ include/llvm/CodeGen/MachineModuleInfo.h
include/llvm/CodeGen/MachineModuleInfoImpls.h
include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
+include/llvm/CodeGen/MachineOutliner.h
include/llvm/CodeGen/MachinePassRegistry.h
include/llvm/CodeGen/MachinePostDominators.h
include/llvm/CodeGen/MachineRegionInfo.h
@@ -372,7 +393,6 @@ include/llvm/CodeGen/MachineRegisterInfo.h
include/llvm/CodeGen/MachineSSAUpdater.h
include/llvm/CodeGen/MachineScheduler.h
include/llvm/CodeGen/MachineTraceMetrics.h
-include/llvm/CodeGen/MachineValueType.h
include/llvm/CodeGen/MacroFusion.h
include/llvm/CodeGen/PBQP/CostAllocator.h
include/llvm/CodeGen/PBQP/Graph.h
@@ -384,6 +404,7 @@ include/llvm/CodeGen/ParallelCG.h
include/llvm/CodeGen/Passes.h
include/llvm/CodeGen/PreISelIntrinsicLowering.h
include/llvm/CodeGen/PseudoSourceValue.h
+include/llvm/CodeGen/ReachingDefAnalysis.h
include/llvm/CodeGen/RegAllocPBQP.h
include/llvm/CodeGen/RegAllocRegistry.h
include/llvm/CodeGen/RegisterClassInfo.h
@@ -391,7 +412,6 @@ include/llvm/CodeGen/RegisterPressure.h
include/llvm/CodeGen/RegisterScavenging.h
include/llvm/CodeGen/RegisterUsageInfo.h
include/llvm/CodeGen/ResourcePriorityQueue.h
-include/llvm/CodeGen/RuntimeLibcalls.def
include/llvm/CodeGen/RuntimeLibcalls.h
include/llvm/CodeGen/SDNodeProperties.td
include/llvm/CodeGen/ScheduleDAG.h
@@ -414,9 +434,7 @@ include/llvm/CodeGen/TargetCallingConv.h
include/llvm/CodeGen/TargetFrameLowering.h
include/llvm/CodeGen/TargetInstrInfo.h
include/llvm/CodeGen/TargetLowering.h
-include/llvm/CodeGen/TargetLoweringObjectFile.h
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
-include/llvm/CodeGen/TargetOpcodes.def
include/llvm/CodeGen/TargetOpcodes.h
include/llvm/CodeGen/TargetPassConfig.h
include/llvm/CodeGen/TargetRegisterInfo.h
@@ -426,6 +444,7 @@ include/llvm/CodeGen/UnreachableBlockElim.h
include/llvm/CodeGen/ValueTypes.h
include/llvm/CodeGen/ValueTypes.td
include/llvm/CodeGen/VirtRegMap.h
+include/llvm/CodeGen/WasmEHFuncInfo.h
include/llvm/CodeGen/WinEHFuncInfo.h
include/llvm/Config/AsmParsers.def
include/llvm/Config/AsmPrinters.def
@@ -434,7 +453,6 @@ include/llvm/Config/Targets.def
include/llvm/Config/abi-breaking.h
include/llvm/Config/llvm-config.h
include/llvm/DebugInfo/CodeView/AppendingTypeTableBuilder.h
-include/llvm/DebugInfo/CodeView/CVDebugRecord.h
include/llvm/DebugInfo/CodeView/CVRecord.h
include/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
include/llvm/DebugInfo/CodeView/CVTypeVisitor.h
@@ -495,11 +513,13 @@ include/llvm/DebugInfo/CodeView/TypeVisitorCallbacks.h
include/llvm/DebugInfo/DIContext.h
include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
+include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
include/llvm/DebugInfo/DWARF/DWARFAttribute.h
include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
include/llvm/DebugInfo/DWARF/DWARFDataExtractor.h
include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
+include/llvm/DebugInfo/DWARF/DWARFDebugAddr.h
include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h
include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
@@ -509,10 +529,12 @@ include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
include/llvm/DebugInfo/DWARF/DWARFDebugPubTable.h
include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h
+include/llvm/DebugInfo/DWARF/DWARFDebugRnglists.h
include/llvm/DebugInfo/DWARF/DWARFDie.h
include/llvm/DebugInfo/DWARF/DWARFExpression.h
include/llvm/DebugInfo/DWARF/DWARFFormValue.h
include/llvm/DebugInfo/DWARF/DWARFGdbIndex.h
+include/llvm/DebugInfo/DWARF/DWARFListTable.h
include/llvm/DebugInfo/DWARF/DWARFObject.h
include/llvm/DebugInfo/DWARF/DWARFRelocMap.h
include/llvm/DebugInfo/DWARF/DWARFSection.h
@@ -528,22 +550,29 @@ include/llvm/DebugInfo/MSF/MappedBlockStream.h
include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
include/llvm/DebugInfo/PDB/DIA/DIADataStream.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h
+include/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h
+include/llvm/DebugInfo/PDB/DIA/DIAEnumSectionContribs.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumTables.h
include/llvm/DebugInfo/PDB/DIA/DIAError.h
+include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h
include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h
include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
+include/llvm/DebugInfo/PDB/DIA/DIASectionContrib.h
include/llvm/DebugInfo/PDB/DIA/DIASession.h
include/llvm/DebugInfo/PDB/DIA/DIASourceFile.h
include/llvm/DebugInfo/PDB/DIA/DIASupport.h
include/llvm/DebugInfo/PDB/DIA/DIATable.h
+include/llvm/DebugInfo/PDB/DIA/DIAUtils.h
include/llvm/DebugInfo/PDB/GenericError.h
include/llvm/DebugInfo/PDB/IPDBDataStream.h
include/llvm/DebugInfo/PDB/IPDBEnumChildren.h
+include/llvm/DebugInfo/PDB/IPDBInjectedSource.h
include/llvm/DebugInfo/PDB/IPDBLineNumber.h
include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
+include/llvm/DebugInfo/PDB/IPDBSectionContrib.h
include/llvm/DebugInfo/PDB/IPDBSession.h
include/llvm/DebugInfo/PDB/IPDBSourceFile.h
include/llvm/DebugInfo/PDB/IPDBTable.h
@@ -633,16 +662,19 @@ include/llvm/ExecutionEngine/JITSymbol.h
include/llvm/ExecutionEngine/MCJIT.h
include/llvm/ExecutionEngine/OProfileWrapper.h
include/llvm/ExecutionEngine/ObjectCache.h
-include/llvm/ExecutionEngine/ObjectMemoryBuffer.h
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
include/llvm/ExecutionEngine/Orc/CompileUtils.h
+include/llvm/ExecutionEngine/Orc/Core.h
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
+include/llvm/ExecutionEngine/Orc/LLJIT.h
include/llvm/ExecutionEngine/Orc/LambdaResolver.h
+include/llvm/ExecutionEngine/Orc/Layer.h
include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
+include/llvm/ExecutionEngine/Orc/Legacy.h
include/llvm/ExecutionEngine/Orc/NullResolver.h
include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
include/llvm/ExecutionEngine/Orc/OrcABISupport.h
@@ -669,8 +701,8 @@ include/llvm/FuzzMutate/Random.h
include/llvm/FuzzMutate/RandomIRBuilder.h
include/llvm/IR/Argument.h
include/llvm/IR/AssemblyAnnotationWriter.h
-include/llvm/IR/Attributes.gen
include/llvm/IR/Attributes.h
+include/llvm/IR/Attributes.inc
include/llvm/IR/Attributes.td
include/llvm/IR/AutoUpgrade.h
include/llvm/IR/BasicBlock.h
@@ -693,6 +725,7 @@ include/llvm/IR/DerivedUser.h
include/llvm/IR/DiagnosticHandler.h
include/llvm/IR/DiagnosticInfo.h
include/llvm/IR/DiagnosticPrinter.h
+include/llvm/IR/DomTreeUpdater.h
include/llvm/IR/Dominators.h
include/llvm/IR/Function.h
include/llvm/IR/GVMaterializer.h
@@ -712,8 +745,9 @@ include/llvm/IR/InstrTypes.h
include/llvm/IR/Instruction.def
include/llvm/IR/Instruction.h
include/llvm/IR/Instructions.h
+include/llvm/IR/IntrinsicEnums.inc
+include/llvm/IR/IntrinsicImpl.inc
include/llvm/IR/IntrinsicInst.h
-include/llvm/IR/Intrinsics.gen
include/llvm/IR/Intrinsics.h
include/llvm/IR/Intrinsics.td
include/llvm/IR/IntrinsicsAArch64.td
@@ -749,6 +783,7 @@ include/llvm/IR/PassManagerInternal.h
include/llvm/IR/PatternMatch.h
include/llvm/IR/PredIteratorCache.h
include/llvm/IR/ProfileSummary.h
+include/llvm/IR/RuntimeLibcalls.def
include/llvm/IR/SafepointIRVerifier.h
include/llvm/IR/Statepoint.h
include/llvm/IR/SymbolTableListTraits.h
@@ -844,7 +879,7 @@ include/llvm/MC/MCSymbolELF.h
include/llvm/MC/MCSymbolMachO.h
include/llvm/MC/MCSymbolWasm.h
include/llvm/MC/MCTargetOptions.h
-include/llvm/MC/MCTargetOptionsCommandFlags.def
+include/llvm/MC/MCTargetOptionsCommandFlags.inc
include/llvm/MC/MCValue.h
include/llvm/MC/MCWasmObjectWriter.h
include/llvm/MC/MCWasmStreamer.h
@@ -862,6 +897,7 @@ include/llvm/Object/Binary.h
include/llvm/Object/COFF.h
include/llvm/Object/COFFImportFile.h
include/llvm/Object/COFFModuleDefinition.h
+include/llvm/Object/CVDebugRecord.h
include/llvm/Object/Decompressor.h
include/llvm/Object/ELF.h
include/llvm/Object/ELFObjectFile.h
@@ -878,6 +914,7 @@ include/llvm/Object/StackMapParser.h
include/llvm/Object/SymbolSize.h
include/llvm/Object/SymbolicFile.h
include/llvm/Object/Wasm.h
+include/llvm/Object/WasmTraits.h
include/llvm/Object/WindowsResource.h
include/llvm/ObjectYAML/COFFYAML.h
include/llvm/ObjectYAML/CodeViewYAMLDebugSections.h
@@ -903,6 +940,7 @@ include/llvm/PassInfo.h
include/llvm/PassRegistry.h
include/llvm/PassSupport.h
include/llvm/Passes/PassBuilder.h
+include/llvm/Passes/PassPlugin.h
include/llvm/ProfileData/Coverage/CoverageMapping.h
include/llvm/ProfileData/Coverage/CoverageMappingReader.h
include/llvm/ProfileData/Coverage/CoverageMappingWriter.h
@@ -916,8 +954,8 @@ include/llvm/ProfileData/SampleProf.h
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
include/llvm/Support/AArch64TargetParser.def
-include/llvm/Support/AMDGPUKernelDescriptor.h
include/llvm/Support/AMDGPUMetadata.h
+include/llvm/Support/AMDHSAKernelDescriptor.h
include/llvm/Support/ARMAttributeParser.h
include/llvm/Support/ARMBuildAttributes.h
include/llvm/Support/ARMEHABI.h
@@ -943,15 +981,16 @@ include/llvm/Support/COM.h
include/llvm/Support/CachePruning.h
include/llvm/Support/Capacity.h
include/llvm/Support/Casting.h
+include/llvm/Support/CheckedArithmetic.h
include/llvm/Support/Chrono.h
include/llvm/Support/CodeGen.h
-include/llvm/Support/CodeGenCWrappers.h
include/llvm/Support/CodeGenCoverage.h
include/llvm/Support/CommandLine.h
include/llvm/Support/Compiler.h
include/llvm/Support/Compression.h
include/llvm/Support/ConvertUTF.h
include/llvm/Support/CrashRecoveryContext.h
+include/llvm/Support/DJB.h
include/llvm/Support/DOTGraphTraits.h
include/llvm/Support/DataExtractor.h
include/llvm/Support/DataTypes.h
@@ -980,6 +1019,8 @@ include/llvm/Support/GenericDomTreeConstruction.h
include/llvm/Support/GlobPattern.h
include/llvm/Support/GraphWriter.h
include/llvm/Support/Host.h
+include/llvm/Support/InitLLVM.h
+include/llvm/Support/JSON.h
include/llvm/Support/JamCRC.h
include/llvm/Support/KnownBits.h
include/llvm/Support/LEB128.h
@@ -989,8 +1030,10 @@ include/llvm/Support/Locale.h
include/llvm/Support/LockFileManager.h
include/llvm/Support/LowLevelTypeImpl.h
include/llvm/Support/MD5.h
+include/llvm/Support/MachineValueType.h
include/llvm/Support/ManagedStatic.h
include/llvm/Support/MathExtras.h
+include/llvm/Support/MemAlloc.h
include/llvm/Support/Memory.h
include/llvm/Support/MemoryBuffer.h
include/llvm/Support/MipsABIFlags.h
@@ -1020,6 +1063,7 @@ include/llvm/Support/SaveAndRestore.h
include/llvm/Support/ScaledNumber.h
include/llvm/Support/ScopedPrinter.h
include/llvm/Support/Signals.h
+include/llvm/Support/SmallVectorMemoryBuffer.h
include/llvm/Support/Solaris/sys/regset.h
include/llvm/Support/SourceMgr.h
include/llvm/Support/SpecialCaseList.h
@@ -1028,9 +1072,11 @@ include/llvm/Support/StringSaver.h
include/llvm/Support/SwapByteOrder.h
include/llvm/Support/SystemUtils.h
include/llvm/Support/TarWriter.h
+include/llvm/Support/TargetOpcodes.def
include/llvm/Support/TargetParser.h
include/llvm/Support/TargetRegistry.h
include/llvm/Support/TargetSelect.h
+include/llvm/Support/TaskQueue.h
include/llvm/Support/ThreadLocal.h
include/llvm/Support/ThreadPool.h
include/llvm/Support/Threading.h
@@ -1044,9 +1090,12 @@ include/llvm/Support/UnicodeCharRanges.h
include/llvm/Support/UniqueLock.h
include/llvm/Support/VCSRevision.h
include/llvm/Support/Valgrind.h
+include/llvm/Support/VersionTuple.h
include/llvm/Support/Watchdog.h
include/llvm/Support/Win64EH.h
include/llvm/Support/WindowsError.h
+include/llvm/Support/WithColor.h
+include/llvm/Support/X86DisassemblerDecoderCommon.h
include/llvm/Support/X86TargetParser.def
include/llvm/Support/YAMLParser.h
include/llvm/Support/YAMLTraits.h
@@ -1065,14 +1114,17 @@ include/llvm/TableGen/SetTheory.h
include/llvm/TableGen/StringMatcher.h
include/llvm/TableGen/StringToOffsetTable.h
include/llvm/TableGen/TableGenBackend.h
+include/llvm/Target/CodeGenCWrappers.h
include/llvm/Target/GenericOpcodes.td
include/llvm/Target/GlobalISel/RegisterBank.td
include/llvm/Target/GlobalISel/SelectionDAGCompat.td
include/llvm/Target/GlobalISel/Target.td
include/llvm/Target/Target.td
include/llvm/Target/TargetCallingConv.td
+include/llvm/Target/TargetInstrPredicate.td
include/llvm/Target/TargetIntrinsicInfo.h
include/llvm/Target/TargetItinerary.td
+include/llvm/Target/TargetLoweringObjectFile.h
include/llvm/Target/TargetMachine.h
include/llvm/Target/TargetOptions.h
include/llvm/Target/TargetSchedule.td
@@ -1081,8 +1133,8 @@ include/llvm/Testing/Support/Error.h
include/llvm/Testing/Support/SupportHelpers.h
include/llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h
include/llvm/ToolDrivers/llvm-lib/LibDriver.h
+include/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h
include/llvm/Transforms/Coroutines.h
-include/llvm/Transforms/GCOVProfiler.h
include/llvm/Transforms/IPO.h
include/llvm/Transforms/IPO/AlwaysInliner.h
include/llvm/Transforms/IPO/ArgumentPromotion.h
@@ -1104,17 +1156,20 @@ include/llvm/Transforms/IPO/LowerTypeTests.h
include/llvm/Transforms/IPO/PartialInlining.h
include/llvm/Transforms/IPO/PassManagerBuilder.h
include/llvm/Transforms/IPO/SCCP.h
+include/llvm/Transforms/IPO/SampleProfile.h
include/llvm/Transforms/IPO/StripDeadPrototypes.h
+include/llvm/Transforms/IPO/SyntheticCountsPropagation.h
include/llvm/Transforms/IPO/ThinLTOBitcodeWriter.h
include/llvm/Transforms/IPO/WholeProgramDevirt.h
include/llvm/Transforms/InstCombine/InstCombine.h
include/llvm/Transforms/InstCombine/InstCombineWorklist.h
-include/llvm/Transforms/InstrProfiling.h
include/llvm/Transforms/Instrumentation.h
include/llvm/Transforms/Instrumentation/BoundsChecking.h
+include/llvm/Transforms/Instrumentation/CGProfile.h
+include/llvm/Transforms/Instrumentation/GCOVProfiler.h
+include/llvm/Transforms/Instrumentation/InstrProfiling.h
+include/llvm/Transforms/Instrumentation/PGOInstrumentation.h
include/llvm/Transforms/ObjCARC.h
-include/llvm/Transforms/PGOInstrumentation.h
-include/llvm/Transforms/SampleProfile.h
include/llvm/Transforms/Scalar.h
include/llvm/Transforms/Scalar/ADCE.h
include/llvm/Transforms/Scalar/AlignmentFromAssumptions.h
@@ -1132,6 +1187,8 @@ include/llvm/Transforms/Scalar/GVNExpression.h
include/llvm/Transforms/Scalar/GuardWidening.h
include/llvm/Transforms/Scalar/IVUsersPrinter.h
include/llvm/Transforms/Scalar/IndVarSimplify.h
+include/llvm/Transforms/Scalar/InductiveRangeCheckElimination.h
+include/llvm/Transforms/Scalar/InstSimplifyPass.h
include/llvm/Transforms/Scalar/JumpThreading.h
include/llvm/Transforms/Scalar/LICM.h
include/llvm/Transforms/Scalar/LoopAccessAnalysisPrinter.h
@@ -1147,6 +1204,7 @@ include/llvm/Transforms/Scalar/LoopRotation.h
include/llvm/Transforms/Scalar/LoopSimplifyCFG.h
include/llvm/Transforms/Scalar/LoopSink.h
include/llvm/Transforms/Scalar/LoopStrengthReduce.h
+include/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
include/llvm/Transforms/Scalar/LoopUnrollPass.h
include/llvm/Transforms/Scalar/LowerAtomic.h
include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
@@ -1166,6 +1224,7 @@ include/llvm/Transforms/Scalar/Sink.h
include/llvm/Transforms/Scalar/SpeculateAroundPHIs.h
include/llvm/Transforms/Scalar/SpeculativeExecution.h
include/llvm/Transforms/Scalar/TailRecursionElimination.h
+include/llvm/Transforms/Utils.h
include/llvm/Transforms/Utils/ASanStackFrameLayout.h
include/llvm/Transforms/Utils/AddDiscriminators.h
include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -1187,6 +1246,7 @@ include/llvm/Transforms/Utils/IntegerDivision.h
include/llvm/Transforms/Utils/LCSSA.h
include/llvm/Transforms/Utils/LibCallsShrinkWrap.h
include/llvm/Transforms/Utils/Local.h
+include/llvm/Transforms/Utils/LoopRotationUtils.h
include/llvm/Transforms/Utils/LoopSimplify.h
include/llvm/Transforms/Utils/LoopUtils.h
include/llvm/Transforms/Utils/LoopVersioning.h
@@ -1199,10 +1259,10 @@ include/llvm/Transforms/Utils/OrderedInstructions.h
include/llvm/Transforms/Utils/PredicateInfo.h
include/llvm/Transforms/Utils/PromoteMemToReg.h
include/llvm/Transforms/Utils/SSAUpdater.h
+include/llvm/Transforms/Utils/SSAUpdaterBulk.h
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
include/llvm/Transforms/Utils/SanitizerStats.h
include/llvm/Transforms/Utils/SimplifyIndVar.h
-include/llvm/Transforms/Utils/SimplifyInstructions.h
include/llvm/Transforms/Utils/SimplifyLibCalls.h
include/llvm/Transforms/Utils/SplitModule.h
include/llvm/Transforms/Utils/SymbolRewriter.h
@@ -1211,6 +1271,7 @@ include/llvm/Transforms/Utils/UnrollLoop.h
include/llvm/Transforms/Utils/VNCoercion.h
include/llvm/Transforms/Utils/ValueMapper.h
include/llvm/Transforms/Vectorize.h
+include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
include/llvm/Transforms/Vectorize/LoopVectorize.h
include/llvm/Transforms/Vectorize/SLPVectorizer.h
include/llvm/WindowsManifest/WindowsManifestMerger.h
@@ -1224,6 +1285,7 @@ include/llvm/XRay/XRayRecord.h
include/llvm/XRay/YAMLXRayRecord.h
lib/BugpointPasses.${SOEXT}
lib/LLVMHello.${SOEXT}
+lib/TestPlugin.${SOEXT}
lib/cmake/llvm/AddLLVM.cmake
lib/cmake/llvm/AddLLVMDefinitions.cmake
lib/cmake/llvm/AddOCaml.cmake
@@ -1234,6 +1296,7 @@ lib/cmake/llvm/CheckLinkerFlag.cmake
lib/cmake/llvm/ChooseMSVCCRT.cmake
lib/cmake/llvm/CrossCompile.cmake
lib/cmake/llvm/DetermineGCCCompatible.cmake
+lib/cmake/llvm/FindLibpfm.cmake
lib/cmake/llvm/FindOCaml.cmake
lib/cmake/llvm/FindSphinx.cmake
lib/cmake/llvm/GenerateVersionFromCVS.cmake
@@ -1250,8 +1313,8 @@ lib/cmake/llvm/LLVMInstallSymlink.cmake
lib/cmake/llvm/LLVMProcessSources.cmake
lib/cmake/llvm/TableGen.cmake
lib/cmake/llvm/VersionFromVCS.cmake
-${PLIST.notdylib}lib/libLLVM-${PKGVERSION}.${SOEXT}
-${PLIST.notdylib}lib/libLLVM-6.0.${SOEXT}
+lib/libLLVM-${PKGVERSION}.${SOEXT}
+lib/libLLVM-7.${SOEXT}
lib/libLLVM.${SOEXT}
${PLIST.AArch64}lib/libLLVMAArch64AsmParser.a
${PLIST.AArch64}lib/libLLVMAArch64AsmPrinter.a
@@ -1274,6 +1337,7 @@ ${PLIST.ARM}lib/libLLVMARMDesc.a
${PLIST.ARM}lib/libLLVMARMDisassembler.a
${PLIST.ARM}lib/libLLVMARMInfo.a
${PLIST.ARM}lib/libLLVMARMUtils.a
+lib/libLLVMAggressiveInstCombine.a
lib/libLLVMAnalysis.a
lib/libLLVMAsmParser.a
lib/libLLVMAsmPrinter.a
@@ -1381,8 +1445,7 @@ ${PLIST.XCore}lib/libLLVMXCoreInfo.a
lib/libLLVMXRay.a
lib/libLLVMipo.a
lib/libLTO.${SOEXT}
-${PLIST.notdylib}lib/libLTO.${SOEXT}.${PKGVERSION}
-${PLIST.notdylib}lib/libLTO.${SOEXT}.6
+${PLIST.notdylib}lib/libLTO.${SOEXT}.7
share/opt-viewer/opt-diff.py
share/opt-viewer/opt-stats.py
share/opt-viewer/opt-viewer.py
diff --git a/lang/llvm/buildlink3.mk b/lang/llvm/buildlink3.mk
index c2c22bf9fa5..d9f8d4aa9d5 100644
--- a/lang/llvm/buildlink3.mk
+++ b/lang/llvm/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.6 2018/01/07 13:04:19 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.7 2018/12/09 20:04:38 adam Exp $
BUILDLINK_TREE+= llvm
.if !defined(LLVM_BUILDLINK3_MK)
LLVM_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.llvm+= llvm>=4.0.1
+BUILDLINK_API_DEPENDS.llvm+= llvm>=7.0.0
BUILDLINK_PKGSRCDIR.llvm?= ../../lang/llvm
LLVM_CONFIG_PATH?= ${BUILDLINK_PREFIX.llvm}/bin/llvm-config
diff --git a/lang/llvm/distinfo b/lang/llvm/distinfo
index ec038dd88af..79231d1588a 100644
--- a/lang/llvm/distinfo
+++ b/lang/llvm/distinfo
@@ -1,13 +1,12 @@
-$NetBSD: distinfo,v 1.16 2018/08/07 10:44:50 adam Exp $
+$NetBSD: distinfo,v 1.17 2018/12/09 20:04:38 adam Exp $
-SHA1 (llvm-6.0.1.src.tar.xz) = 09a6316c5225cab255ba12391e7abe5ff4d28935
-RMD160 (llvm-6.0.1.src.tar.xz) = 6bfc568d0cab4d82ac948f54b18017d8e8ead934
-SHA512 (llvm-6.0.1.src.tar.xz) = cbbb00eb99cfeb4aff623ee1a5ba075e7b5a76fc00c5f9f539ff28c108598f5708a0369d5bd92683def5a20c2fe60cab7827b42d628dbfcc79b57e0e91b84dd9
-Size (llvm-6.0.1.src.tar.xz) = 25306628 bytes
+SHA1 (llvm-7.0.0.src.tar.xz) = 27503a22614626e935a05b609ab4211be72cd78b
+RMD160 (llvm-7.0.0.src.tar.xz) = af7af75c7fb15a004f887f81d71eae58c24c11e6
+SHA512 (llvm-7.0.0.src.tar.xz) = bdc9b851c158b17e1bbeb7ac5ae49821bfb1251a3826fe8a3932cd1a43f9fb0d620c3de67150c1d9297bf0b86fa917e75978da29c3f751b277866dc90395abec
+Size (llvm-7.0.0.src.tar.xz) = 28324368 bytes
SHA1 (patch-CMakeLists.txt) = 78e2dab2bf73f7e466ca2788fe6444e39b4ebd80
SHA1 (patch-cmake_config-ix.cmake) = a345420169e4066e22d28ca6ad10840e83ccfa76
-SHA1 (patch-cmake_modules_AddLLVM.cmake) = 4bfb98c5d99797155d0fb13a43352d31f6cfe783
+SHA1 (patch-cmake_modules_AddLLVM.cmake) = 31d4f47f03bef021a24d53147c1b66abd64e1d87
SHA1 (patch-cmake_modules_CheckAtomic.cmake) = 51e4fdf3bc24b50fc4d4bfa1ec5ba6c82ef946b4
SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
-SHA1 (patch-include_llvm_Support_DataTypes.h.cmake) = 18ebb1fcd2499d1216d5c3afe0bbb55fe63fe3ef
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = bf6db476781a5670032bc5476a02d9db73ca6d59
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 45278d8acc6daa3d36a1a7b15e2e3b9a75a218e6
diff --git a/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake b/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
index bcb0a5f2e99..c160325ff45 100644
--- a/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
+++ b/lang/llvm/patches/patch-cmake_modules_AddLLVM.cmake
@@ -1,21 +1,31 @@
-$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.3 2017/03/19 19:01:48 adam Exp $
+$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.4 2018/12/09 20:04:38 adam Exp $
Don't use non-portable -z discard-unused on SunOS.
+On Darwin, create symbolic links to shared libraries.
On Darwin, use correct install-name for shared libraries.
---- cmake/modules/AddLLVM.cmake.orig 2017-01-17 21:47:58.000000000 +0000
+--- cmake/modules/AddLLVM.cmake.orig 2018-08-01 07:51:55.000000000 +0000
+++ cmake/modules/AddLLVM.cmake
-@@ -182,9 +182,6 @@ function(add_link_opts target_name)
+@@ -218,9 +218,6 @@ function(add_link_opts target_name)
# ld64's implementation of -dead_strip breaks tools that use plugins.
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-dead_strip")
- elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
- set_property(TARGET ${target_name} APPEND_STRING PROPERTY
- LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
- elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
+ elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
# Object files are compiled with -ffunction-data-sections.
# Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks
-@@ -1419,7 +1416,7 @@ function(llvm_setup_rpath name)
+@@ -517,7 +514,7 @@ function(llvm_add_library name)
+ endif()
+
+ if(ARG_SHARED AND UNIX)
+- if(NOT APPLE AND ARG_SONAME)
++ if(ARG_SONAME)
+ get_target_property(output_name ${name} OUTPUT_NAME)
+ if(${output_name} STREQUAL "output_name-NOTFOUND")
+ set(output_name ${name})
+@@ -1632,7 +1629,7 @@ function(llvm_setup_rpath name)
endif()
if (APPLE)
diff --git a/lang/llvm/patches/patch-include_llvm_Support_DataTypes.h.cmake b/lang/llvm/patches/patch-include_llvm_Support_DataTypes.h.cmake
deleted file mode 100644
index 9b444d08a39..00000000000
--- a/lang/llvm/patches/patch-include_llvm_Support_DataTypes.h.cmake
+++ /dev/null
@@ -1,39 +0,0 @@
-$NetBSD: patch-include_llvm_Support_DataTypes.h.cmake,v 1.1 2018/01/08 10:48:34 jperkin Exp $
-
-Implement sys/regset.h workaround directly.
-
---- include/llvm/Support/DataTypes.h.cmake.orig 2017-06-06 11:49:48.000000000 +0000
-+++ include/llvm/Support/DataTypes.h.cmake
-@@ -132,4 +132,32 @@ typedef signed int ssize_t;
- #define HUGE_VALF (float)HUGE_VAL
- #endif
-
-+/*
-+ * At some point sys/regset.h will be included, and on older releases
-+ * of illumos it exports conflicting macros used by LLVM. Include it
-+ * early and ensure they are undefined first.
-+ */
-+#if defined(__sun)
-+#include <sys/regset.h>
-+#undef CS
-+#undef DS
-+#undef ES
-+#undef FS
-+#undef GS
-+#undef SS
-+#undef EAX
-+#undef ECX
-+#undef EDX
-+#undef EBX
-+#undef ESP
-+#undef EBP
-+#undef ESI
-+#undef EDI
-+#undef EIP
-+#undef UESP
-+#undef EFL
-+#undef ERR
-+#undef TRAPNO
-+#endif
-+
- #endif /* SUPPORT_DATATYPES_H */
diff --git a/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt b/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
index 0943b6ae7b5..f832df68c3d 100644
--- a/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
+++ b/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
@@ -1,15 +1,17 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.3 2018/08/07 10:44:50 adam Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.4 2018/12/09 20:04:38 adam Exp $
Use the Linux style linking everywhere except Darwin and SunOS.
---- tools/llvm-shlib/CMakeLists.txt.orig 2017-07-19 16:07:51.000000000 +0000
+--- tools/llvm-shlib/CMakeLists.txt.orig 2018-08-03 10:15:36.000000000 +0000
+++ tools/llvm-shlib/CMakeLists.txt
-@@ -37,10 +37,11 @@ endif()
+@@ -37,12 +37,11 @@ endif()
add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
list(REMOVE_DUPLICATES LIB_NAMES)
-if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")
- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf"
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
@@ -20,7 +22,7 @@ Use the Linux style linking everywhere except Darwin and SunOS.
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
-@@ -51,8 +52,6 @@ if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Lin
+@@ -53,8 +52,6 @@ if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Lin
# Solaris ld does not accept global: *; so there is no way to version *all* global symbols
set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map ${LIB_NAMES})
endif()