Teach getEffectiveAccess() to respect -enable-testing.

SIL seems to be doing the right thing here already, which is great!

Part of rdar://problem/17732115. We'll be able to really see this working
with the next change: allowing references to testable things when using
"@testable import".

Swift SVN r26473
This commit is contained in:
Jordan Rose
2015-03-24 02:17:01 +00:00
parent f74bc7122c
commit a0c64d7533
11 changed files with 97 additions and 32 deletions

View File

@@ -180,9 +180,6 @@ def enable_objc_implicit_properties :
def enable_source_import : Flag<["-"], "enable-source-import">,
HelpText<"Enable importing of Swift source files">;
def enable_testing : Flag<["-"], "enable-testing">,
HelpText<"Allows this module's internal API to be accessed for testing">;
def diagnose_generic_extensions : Flag<["-"], "diagnose-generic-extensions">,
HelpText<"Diagnose extensions of generic types without type parameters">;