llvm.org GIT mirror llvm / d885950
[gn build] Add some llvm/tools: llvm-c-test, llvm-cfi-verify, llvm-cov, llvm-cvtres Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56191 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350216 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
6 changed file(s) with 114 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
44 deps = [
55 "//clang/test",
66 "//lld/test",
7 "//llvm/tools/llvm-c-test",
8 "//llvm/tools/llvm-cfi-verify",
9 "//llvm/tools/llvm-cov",
10 "//llvm/tools/llvm-cvtres",
711 "//llvm/tools/llvm-cxxdump",
812 "//llvm/tools/llvm-cxxfilt",
913 "//llvm/tools/llvm-cxxmap",
0 executable("llvm-c-test") {
1 deps = [
2 "//llvm/lib/Bitcode/Reader",
3 "//llvm/lib/IR",
4 "//llvm/lib/MC/MCDisassembler",
5 "//llvm/lib/Object",
6 "//llvm/lib/Support",
7 "//llvm/lib/Target",
8 "//llvm/lib/Target:TargetsToBuild",
9 ]
10 if (host_os != "win") {
11 cflags_c = [
12 "-std=gnu99",
13 "-Wstrict-prototypes",
14 ]
15 }
16 sources = [
17 "attributes.c",
18 "calc.c",
19 "debuginfo.c",
20 "diagnostic.c",
21 "disassemble.c",
22 "echo.cpp",
23 "helpers.c",
24 "include-all.c",
25 "main.c",
26 "metadata.c",
27 "module.c",
28 "object.c",
29 "targets.c",
30 ]
31 }
0 executable("llvm-cfi-verify") {
1 deps = [
2 "lib",
3 "//llvm/lib/DebugInfo/Symbolize",
4 "//llvm/lib/MC",
5 "//llvm/lib/MC/MCParser",
6 "//llvm/lib/Object",
7 "//llvm/lib/Support",
8 "//llvm/lib/Target:AllTargetsAsmParsers",
9 "//llvm/lib/Target:AllTargetsAsmPrinters",
10 "//llvm/lib/Target:AllTargetsDescs",
11 "//llvm/lib/Target:AllTargetsDisassemblers",
12 "//llvm/lib/Target:AllTargetsInfos",
13 ]
14 sources = [
15 "llvm-cfi-verify.cpp",
16 ]
17 }
0 static_library("lib") {
1 output_name = "LLVMCFIVerify"
2 deps = [
3 "//llvm/lib/DebugInfo/DWARF",
4 "//llvm/lib/DebugInfo/Symbolize",
5 "//llvm/lib/MC",
6 "//llvm/lib/MC/MCDisassembler",
7 "//llvm/lib/MC/MCParser",
8 "//llvm/lib/Object",
9 "//llvm/lib/Support",
10 ]
11 sources = [
12 "FileAnalysis.cpp",
13 "FileAnalysis.h",
14 "GraphBuilder.cpp",
15 "GraphBuilder.h",
16 ]
17 }
0 executable("llvm-cov") {
1 deps = [
2 "//llvm/include/llvm/Config:llvm-config",
3 "//llvm/lib/IR",
4 "//llvm/lib/Object",
5 "//llvm/lib/ProfileData",
6 "//llvm/lib/ProfileData/Coverage",
7 "//llvm/lib/Support",
8 ]
9 sources = [
10 "CodeCoverage.cpp",
11 "CoverageExporterJson.cpp",
12 "CoverageExporterLcov.cpp",
13 "CoverageFilters.cpp",
14 "CoverageReport.cpp",
15 "CoverageSummaryInfo.cpp",
16 "SourceCoverageView.cpp",
17 "SourceCoverageViewHTML.cpp",
18 "SourceCoverageViewText.cpp",
19 "TestingSupport.cpp",
20 "gcov.cpp",
21 "llvm-cov.cpp",
22 ]
23 }
0 import("//llvm/utils/TableGen/tablegen.gni")
1
2 tablegen("Opts") {
3 visibility = [ ":llvm-cvtres" ]
4 args = [ "-gen-opt-parser-defs" ]
5 }
6
7 executable("llvm-cvtres") {
8 deps = [
9 ":Opts",
10 "//llvm/lib/Object",
11 "//llvm/lib/Option",
12 "//llvm/lib/Support",
13 ]
14 sources = [
15 "llvm-cvtres.cpp",
16 ]
17 }