Skip to content

Commit 5ec73b7

Browse files
committed
Reland "[gn build] Port d3fb41d (llvm-cgdata)"
This reverts commit 6476a1d. d3fb41d relanded in 9bb5556. ...amended to incorporate changes from the reland.
1 parent 2b84fe6 commit 5ec73b7

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

llvm/utils/gn/secondary/llvm/lib/CodeGenData/BUILD.gn renamed to llvm/utils/gn/secondary/llvm/lib/CGData/BUILD.gn

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
static_library("CodeGenData") {
2-
output_name = "LLVMCodeGenData"
1+
static_library("CGData") {
2+
output_name = "LLVMCGData"
33
deps = [
44
"//llvm/lib/IR",
55
"//llvm/lib/Support",
66
]
77
sources = [
8+
"CodeGenData.cpp",
9+
"CodeGenDataReader.cpp",
10+
"CodeGenDataWriter.cpp",
811
"OutlinedHashTree.cpp",
912
"OutlinedHashTreeRecord.cpp",
1013
]

llvm/utils/gn/secondary/llvm/test/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ group("test") {
265265
"//llvm/tools/llvm-c-test",
266266
"//llvm/tools/llvm-cat",
267267
"//llvm/tools/llvm-cfi-verify",
268+
"//llvm/tools/llvm-cgdata",
268269
"//llvm/tools/llvm-cov",
269270
"//llvm/tools/llvm-ctxprof-util",
270271
"//llvm/tools/llvm-cvtres",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import("//llvm/utils/gn/build/driver_executable.gni")
2+
3+
driver_executable("llvm-cgdata") {
4+
deps = [
5+
"//llvm/lib/CGData",
6+
"//llvm/lib/CodeGen",
7+
"//llvm/lib/IR",
8+
"//llvm/lib/Object",
9+
"//llvm/lib/Support",
10+
]
11+
sources = [ "llvm-cgdata.cpp" ]
12+
}

llvm/utils/gn/secondary/llvm/unittests/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ group("unittests") {
88
"BinaryFormat:BinaryFormatTests",
99
"Bitcode:BitcodeTests",
1010
"Bitstream:BitstreamTests",
11+
"CGData:CodeGenDataTests",
1112
"CodeGen:CodeGenTests",
1213
"CodeGen/GlobalISel:GlobalISelTests",
13-
"CodeGenData:CodeGenDataTests",
1414
"DWARFLinkerParallel:DWARFLinkerParallelTests",
1515
"DebugInfo/BTF:DebugInfoBTFTests",
1616
"DebugInfo/CodeView:DebugInfoCodeViewTests",

llvm/utils/gn/secondary/llvm/unittests/CodeGenData/BUILD.gn renamed to llvm/utils/gn/secondary/llvm/unittests/CGData/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import("//third-party/unittest/unittest.gni")
22

33
unittest("CodeGenDataTests") {
44
deps = [
5+
"//llvm/lib/CGData",
56
"//llvm/lib/CodeGen",
6-
"//llvm/lib/CodeGenData",
77
"//llvm/lib/IR",
88
"//llvm/lib/MC",
99
"//llvm/lib/Support",

0 commit comments

Comments
 (0)