From: Jonas Devlieghere Date: Fri, 26 Jul 2019 18:14:12 +0000 (+0000) Subject: [TableGen] Move core properties into a separate file (NFC) X-Git-Tag: llvmorg-11-init~13458 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01f277e2db1d824b4107925c86c0bb58613f42d0;p=platform%2Fupstream%2Fllvm.git [TableGen] Move core properties into a separate file (NFC) With the plugins having their own tablgen file, it makes sense to split off the core properties as well. llvm-svn: 367140 --- diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 231e441..c9de1fa 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -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 index 3c84ad1..0000000 --- a/lldb/include/lldb/Core/CMakeLists.txt +++ /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) diff --git a/lldb/source/Core/CMakeLists.txt b/lldb/source/Core/CMakeLists.txt index bf6b1a5..d89abd5 100644 --- a/lldb/source/Core/CMakeLists.txt +++ b/lldb/source/Core/CMakeLists.txt @@ -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 diff --git a/lldb/include/lldb/Core/Properties.td b/lldb/source/Core/Properties.td similarity index 99% rename from lldb/include/lldb/Core/Properties.td rename to lldb/source/Core/Properties.td index a6aa3c4..014927c 100644 --- a/lldb/include/lldb/Core/Properties.td +++ b/lldb/source/Core/Properties.td @@ -1,4 +1,4 @@ -include "PropertiesBase.td" +include "../../include/lldb/Core/PropertiesBase.td" let Definition = "modulelist" in { def EnableExternalLookup: Property<"enable-external-lookup", "Boolean">,