mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects.
This allows IDEs to recognize the entire set of header files for each of the core LLVM projects. Differential Revision: http://reviews.llvm.org/D7526 Reviewed By: Chris Bieneman git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
167ce4489c
commit
c371307e60
@ -60,6 +60,9 @@ add_llvm_library(LLVMAnalysis
|
||||
TypeBasedAliasAnalysis.cpp
|
||||
ScopedNoAliasAA.cpp
|
||||
ValueTracking.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
|
||||
)
|
||||
|
||||
add_dependencies(LLVMAnalysis intrinsics_gen)
|
||||
|
@ -3,4 +3,7 @@ add_llvm_library(LLVMAsmParser
|
||||
LLLexer.cpp
|
||||
LLParser.cpp
|
||||
Parser.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
|
||||
)
|
||||
|
@ -2,6 +2,9 @@ add_llvm_library(LLVMBitReader
|
||||
BitReader.cpp
|
||||
BitcodeReader.cpp
|
||||
BitstreamReader.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Bitcode
|
||||
)
|
||||
|
||||
add_dependencies(LLVMBitReader intrinsics_gen)
|
||||
|
@ -119,6 +119,10 @@ add_llvm_library(LLVMCodeGen
|
||||
UnreachableBlockElim.cpp
|
||||
VirtRegMap.cpp
|
||||
WinEHPrepare.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen/PBQP
|
||||
)
|
||||
|
||||
add_dependencies(LLVMCodeGen intrinsics_gen)
|
||||
|
@ -16,4 +16,7 @@ add_llvm_library(LLVMDebugInfoDWARF
|
||||
DWARFTypeUnit.cpp
|
||||
DWARFUnit.cpp
|
||||
SyntaxHighlighting.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/DWARF
|
||||
)
|
||||
|
@ -23,11 +23,11 @@ if(HAVE_DIA_SDK)
|
||||
DIA/DIASourceFile.cpp
|
||||
)
|
||||
|
||||
set(LIBPDB_ADDITIONAL_HEADER_DIRS "../../../include/llvm/DebugInfo/PDB/DIA/")
|
||||
set(LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/DIA")
|
||||
|
||||
endif()
|
||||
|
||||
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "../../../include/llvm/DebugInfo/PDB")
|
||||
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB")
|
||||
|
||||
add_llvm_library(LLVMDebugInfoPDB
|
||||
IPDBSourceFile.cpp
|
||||
|
@ -7,6 +7,9 @@ add_llvm_library(LLVMExecutionEngine
|
||||
RTDyldMemoryManager.cpp
|
||||
SectionMemoryManager.cpp
|
||||
TargetSelect.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine
|
||||
)
|
||||
|
||||
add_subdirectory(Interpreter)
|
||||
|
@ -3,4 +3,7 @@ add_llvm_library(LLVMOrcJIT
|
||||
IndirectionUtils.cpp
|
||||
OrcMCJITReplacement.cpp
|
||||
OrcTargetSupport.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc
|
||||
)
|
||||
|
@ -47,6 +47,9 @@ add_llvm_library(LLVMCore
|
||||
ValueSymbolTable.cpp
|
||||
ValueTypes.cpp
|
||||
Verifier.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/IR
|
||||
)
|
||||
|
||||
add_dependencies(LLVMCore intrinsics_gen)
|
||||
|
@ -1,3 +1,6 @@
|
||||
add_llvm_library(LLVMIRReader
|
||||
IRReader.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/IRReader
|
||||
)
|
||||
|
@ -1,6 +1,9 @@
|
||||
add_llvm_library(LLVMLTO
|
||||
LTOModule.cpp
|
||||
LTOCodeGenerator.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/LTO
|
||||
)
|
||||
|
||||
add_dependencies(LLVMLTO intrinsics_gen)
|
||||
|
@ -5,7 +5,10 @@ endif()
|
||||
add_llvm_library(LLVMLineEditor
|
||||
LineEditor.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/LineEditor
|
||||
|
||||
LINK_LIBS
|
||||
LLVMSupport
|
||||
${link_libs}
|
||||
)
|
||||
)
|
||||
|
@ -1,3 +1,6 @@
|
||||
add_llvm_library(LLVMLinker
|
||||
LinkModules.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Linker
|
||||
)
|
||||
|
@ -46,6 +46,9 @@ add_llvm_library(LLVMMC
|
||||
WinCOFFObjectWriter.cpp
|
||||
WinCOFFStreamer.cpp
|
||||
YAML.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/MC
|
||||
)
|
||||
|
||||
add_subdirectory(MCParser)
|
||||
|
@ -8,4 +8,7 @@ add_llvm_library(LLVMMCParser
|
||||
MCAsmParser.cpp
|
||||
MCAsmParserExtension.cpp
|
||||
MCTargetAsmParser.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/MCParser
|
||||
)
|
||||
|
@ -14,4 +14,7 @@ add_llvm_library(LLVMObject
|
||||
ObjectFile.cpp
|
||||
RecordStreamer.cpp
|
||||
SymbolicFile.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
|
||||
)
|
||||
|
@ -3,4 +3,7 @@ add_llvm_library(LLVMOption
|
||||
ArgList.cpp
|
||||
Option.cpp
|
||||
OptTable.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Option
|
||||
)
|
||||
|
@ -8,4 +8,7 @@ add_llvm_library(LLVMProfileData
|
||||
SampleProf.cpp
|
||||
SampleProfReader.cpp
|
||||
SampleProfWriter.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/ProfileData
|
||||
)
|
||||
|
@ -124,6 +124,7 @@ add_llvm_library(LLVMSupport
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
Unix
|
||||
Windows
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Support
|
||||
|
||||
LINK_LIBS ${system_libs}
|
||||
)
|
||||
|
@ -7,4 +7,7 @@ add_llvm_library(LLVMTableGen
|
||||
TableGenBackend.cpp
|
||||
TGLexer.cpp
|
||||
TGParser.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/TableGen
|
||||
)
|
||||
|
@ -7,6 +7,9 @@ add_llvm_library(LLVMTarget
|
||||
TargetMachine.cpp
|
||||
TargetMachineC.cpp
|
||||
TargetSubtargetInfo.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
|
||||
)
|
||||
|
||||
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
||||
|
@ -20,6 +20,10 @@ add_llvm_library(LLVMipo
|
||||
PruneEH.cpp
|
||||
StripDeadPrototypes.cpp
|
||||
StripSymbols.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/IPO
|
||||
)
|
||||
|
||||
add_dependencies(LLVMipo intrinsics_gen)
|
||||
|
@ -12,6 +12,10 @@ add_llvm_library(LLVMInstCombine
|
||||
InstCombineShifts.cpp
|
||||
InstCombineSimplifyDemanded.cpp
|
||||
InstCombineVectorOps.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/InstCombine
|
||||
)
|
||||
|
||||
add_dependencies(LLVMInstCombine intrinsics_gen)
|
||||
|
@ -8,6 +8,9 @@ add_llvm_library(LLVMInstrumentation
|
||||
InstrProfiling.cpp
|
||||
SanitizerCoverage.cpp
|
||||
ThreadSanitizer.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
)
|
||||
|
||||
add_dependencies(LLVMInstrumentation intrinsics_gen)
|
||||
|
@ -9,6 +9,9 @@ add_llvm_library(LLVMObjCARCOpts
|
||||
DependencyAnalysis.cpp
|
||||
ProvenanceAnalysis.cpp
|
||||
ProvenanceAnalysisEvaluator.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
)
|
||||
|
||||
add_dependencies(LLVMObjCARCOpts intrinsics_gen)
|
||||
|
@ -42,6 +42,10 @@ add_llvm_library(LLVMScalarOpts
|
||||
StraightLineStrengthReduce.cpp
|
||||
StructurizeCFG.cpp
|
||||
TailRecursionElimination.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Scalar
|
||||
)
|
||||
|
||||
add_dependencies(LLVMScalarOpts intrinsics_gen)
|
||||
|
@ -36,6 +36,10 @@ add_llvm_library(LLVMTransformUtils
|
||||
UnifyFunctionExitNodes.cpp
|
||||
Utils.cpp
|
||||
ValueMapper.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Utils
|
||||
)
|
||||
|
||||
add_dependencies(LLVMTransformUtils intrinsics_gen)
|
||||
|
@ -3,6 +3,9 @@ add_llvm_library(LLVMVectorize
|
||||
Vectorize.cpp
|
||||
LoopVectorize.cpp
|
||||
SLPVectorizer.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms
|
||||
)
|
||||
|
||||
add_dependencies(LLVMVectorize intrinsics_gen)
|
||||
|
Loading…
x
Reference in New Issue
Block a user