[llvm] b60a2b9 - [gn] port 975eca0e6a3 (-gen-lldb-sbapi-dwarf-enum)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 06:58:30 PDT 2024


Author: Nico Weber
Date: 2024-04-30T09:58:18-04:00
New Revision: b60a2b931d68b9e119d6e2e6e17126937a646ff9

URL: https://github.com/llvm/llvm-project/commit/b60a2b931d68b9e119d6e2e6e17126937a646ff9
DIFF: https://github.com/llvm/llvm-project/commit/b60a2b931d68b9e119d6e2e6e17126937a646ff9.diff

LOG: [gn] port 975eca0e6a3 (-gen-lldb-sbapi-dwarf-enum)

Added: 
    llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/lldb/source/API/BUILD.gn
    llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn b/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn
new file mode 100644
index 00000000000000..18726255e6a4b9
--- /dev/null
+++ b/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn
@@ -0,0 +1,11 @@
+import("//lldb/utils/TableGen/lldb_tablegen.gni")
+
+lldb_tablegen("SBLanguages") {
+  args = [ "-gen-lldb-sbapi-dwarf-enum" ]
+
+  # See discussion on https://github.com/llvm/llvm-project/pull/89981 for
+  # why this runs tblgen on a .def file.
+  td_file = "//llvm/include/llvm/BinaryFormat/Dwarf.def"
+  output_name = "SBLanguages.h"
+}
+

diff  --git a/llvm/utils/gn/secondary/lldb/source/API/BUILD.gn b/llvm/utils/gn/secondary/lldb/source/API/BUILD.gn
index 3415900ac2914a..c99c1b5483355b 100644
--- a/llvm/utils/gn/secondary/lldb/source/API/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/source/API/BUILD.gn
@@ -17,6 +17,7 @@ target(liblldb_type, "liblldb") {
 
   output_name = "liblldb"  # XXX lib prefix?
   configs += [ "//llvm/utils/gn/build:lldb_code" ]
+  public_deps = [ "//lldb/include/lldb/API:SBLanguages" ]
   deps = [
     "//lldb/include/lldb/Host:Config",
     "//lldb/source/Breakpoint",

diff  --git a/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn b/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
index 37305d1de66cac..bc9f6903a288a8 100644
--- a/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
@@ -6,6 +6,7 @@ executable("lldb-tblgen") {
   sources = [
     "LLDBOptionDefEmitter.cpp",
     "LLDBPropertyDefEmitter.cpp",
+    "LLDBSBAPIDWARFEnum.cpp",
     "LLDBTableGen.cpp",
     "LLDBTableGenUtils.cpp",
   ]


        


More information about the llvm-commits mailing list