File tree Expand file tree Collapse file tree 25 files changed +31
-33
lines changed
include/llvm/TargetParser
unittests/Transforms/Instrumentation Expand file tree Collapse file tree 25 files changed +31
-33
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ config("compiler_defaults") {
186
186
if (! is_clang ) {
187
187
# expand __VA_ARGS__ in "OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__)"
188
188
cflags += [ " /Zc:preprocessor" ]
189
+
189
190
# cl.exe doesn't set __cplusplus correctly by default.
190
191
# clang-cl gets it right by default, so don't needlessly add the flag there.
191
192
cflags_cc += [ " /Zc:__cplusplus" ]
Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ if (current_os == "android") {
45
45
target_flags += [
46
46
" -isysroot" ,
47
47
rebase_path (mac_sdk_path , root_build_dir ),
48
+
48
49
# TODO(lgrey ): We should be getting this from `compiler_defaults`. Why
49
50
# aren't we?
50
- " -mmacos-version-min=$mac_deployment_target " ,
51
+ " -mmacos-version-min=$mac_deployment_target " ,
51
52
]
52
53
}
53
54
} else if (current_os == " baremetal" ) {
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ group("default") {
21
21
" //libcxxabi" ,
22
22
]
23
23
}
24
- if (current_os == " linux" || current_os == " win" || current_os == " mac" ) {
24
+ if (current_os == " linux" || current_os == " win" || current_os == " mac" ) {
25
25
deps += [ " //compiler-rt/test/asan" ]
26
26
}
27
27
28
28
if (current_os == " linux" || current_os == " mac" ) {
29
- deps += [ " //compiler-rt/test/lsan" ]
29
+ deps += [ " //compiler-rt/test/lsan" ]
30
30
}
31
31
32
32
if (current_os == " linux" || current_os == " android" ) {
Original file line number Diff line number Diff line change 1
1
copy (" assets" ) {
2
2
sources = [
3
- " ../assets/index.js" ,
4
3
" ../assets/clang-doc-default-stylesheet.css" ,
4
+ " ../assets/index.js" ,
5
5
]
6
6
outputs = [ " $root_build_dir /share/clang-doc/{{source_file_part}}" ]
7
7
}
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ static_library("clangd") {
56
56
" //clang/lib/Serialization" ,
57
57
" //clang/lib/Tooling" ,
58
58
" //clang/lib/Tooling/Core" ,
59
+ " //clang/lib/Tooling/DependencyScanning" ,
59
60
" //clang/lib/Tooling/Inclusions" ,
60
61
" //clang/lib/Tooling/Inclusions/Stdlib" ,
61
- " //clang/lib/Tooling/DependencyScanning" ,
62
62
" //clang/lib/Tooling/Refactoring" ,
63
63
" //clang/lib/Tooling/Syntax" ,
64
64
" //llvm/lib/Support" ,
Original file line number Diff line number Diff line change @@ -124,13 +124,13 @@ write_lit_config("lit_site_cfg") {
124
124
" CMAKE_LIBRARY_OUTPUT_DIRECTORY=" + rebase_path (" $root_out_dir /bin" , dir ),
125
125
" LLVM_LIT_ERRC_MESSAGES=no such file or directory;is a directory;" +
126
126
" invalid argument;permission denied" ,
127
- " PERL_EXECUTABLE="
127
+ " PERL_EXECUTABLE=" ,
128
128
]
129
129
} else {
130
130
extra_values += [
131
131
" CMAKE_LIBRARY_OUTPUT_DIRECTORY=" + rebase_path (" $root_out_dir /lib" , dir ),
132
132
" LLVM_LIT_ERRC_MESSAGES=" ,
133
- " PERL_EXECUTABLE=/usr/bin/perl"
133
+ " PERL_EXECUTABLE=/usr/bin/perl" ,
134
134
]
135
135
}
136
136
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ unittest("InstallAPITests") {
7
7
" //llvm/lib/Testing/Support" ,
8
8
]
9
9
sources = [
10
- " HeaderFileTest.cpp" ,
11
10
" FileListTest.cpp" ,
11
+ " HeaderFileTest.cpp" ,
12
12
]
13
13
}
Original file line number Diff line number Diff line change @@ -167,9 +167,9 @@ source_set("sources") {
167
167
" sanitizer_vector.h" ,
168
168
" sanitizer_win.cpp" ,
169
169
" sanitizer_win.h" ,
170
+ " sanitizer_win_defs.h" ,
170
171
" sanitizer_win_interception.cpp" ,
171
172
" sanitizer_win_interception.h" ,
172
- " sanitizer_win_defs.h" ,
173
173
" sanitizer_win_thunk_interception.h" ,
174
174
]
175
175
}
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ if (current_toolchain != host_toolchain) {
37
37
" :lit_site_cfg" ,
38
38
" //compiler-rt/include($host_toolchain )" ,
39
39
" //compiler-rt/lib/cfi:ignorelist($host_toolchain )" ,
40
- " //compiler-rt/lib/hwasan:hwasan_shared" ,
41
40
" //compiler-rt/lib/hwasan:hwasan_preinit" ,
41
+ " //compiler-rt/lib/hwasan:hwasan_shared" ,
42
42
" //compiler-rt/test:lit_common_configured" ,
43
43
" //llvm/utils/FileCheck($host_toolchain )" ,
44
44
" //llvm/utils/llvm-lit($host_toolchain )" ,
Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ import("//llvm/version.gni")
7
7
8
8
write_cmake_config (" asan_mode_cfg" ) {
9
9
input = " lit.site.cfg.py.in"
10
- output = " $target_gen_dir /${ crt_current_target_arch } AsanConfig/lit.site.cfg.py"
10
+ output =
11
+ " $target_gen_dir /${ crt_current_target_arch } AsanConfig/lit.site.cfg.py"
11
12
values = [
12
13
" LSAN_LIT_SOURCE_DIR=" + rebase_path (" ." ),
13
14
" LSAN_TEST_CONFIG_SUFFIX=$crt_current_target_suffix " ,
14
15
" LSAN_TEST_TARGET_CFLAGS=$target_flags_string " ,
16
+
15
17
# TODO(lgrey ): Support standalone mode
16
18
" LSAN_LIT_TEST_MODE=AddressSanitizer" ,
17
19
" LSAN_TEST_TARGET_ARCH=$crt_current_target_arch " ,
@@ -59,9 +61,7 @@ if (supported_toolchains != []) {
59
61
test_dir = rebase_path (
60
62
get_label_info (" :lit_site_cfg($toolchain )" , " target_gen_dir" ),
61
63
root_build_dir )
62
- args += [
63
- test_dir + " /${ crt_current_target_arch } AsanConfig" ,
64
- ]
64
+ args += [ test_dir + " /${ crt_current_target_arch } AsanConfig" ]
65
65
}
66
66
outputs = [ " $target_gen_dir /run-lit" ] # Non-existing, so that ninja runs
67
67
# it each time.
Original file line number Diff line number Diff line change @@ -317,13 +317,13 @@ if (libcxx_enable_experimental) {
317
317
sources = [ " experimental/keep.cpp" ]
318
318
if (libcxx_enable_filesystem && libcxx_enable_time_zone_database ) {
319
319
sources += [
320
+ # TODO TZDB The exception could be moved in chrono once the TZDB library
321
+ # is no longer experimental.
322
+ " experimental/chrono_exception.cpp" ,
320
323
" experimental/include/tzdb/time_zone_private.h" ,
321
324
" experimental/include/tzdb/types_private.h" ,
322
325
" experimental/include/tzdb/tzdb_list_private.h" ,
323
326
" experimental/include/tzdb/tzdb_private.h" ,
324
- # TODO TZDB The exception could be moved in chrono once the TZDB library
325
- # is no longer experimental.
326
- " experimental/chrono_exception.cpp" ,
327
327
" experimental/time_zone.cpp" ,
328
328
" experimental/tzdb.cpp" ,
329
329
" experimental/tzdb_list.cpp" ,
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import("//third-party/unittest/unittest.gni")
3
3
unittest (" LLDAsLibAllTests" ) {
4
4
configs += [ " //llvm/utils/gn/build:lld_code" ]
5
5
deps = [
6
- " //lld/Common" ,
7
6
" //lld/COFF" ,
7
+ " //lld/Common" ,
8
8
" //lld/ELF" ,
9
9
" //lld/MachO" ,
10
10
" //lld/MinGW" ,
Original file line number Diff line number Diff line change @@ -5,4 +5,3 @@ group("unittests") {
5
5
]
6
6
testonly = true
7
7
}
8
-
Original file line number Diff line number Diff line change @@ -164,8 +164,8 @@ group("test") {
164
164
" :lit_unit_site_cfg" ,
165
165
" //clang/tools/driver:symlinks" ,
166
166
" //lld/tools/lld:symlinks" ,
167
- " //lldb/tools/lldb-dap" ,
168
167
" //lldb/tools/driver:lldb" ,
168
+ " //lldb/tools/lldb-dap" ,
169
169
170
170
# XXX lldb-instr, darwin-debug, etc
171
171
" //lldb/tools/lldb-server" ,
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ tablegen("RISCVTargetParserDef") {
23
23
24
24
group (" gen" ) {
25
25
deps = [
26
- " :ARMTargetParserDef" ,
27
26
" :AArch64TargetParserDef" ,
27
+ " :ARMTargetParserDef" ,
28
28
" :RISCVTargetParserDef" ,
29
29
]
30
30
}
Original file line number Diff line number Diff line change @@ -10,4 +10,3 @@ static_library("CodeGenTypes") {
10
10
]
11
11
sources = [ " LowLevelType.cpp" ]
12
12
}
13
-
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ static_library("BTF") {
2
2
output_name = " LLVMDebugInfoBTF"
3
3
deps = [ " //llvm/lib/Support" ]
4
4
sources = [
5
- " BTFParser.cpp" ,
6
5
" BTFContext.cpp" ,
6
+ " BTFParser.cpp" ,
7
7
]
8
8
}
Original file line number Diff line number Diff line change @@ -12,7 +12,5 @@ static_library("Utils") {
12
12
" //llvm/lib/Target/WebAssembly/TargetInfo" ,
13
13
]
14
14
include_dirs = [ " .." ]
15
- sources = [
16
- " WebAssemblyTypeUtilities.cpp" ,
17
- ]
15
+ sources = [ " WebAssemblyTypeUtilities.cpp" ]
18
16
}
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ executable("llc") {
6
6
" //llvm/lib/CodeGen/MIRParser" ,
7
7
" //llvm/lib/CodeGen/SelectionDAG" ,
8
8
" //llvm/lib/IR" ,
9
- " //llvm/lib/IRReader" ,
10
9
" //llvm/lib/IRPrinter" ,
10
+ " //llvm/lib/IRReader" ,
11
11
" //llvm/lib/MC" ,
12
12
" //llvm/lib/Passes" ,
13
13
" //llvm/lib/Support" ,
Original file line number Diff line number Diff line change 1
1
import (" //llvm/tools/binutils_symlinks.gni" )
2
+ import (" //llvm/utils/TableGen/tablegen.gni" )
2
3
import (" //llvm/utils/gn/build/driver_executable.gni" )
3
4
import (" //llvm/utils/gn/build/symlink_or_copy.gni" )
4
- import (" //llvm/utils/TableGen/tablegen.gni" )
5
5
6
6
tablegen (" Opts" ) {
7
7
visibility = [ " :llvm-dwp" ]
Original file line number Diff line number Diff line change 1
1
import (" //llvm/tools/cctools_symlinks.gni" )
2
+ import (" //llvm/utils/TableGen/tablegen.gni" )
2
3
import (" //llvm/utils/gn/build/driver_executable.gni" )
3
4
import (" //llvm/utils/gn/build/symlink_or_copy.gni" )
4
- import (" //llvm/utils/TableGen/tablegen.gni" )
5
5
6
6
tablegen (" Opts" ) {
7
7
visibility = [ " :llvm-libtool-darwin" ]
Original file line number Diff line number Diff line change 1
- import (" //llvm/utils/gn/build/driver_executable.gni" )
2
1
import (" //llvm/utils/TableGen/tablegen.gni" )
2
+ import (" //llvm/utils/gn/build/driver_executable.gni" )
3
3
4
4
tablegen (" Opts" ) {
5
5
visibility = [ " :llvm-ml" ]
Original file line number Diff line number Diff line change 1
- import (" //llvm/utils/gn/build/driver_executable.gni" )
2
1
import (" //llvm/utils/TableGen/tablegen.gni" )
2
+ import (" //llvm/utils/gn/build/driver_executable.gni" )
3
3
4
4
tablegen (" Opts" ) {
5
5
visibility = [ " :sancov" ]
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ unittest("InstrumentationTests") {
5
5
" //llvm/lib/Analysis" ,
6
6
" //llvm/lib/AsmParser" ,
7
7
" //llvm/lib/IR" ,
8
- " //llvm/lib/Transforms/Instrumentation" ,
9
8
" //llvm/lib/Passes" ,
10
9
" //llvm/lib/Support" ,
11
10
" //llvm/lib/Testing/Support" ,
11
+ " //llvm/lib/Transforms/Instrumentation" ,
12
12
]
13
13
sources = [ " PGOInstrumentationTest.cpp" ]
14
14
}
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ executable("llvm-tblgen") {
64
64
" SearchableTableEmitter.cpp" ,
65
65
" SubtargetEmitter.cpp" ,
66
66
" WebAssemblyDisassemblerEmitter.cpp" ,
67
- " X86InstrMappingEmitter.cpp" ,
68
67
" X86DisassemblerTables.cpp" ,
69
68
" X86FoldTablesEmitter.cpp" ,
69
+ " X86InstrMappingEmitter.cpp" ,
70
70
" X86MnemonicTables.cpp" ,
71
71
" X86ModRMFilters.cpp" ,
72
72
" X86RecognizableInstr.cpp" ,
You can’t perform that action at this time.
0 commit comments