Skip to content

Commit 77987bd

Browse files
committed
revert clang/lib/CodeGen/CMakeLists.txt whitespace changes
1 parent 3cd4d49 commit 77987bd

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

clang/lib/CodeGen/CMakeLists.txt

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,25 @@ set(LLVM_LINK_COMPONENTS
3131
Target
3232
TargetParser
3333
TransformUtils
34-
)
34+
)
3535

3636
# Workaround for MSVC ARM64 performance regression:
3737
# https://developercommunity.visualstudio.com/t/Compiling-a-specific-code-for-ARM64-with/10444970
3838
# Since /O1 and /O2 represent a set of optimizations,
3939
# our goal is to disable the /Og flag while retaining the other optimizations from the /O1|/O2 set
4040
if(MSVC AND NOT CMAKE_CXX_COMPILER_ID MATCHES Clang
41-
AND MSVC_VERSION VERSION_GREATER_EQUAL 1932
42-
AND MSVC_VERSION VERSION_LESS 1939
43-
AND CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
41+
AND MSVC_VERSION VERSION_GREATER_EQUAL 1932
42+
AND MSVC_VERSION VERSION_LESS 1939
43+
AND CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
44+
4445
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
4546
string(REGEX MATCHALL "/[Oo][12]" opt_flags "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}}")
46-
47-
if(opt_flags)
47+
if (opt_flags)
4848
if(opt_flags MATCHES "1$")
4949
set(opt_flags "/Od;/Os;/Oy;/Ob2;/GF;/Gy")
50-
elseif(opt_flags MATCHES "2$")
50+
elseif (opt_flags MATCHES "2$")
5151
set(opt_flags "/Od;/Oi;/Ot;/Oy;/Ob2;/GF;/Gy")
5252
endif()
53-
5453
set_source_files_properties(CGBuiltin.cpp PROPERTIES COMPILE_OPTIONS "${opt_flags}")
5554
endif()
5655
endif()
@@ -149,7 +148,6 @@ add_clang_library(clangCodeGen
149148
vt_gen
150149
intrinsics_gen
151150
ClangDriverOptions
152-
153151
# These generated headers are included transitively.
154152
ARMTargetParserTableGen
155153
AArch64TargetParserTableGen
@@ -161,4 +159,4 @@ add_clang_library(clangCodeGen
161159
clangFrontend
162160
clangLex
163161
clangSerialization
164-
)
162+
)

0 commit comments

Comments
 (0)