[llvm] 12cbbd7 - [gn] port c8e055d485ea (BTF)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 13 05:32:30 PDT 2023
Author: Nico Weber
Date: 2023-07-13T08:32:24-04:00
New Revision: 12cbbd7d4b838c46ce6a6a11848d70e7cff8a18e
URL: https://github.com/llvm/llvm-project/commit/12cbbd7d4b838c46ce6a6a11848d70e7cff8a18e
DIFF: https://github.com/llvm/llvm-project/commit/12cbbd7d4b838c46ce6a6a11848d70e7cff8a18e.diff
LOG: [gn] port c8e055d485ea (BTF)
Added:
llvm/utils/gn/secondary/llvm/lib/DebugInfo/BTF/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/DebugInfo/BTF/BUILD.gn
Modified:
llvm/utils/gn/secondary/llvm/lib/DebugInfo/Symbolize/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/DebugInfo/BTF/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/DebugInfo/BTF/BUILD.gn
new file mode 100644
index 00000000000000..74c1362c697b91
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/lib/DebugInfo/BTF/BUILD.gn
@@ -0,0 +1,8 @@
+static_library("BTF") {
+ output_name = "LLVMDebugInfoBTF"
+ deps = [ "//llvm/lib/Support" ]
+ sources = [
+ "BTFParser.cpp",
+ "BTFContext.cpp",
+ ]
+}
diff --git a/llvm/utils/gn/secondary/llvm/lib/DebugInfo/Symbolize/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/DebugInfo/Symbolize/BUILD.gn
index a6a6fe74a19f2b..aa15a1bf2a836e 100644
--- a/llvm/utils/gn/secondary/llvm/lib/DebugInfo/Symbolize/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/DebugInfo/Symbolize/BUILD.gn
@@ -2,6 +2,7 @@ static_library("Symbolize") {
output_name = "LLVMSymbolize"
deps = [
"//llvm/include/llvm/Config:config",
+ "//llvm/lib/DebugInfo/BTF",
"//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/DebugInfo/PDB",
"//llvm/lib/Demangle",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
index 61778247569e31..35cf2dbdf6a90b 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
@@ -11,6 +11,7 @@ group("unittests") {
"CodeGen:CodeGenTests",
"CodeGen/GlobalISel:GlobalISelTests",
"DWARFLinkerParallel:DWARFLinkerParallelTests",
+ "DebugInfo/BTF:DebugInfoBTFTests",
"DebugInfo/CodeView:DebugInfoCodeViewTests",
"DebugInfo/DWARF:DebugInfoDWARFTests",
"DebugInfo/GSYM:DebugInfoGSYMTests",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/DebugInfo/BTF/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/DebugInfo/BTF/BUILD.gn
new file mode 100644
index 00000000000000..6e07dd697c6015
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/unittests/DebugInfo/BTF/BUILD.gn
@@ -0,0 +1,10 @@
+import("//third-party/unittest/unittest.gni")
+
+unittest("DebugInfoBTFTests") {
+ deps = [
+ "//llvm/lib/DebugInfo/BTF",
+ "//llvm/lib/ObjectYAML",
+ "//llvm/lib/Testing/Support",
+ ]
+ sources = [ "BTFParserTest.cpp" ]
+}
More information about the llvm-commits
mailing list