[TableGen] Move core properties into a separate file (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 26 Jul 2019 18:14:12 +0000 (18:14 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 26 Jul 2019 18:14:12 +0000 (18:14 +0000)
With the plugins having their own tablgen file, it makes sense to split
off the core properties as well.

llvm-svn: 367140

lldb/CMakeLists.txt
lldb/include/lldb/Core/CMakeLists.txt [deleted file]
lldb/source/Core/CMakeLists.txt
lldb/source/Core/Properties.td [moved from lldb/include/lldb/Core/Properties.td with 99% similarity]

index 231e441..c9de1fa 100644 (file)
@@ -54,7 +54,6 @@ endif()
 
 # TableGen
 add_subdirectory(utils/TableGen)
-add_subdirectory(include/lldb/Core)
 
 add_subdirectory(source)
 add_subdirectory(tools)
diff --git a/lldb/include/lldb/Core/CMakeLists.txt b/lldb/include/lldb/Core/CMakeLists.txt
deleted file mode 100644 (file)
index 3c84ad1..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-lldb_tablegen(Properties.inc -gen-lldb-property-defs
-  SOURCE Properties.td
-  TARGET LLDBPropertiesGen)
-
-lldb_tablegen(PropertiesEnum.inc -gen-lldb-property-enum-defs
-  SOURCE Properties.td
-  TARGET LLDBPropertiesEnumGen)
index bf6b1a5..d89abd5 100644 (file)
@@ -1,3 +1,11 @@
+lldb_tablegen(Properties.inc -gen-lldb-property-defs
+  SOURCE Properties.td
+  TARGET LLDBCorePropertiesGen)
+
+lldb_tablegen(PropertiesEnum.inc -gen-lldb-property-enum-defs
+  SOURCE Properties.td
+  TARGET LLDBCorePropertiesEnumGen)
+
 set(LLDB_CURSES_LIBS)
 set(LLDB_LIBEDIT_LIBS)
 
@@ -76,7 +84,9 @@ add_lldb_library(lldbCore
     Demangle
   )
 
-add_dependencies(lldbCore LLDBPropertiesGen LLDBPropertiesEnumGen)
+add_dependencies(lldbCore
+  LLDBCorePropertiesGen
+  LLDBCorePropertiesEnumGen)
 
 # Needed to properly resolve references in a debug build.
 # TODO: Remove once we have better layering
similarity index 99%
rename from lldb/include/lldb/Core/Properties.td
rename to lldb/source/Core/Properties.td
index a6aa3c4..014927c 100644 (file)
@@ -1,4 +1,4 @@
-include "PropertiesBase.td"
+include "../../include/lldb/Core/PropertiesBase.td"
 
 let Definition = "modulelist" in {
   def EnableExternalLookup: Property<"enable-external-lookup", "Boolean">,