Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / dsymutil / CMakeLists.txt
blobc612bfd9150c47f7d24e41acf46ab488a4ac0ec9
1 set(LLVM_TARGET_DEFINITIONS Options.td)
2 tablegen(LLVM Options.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(DsymutilTableGen)
5 set(LLVM_LINK_COMPONENTS
6   AllTargetsCodeGens
7   AllTargetsDescs
8   AllTargetsInfos
9   AsmPrinter
10   CodeGen
11   CodeGenTypes
12   DWARFLinker
13   DWARFLinkerParallel
14   DebugInfoDWARF
15   MC
16   Object
17   Option
18   Remarks
19   Support
20   Target
21   TargetParser
22   )
24 add_llvm_tool(dsymutil
25   dsymutil.cpp
26   BinaryHolder.cpp
27   CFBundle.cpp
28   DebugMap.cpp
29   DwarfLinkerForBinary.cpp
30   MachODebugMapParser.cpp
31   MachOUtils.cpp
32   Reproducer.cpp
33   RelocationMap.cpp
34   SymbolMap.cpp
36   DEPENDS
37   intrinsics_gen
38   ${tablegen_deps}
39   DsymutilTableGen
40   GENERATE_DRIVER
41   )
43 if(APPLE AND NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
44   target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation")
45 endif(APPLE AND NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
47 # target_link_libraries(dsymutil PRIVATE ${LLVM_ATOMIC_LIB})