Skip to content

Commit 64dec31

Browse files
authored
Merge pull request #24783 from apple/revert-24336-oslog-optimization
2 parents 6160545 + f563212 commit 64dec31

File tree

10 files changed

+1
-1030
lines changed

10 files changed

+1
-1030
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -470,27 +470,6 @@ NOTE(switch_value_case_doesnt_yield, none, "missing yield in the %0 case",
470470
NOTE(try_branch_doesnt_yield, none, "missing yield when error is "
471471
"%select{not |}0thrown", (bool))
472472

473-
// OS log optimization dianostics.
474-
475-
ERROR(oslog_message_argument_not_found, none, "no argument of type %0 in "
476-
" the os log call", (Identifier))
477-
478-
ERROR(oslog_dynamic_message, none, "os log methods must be passed a string "
479-
"interpolation literal. 'OSLogMessage' must not be constructed explicitly",
480-
())
481-
482-
ERROR(oslog_const_evaluation_error, none, "constant evaluating 'OSLogMessage'"
483-
"implementation failed.", ())
484-
485-
ERROR(oslog_non_constant_message, none, "'OSLogMessage' struct is "
486-
"unoptimizable: 'init' is not constant evaluable", ())
487-
488-
ERROR(oslog_non_constant_interpolation, none, "'OSLogInterpolation' struct is "
489-
"unoptimizable: 'init' is not constant evaluable", ())
490-
491-
ERROR(oslog_property_not_constant, none, "'OSLogInterpolation.%0' is not a "
492-
"constant: formatting and privacy options must be literals", (StringRef))
493-
494473
#ifndef DIAG_NO_UNDEF
495474
# if defined(DIAG)
496475
# undef DIAG

include/swift/AST/KnownIdentifiers.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@ IDENTIFIER_(ErrorType)
178178
IDENTIFIER(Code)
179179
IDENTIFIER_(nsError)
180180

181-
// Custom string interpolation type used by os log APIs.
182-
IDENTIFIER(OSLogMessage)
183-
184181
#undef IDENTIFIER
185182
#undef IDENTIFIER_
186183
#undef IDENTIFIER_WITH_NAME

include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ PASS(SerializeSILPass, "serialize-sil",
309309
"Utility pass. Serializes the current SILModule")
310310
PASS(YieldOnceCheck, "yield-once-check",
311311
"Check correct usage of yields in yield-once coroutines")
312-
PASS(OSLogOptimization, "os-log-optimization", "Optimize os log calls")
313312
PASS(BugReducerTester, "bug-reducer-tester",
314313
"sil-bug-reducer Tool Testing by Asserting on a Sentinel Function")
315314
PASS_RANGE(AllPasses, AADumper, BugReducerTester)

lib/SILOptimizer/Mandatory/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ silopt_register_sources(
2020
SemanticARCOpts.cpp
2121
SILGenCleanup.cpp
2222
YieldOnceCheck.cpp
23-
OSLogOptimization.cpp
2423
)

0 commit comments

Comments
 (0)