Skip to content

Commit 69f5bd2

Browse files
committed
[gn build] reformat all gn files
$ git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format
1 parent 99dfcfd commit 69f5bd2

File tree

6 files changed

+24
-27
lines changed

6 files changed

+24
-27
lines changed

llvm/utils/gn/build/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ config("compiler_defaults") {
9090
}
9191
} else if (symbol_level == 1) {
9292
cflags += [ "-g1" ]
93-
9493
# For linetable-only -g1 builds, --gdb-index makes links ~8% slower, but
9594
# links are 4x faster than -g builds so it's a fairly small absolute cost.
9695
# On the other hand, gdb startup is well below 1s with and without the

llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ static_library("builtins") {
429429
if (current_cpu == "arm64") {
430430
sources -= [ "fp_mode.c" ]
431431
sources += [
432-
"cpu_model.c",
433432
"aarch64/fp_mode.c",
433+
"cpu_model.c",
434434
]
435435
if (current_os == "mingw") {
436436
sources += [ "aarch64/chkstk.S" ]

llvm/utils/gn/secondary/libcxx/include/BUILD.gn

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ action("concat_config") {
6060
rebase_path("$target_gen_dir/__config_site", root_build_dir),
6161
rebase_path("__config", root_build_dir),
6262
"-o",
63-
rebase_path(outputs[0], root_build_dir)
63+
rebase_path(outputs[0], root_build_dir),
6464
]
6565
deps = [ ":write_config" ]
6666
}
@@ -90,6 +90,25 @@ copy("include") {
9090
"__sso_allocator",
9191
"__std_stream",
9292
"__string",
93+
"__support/android/locale_bionic.h",
94+
"__support/fuchsia/xlocale.h",
95+
"__support/ibm/limits.h",
96+
"__support/ibm/locale_mgmt_aix.h",
97+
"__support/ibm/nanosleep.h",
98+
"__support/ibm/support.h",
99+
"__support/ibm/xlocale.h",
100+
"__support/musl/xlocale.h",
101+
"__support/newlib/xlocale.h",
102+
"__support/nuttx/xlocale.h",
103+
"__support/openbsd/xlocale.h",
104+
"__support/solaris/floatingpoint.h",
105+
"__support/solaris/wchar.h",
106+
"__support/solaris/xlocale.h",
107+
"__support/win32/limits_msvc_win32.h",
108+
"__support/win32/locale_win32.h",
109+
"__support/xlocale/__nop_locale_mgmt.h",
110+
"__support/xlocale/__posix_l_fallback.h",
111+
"__support/xlocale/__strtonum_fallback.h",
93112
"__threading_support",
94113
"__tree",
95114
"__tuple",
@@ -218,25 +237,6 @@ copy("include") {
218237
"string.h",
219238
"string_view",
220239
"strstream",
221-
"__support/android/locale_bionic.h",
222-
"__support/fuchsia/xlocale.h",
223-
"__support/ibm/limits.h",
224-
"__support/ibm/locale_mgmt_aix.h",
225-
"__support/ibm/nanosleep.h",
226-
"__support/ibm/support.h",
227-
"__support/ibm/xlocale.h",
228-
"__support/musl/xlocale.h",
229-
"__support/newlib/xlocale.h",
230-
"__support/nuttx/xlocale.h",
231-
"__support/openbsd/xlocale.h",
232-
"__support/solaris/floatingpoint.h",
233-
"__support/solaris/wchar.h",
234-
"__support/solaris/xlocale.h",
235-
"__support/win32/limits_msvc_win32.h",
236-
"__support/win32/locale_win32.h",
237-
"__support/xlocale/__nop_locale_mgmt.h",
238-
"__support/xlocale/__posix_l_fallback.h",
239-
"__support/xlocale/__strtonum_fallback.h",
240240
"system_error",
241241
"tgmath.h",
242242
"thread",

llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tablegen("OMP") {
1919
group("public_tablegen") {
2020
public_deps = [
2121
# Frontend/OpenMP's public headers include OMP.h.inc.
22-
":OMPh",
2322
":OMP",
23+
":OMPh",
2424
]
2525
}

llvm/utils/gn/secondary/llvm/lib/Target/RISCV/MCTargetDesc/BUILD.gn

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ tablegen("RISCVGenSubtargetInfo") {
4040
# by other targets. .inc files only used by .cpp files in this directory
4141
# should be in deps on the static_library instead.
4242
group("tablegen") {
43-
visibility = [
44-
":MCTargetDesc",
45-
]
43+
visibility = [ ":MCTargetDesc" ]
4644
public_deps = [
4745
":RISCVGenInstrInfo",
4846
":RISCVGenRegisterInfo",

llvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ static_library("Scalar") {
7676
"SCCP.cpp",
7777
"SROA.cpp",
7878
"Scalar.cpp",
79-
"Scalarizer.cpp",
8079
"ScalarizeMaskedMemIntrin.cpp",
80+
"Scalarizer.cpp",
8181
"SeparateConstOffsetFromGEP.cpp",
8282
"SimpleLoopUnswitch.cpp",
8383
"SimplifyCFGPass.cpp",

0 commit comments

Comments
 (0)