[llvm] 344e91a - [gn] port 301eb6b68f3 (AttrTokenKinds.inc)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 05:21:45 PDT 2023
Author: Nico Weber
Date: 2023-05-31T08:21:36-04:00
New Revision: 344e91a6f00840e67fc03bcfeca6c34fa6d34b17
URL: https://github.com/llvm/llvm-project/commit/344e91a6f00840e67fc03bcfeca6c34fa6d34b17
DIFF: https://github.com/llvm/llvm-project/commit/344e91a6f00840e67fc03bcfeca6c34fa6d34b17.diff
LOG: [gn] port 301eb6b68f3 (AttrTokenKinds.inc)
Added:
Modified:
llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
index 6407a73c4aa21..b937e2ce9c671 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
@@ -1,7 +1,10 @@
static_library("grammar") {
output_name = "clangPseudoGrammar"
configs += [ "//llvm/utils/gn/build:clang_code" ]
- deps = [ "//llvm/lib/Support" ]
+ deps = [
+ "//clang/include/clang/Basic:AttrTokenKinds",
+ "//llvm/lib/Support",
+ ]
include_dirs = [ "../../include" ]
sources = [
"Grammar.cpp",
diff --git a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
index 7463ea457161e..c78d70d23b539 100644
--- a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
@@ -72,6 +72,11 @@ clang_tablegen("AttrSubMatchRulesList") {
td_file = "Attr.td"
}
+clang_tablegen("AttrTokenKinds") {
+ args = [ "-gen-clang-attr-token-kinds" ]
+ td_file = "Attr.td"
+}
+
clang_tablegen("AttrHasAttributeImpl") {
args = [ "-gen-clang-attr-has-attribute-impl" ]
td_file = "Attr.td"
diff --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
index a8e2eb5779617..fb0066ea3043a 100644
--- a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
@@ -23,6 +23,7 @@ static_library("Basic") {
# public_dep because public header Version.h includes generated Version.inc.
"//clang/include/clang/Basic:AttrList",
"//clang/include/clang/Basic:AttrSubMatchRulesList",
+ "//clang/include/clang/Basic:AttrTokenKinds",
"//clang/include/clang/Basic:DiagnosticGroups",
"//clang/include/clang/Basic:arm_cde_builtins",
"//clang/include/clang/Basic:arm_mve_builtins",
More information about the llvm-commits
mailing list