[gn build] reformat all gn files

$ git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format
This commit is contained in:
Nico Weber 2021-02-08 16:10:59 -05:00
parent 99dfcfd14c
commit 69f5bd2ec5
6 changed files with 24 additions and 27 deletions

View File

@ -90,7 +90,6 @@ config("compiler_defaults") {
}
} else if (symbol_level == 1) {
cflags += [ "-g1" ]
# For linetable-only -g1 builds, --gdb-index makes links ~8% slower, but
# links are 4x faster than -g builds so it's a fairly small absolute cost.
# On the other hand, gdb startup is well below 1s with and without the

View File

@ -429,8 +429,8 @@ static_library("builtins") {
if (current_cpu == "arm64") {
sources -= [ "fp_mode.c" ]
sources += [
"cpu_model.c",
"aarch64/fp_mode.c",
"cpu_model.c",
]
if (current_os == "mingw") {
sources += [ "aarch64/chkstk.S" ]

View File

@ -60,7 +60,7 @@ action("concat_config") {
rebase_path("$target_gen_dir/__config_site", root_build_dir),
rebase_path("__config", root_build_dir),
"-o",
rebase_path(outputs[0], root_build_dir)
rebase_path(outputs[0], root_build_dir),
]
deps = [ ":write_config" ]
}
@ -90,6 +90,25 @@ copy("include") {
"__sso_allocator",
"__std_stream",
"__string",
"__support/android/locale_bionic.h",
"__support/fuchsia/xlocale.h",
"__support/ibm/limits.h",
"__support/ibm/locale_mgmt_aix.h",
"__support/ibm/nanosleep.h",
"__support/ibm/support.h",
"__support/ibm/xlocale.h",
"__support/musl/xlocale.h",
"__support/newlib/xlocale.h",
"__support/nuttx/xlocale.h",
"__support/openbsd/xlocale.h",
"__support/solaris/floatingpoint.h",
"__support/solaris/wchar.h",
"__support/solaris/xlocale.h",
"__support/win32/limits_msvc_win32.h",
"__support/win32/locale_win32.h",
"__support/xlocale/__nop_locale_mgmt.h",
"__support/xlocale/__posix_l_fallback.h",
"__support/xlocale/__strtonum_fallback.h",
"__threading_support",
"__tree",
"__tuple",
@ -218,25 +237,6 @@ copy("include") {
"string.h",
"string_view",
"strstream",
"__support/android/locale_bionic.h",
"__support/fuchsia/xlocale.h",
"__support/ibm/limits.h",
"__support/ibm/locale_mgmt_aix.h",
"__support/ibm/nanosleep.h",
"__support/ibm/support.h",
"__support/ibm/xlocale.h",
"__support/musl/xlocale.h",
"__support/newlib/xlocale.h",
"__support/nuttx/xlocale.h",
"__support/openbsd/xlocale.h",
"__support/solaris/floatingpoint.h",
"__support/solaris/wchar.h",
"__support/solaris/xlocale.h",
"__support/win32/limits_msvc_win32.h",
"__support/win32/locale_win32.h",
"__support/xlocale/__nop_locale_mgmt.h",
"__support/xlocale/__posix_l_fallback.h",
"__support/xlocale/__strtonum_fallback.h",
"system_error",
"tgmath.h",
"thread",

View File

@ -19,7 +19,7 @@ tablegen("OMP") {
group("public_tablegen") {
public_deps = [
# Frontend/OpenMP's public headers include OMP.h.inc.
":OMPh",
":OMP",
":OMPh",
]
}

View File

@ -40,9 +40,7 @@ tablegen("RISCVGenSubtargetInfo") {
# by other targets. .inc files only used by .cpp files in this directory
# should be in deps on the static_library instead.
group("tablegen") {
visibility = [
":MCTargetDesc",
]
visibility = [ ":MCTargetDesc" ]
public_deps = [
":RISCVGenInstrInfo",
":RISCVGenRegisterInfo",

View File

@ -76,8 +76,8 @@ static_library("Scalar") {
"SCCP.cpp",
"SROA.cpp",
"Scalar.cpp",
"Scalarizer.cpp",
"ScalarizeMaskedMemIntrin.cpp",
"Scalarizer.cpp",
"SeparateConstOffsetFromGEP.cpp",
"SimpleLoopUnswitch.cpp",
"SimplifyCFGPass.cpp",