[gn build] port fe7a3cedf771 (llvm-debuginfo-analyzer)
authorNico Weber <thakis@chromium.org>
Mon, 17 Oct 2022 13:26:23 +0000 (09:26 -0400)
committerNico Weber <thakis@chromium.org>
Tue, 18 Oct 2022 10:34:53 +0000 (06:34 -0400)
llvm/utils/gn/secondary/llvm/lib/DebugInfo/LogicalView/BUILD.gn [new file with mode: 0644]
llvm/utils/gn/secondary/llvm/test/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-debuginfo-analyzer/BUILD.gn [new file with mode: 0644]
llvm/utils/gn/secondary/llvm/unittests/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/DebugInfo/LogicalView/BUILD.gn [new file with mode: 0644]

diff --git a/llvm/utils/gn/secondary/llvm/lib/DebugInfo/LogicalView/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/DebugInfo/LogicalView/BUILD.gn
new file mode 100644 (file)
index 0000000..e94b41c
--- /dev/null
@@ -0,0 +1,14 @@
+static_library("LogicalView") {
+  output_name = "LLVMDebugInfoLogicalView"
+  deps = [
+    "//llvm/lib/BinaryFormat",
+    "//llvm/lib/DebugInfo/CodeView",
+    "//llvm/lib/DebugInfo/DWARF",
+    "//llvm/lib/DebugInfo/PDB",
+    "//llvm/lib/Demangle",
+    "//llvm/lib/MC",
+    "//llvm/lib/Object",
+    "//llvm/lib/Support",
+  ]
+  sources = [ "Core/LVOptions.cpp" ]
+}
index aa5369b..d372f68 100644 (file)
@@ -255,6 +255,7 @@ group("test") {
     "//llvm/tools/llvm-cxxdump",
     "//llvm/tools/llvm-cxxfilt",
     "//llvm/tools/llvm-cxxmap",
+    "//llvm/tools/llvm-debuginfo-analyzer",
     "//llvm/tools/llvm-debuginfod:symlinks",
     "//llvm/tools/llvm-debuginfod-find:symlinks",
     "//llvm/tools/llvm-diff",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfo-analyzer/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-debuginfo-analyzer/BUILD.gn
new file mode 100644 (file)
index 0000000..6ed9a51
--- /dev/null
@@ -0,0 +1,20 @@
+executable("llvm-debuginfo-analyzer") {
+  deps = [
+    "//llvm/lib/BinaryFormat",
+    "//llvm/lib/DebugInfo/CodeView",
+    "//llvm/lib/DebugInfo/DWARF",
+    "//llvm/lib/DebugInfo/LogicalView",
+    "//llvm/lib/DebugInfo/PDB",
+    "//llvm/lib/MC",
+    "//llvm/lib/MC/MCDisassembler",
+    "//llvm/lib/Object",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target:AllTargetsDescs",
+    "//llvm/lib/Target:AllTargetsDisassemblers",
+    "//llvm/lib/Target:AllTargetsInfos",
+  ]
+  sources = [
+    "Options.cpp",
+    "llvm-debuginfo-analyzer.cpp",
+  ]
+}
index ff79573..feb2622 100644 (file)
@@ -13,6 +13,7 @@ group("unittests") {
     "DebugInfo/CodeView:DebugInfoCodeViewTests",
     "DebugInfo/DWARF:DebugInfoDWARFTests",
     "DebugInfo/GSYM:DebugInfoGSYMTests",
+    "DebugInfo/LogicalView:DebugInfoLogicalViewTests",
     "DebugInfo/MSF:DebugInfoMSFTests",
     "DebugInfo/PDB:DebugInfoPDBTests",
     "DebugInfo/Symbolizer:DebugInfoSymbolizerTests",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/DebugInfo/LogicalView/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/DebugInfo/LogicalView/BUILD.gn
new file mode 100644 (file)
index 0000000..49bb54d
--- /dev/null
@@ -0,0 +1,12 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("DebugInfoLogicalViewTests") {
+  deps = [
+    "//llvm/lib/DebugInfo/LogicalView",
+    "//llvm/lib/Testing/Support",
+  ]
+  sources = [
+    "CommandLineOptionsTest.cpp",
+    "StringPoolTest.cpp",
+  ]
+}