forked from OSchip/llvm-project
[darwin] remove version number check when enabling -fobjc-subscripting-legacy-runtime
This subscripting feature actually works on older OS versions anyway. rdar://36287065 llvm-svn: 348448
This commit is contained in:
parent
6d7706fcd8
commit
1ae9cd7e6a
|
@ -2828,7 +2828,6 @@ static void RenderObjCOptions(const ToolChain &TC, const Driver &D,
|
|||
// When ObjectiveC legacy runtime is in effect on MacOSX, turn on the option
|
||||
// to do Array/Dictionary subscripting by default.
|
||||
if (Arch == llvm::Triple::x86 && T.isMacOSX() &&
|
||||
!T.isMacOSXVersionLT(10, 7) &&
|
||||
Runtime.getKind() == ObjCRuntime::FragileMacOSX && Runtime.isNeXTFamily())
|
||||
CmdArgs.push_back("-fobjc-subscripting-legacy-runtime");
|
||||
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
// RUN: %clang -no-canonical-prefixes -target i386-apple-macosx10.6.0 -rewrite-legacy-objc %s -o - -### 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=TEST2 %s
|
||||
// TEST1: "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=macosx-fragile" "-fobjc-subscripting-legacy-runtime" "-fno-objc-infer-related-result-type" "-fobjc-exceptions" "-fmax-type-align=16" "-fdiagnostics-show-option"
|
||||
// TEST2: "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=macosx-fragile" "-fno-objc-infer-related-result-type" "-fobjc-exceptions" "-fmax-type-align=16" "-fdiagnostics-show-option"
|
||||
// TEST2: "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=macosx-fragile" "-fobjc-subscripting-legacy-runtime" "-fno-objc-infer-related-result-type" "-fobjc-exceptions" "-fmax-type-align=16" "-fdiagnostics-show-option"
|
||||
|
|
Loading…
Reference in New Issue