llvm.org GIT mirror llvm / 9477a50
[gn build] Add some llvm/tools: bugpoint, dsymutil, llvm-opt-report Also add build file for dependency llvm/lib/OptRemarks. Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56192 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350217 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
5 changed file(s) with 93 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
44 deps = [
55 "//clang/test",
66 "//lld/test",
7 "//llvm/tools/bugpoint",
8 "//llvm/tools/dsymutil",
79 "//llvm/tools/llvm-c-test",
810 "//llvm/tools/llvm-cfi-verify",
911 "//llvm/tools/llvm-cov",
1820 "//llvm/tools/llvm-link",
1921 "//llvm/tools/llvm-mca",
2022 "//llvm/tools/llvm-mt",
23 "//llvm/tools/llvm-opt-report",
2124 "//llvm/tools/llvm-rc",
2225 "//llvm/tools/llvm-rtdyld",
2326 "//llvm/tools/llvm-size",
0 static_library("OptRemarks") {
1 output_name = "LLVMOptRemarks"
2 deps = [
3 "//llvm/lib/Support",
4 ]
5
6 sources = [
7 "OptRemarksParser.cpp",
8 ]
9 }
0 executable("bugpoint") {
1 deps = [
2 "//llvm/include/llvm/Config:config",
3 "//llvm/include/llvm/Config:llvm-config",
4 "//llvm/lib/Analysis",
5 "//llvm/lib/Bitcode/Writer",
6 "//llvm/lib/CodeGen",
7 "//llvm/lib/IR",
8 "//llvm/lib/IRReader",
9 "//llvm/lib/Linker",
10 "//llvm/lib/Support",
11 "//llvm/lib/Target",
12 "//llvm/lib/Target:TargetsToBuild",
13 "//llvm/lib/Transforms/AggressiveInstCombine",
14 "//llvm/lib/Transforms/IPO",
15 "//llvm/lib/Transforms/Instrumentation",
16 "//llvm/lib/Transforms/ObjCARC",
17 "//llvm/lib/Transforms/Scalar",
18 "//llvm/lib/Transforms/Utils",
19 "//llvm/lib/Transforms/Vectorize",
20 ]
21 sources = [
22 "BugDriver.cpp",
23 "CrashDebugger.cpp",
24 "ExecutionDriver.cpp",
25 "ExtractFunction.cpp",
26 "FindBugs.cpp",
27 "Miscompilation.cpp",
28 "OptimizerDriver.cpp",
29 "ToolRunner.cpp",
30 "bugpoint.cpp",
31 ]
32
33 # Support plugins.
34 # FIXME: Disable dead stripping once other binaries are dead-stripped.
35 if (host_os == "linux") {
36 # Make sure bugpoint plugins can access bugpoint's symbols.
37 # Corresponds to export_executable_symbols() in cmake.
38 ldflags = [ "-rdynamic" ]
39 }
40 }
0 executable("dsymutil") {
1 deps = [
2 "//llvm/lib/CodeGen/AsmPrinter",
3 "//llvm/lib/DebugInfo/DWARF",
4 "//llvm/lib/MC",
5 "//llvm/lib/Object",
6 "//llvm/lib/Support",
7 "//llvm/lib/Target",
8 "//llvm/lib/Target:TargetsToBuild",
9 ]
10 sources = [
11 "BinaryHolder.cpp",
12 "CFBundle.cpp",
13 "CompileUnit.cpp",
14 "DebugMap.cpp",
15 "DeclContext.cpp",
16 "DwarfLinker.cpp",
17 "DwarfStreamer.cpp",
18 "MachODebugMapParser.cpp",
19 "MachOUtils.cpp",
20 "NonRelocatableStringpool.cpp",
21 "dsymutil.cpp",
22 ]
23 if (host_os == "mac") {
24 libs = [ "CoreFoundation.framework" ]
25 }
26 }
0 executable("llvm-opt-report") {
1 deps = [
2 "//llvm/lib/Demangle",
3 "//llvm/lib/IR",
4 "//llvm/lib/Object",
5 "//llvm/lib/OptRemarks",
6 "//llvm/lib/Support",
7 ]
8 sources = [
9 "OptReport.cpp",
10 ]
11 }