[Parser] Remove "add -fmodules" from the "use of '@import' when modules are disabled, add -fmodules" error.

We disable modules for C++, at which point this is confusing.
rdar://16641918

llvm-svn: 206440
This commit is contained in:
Argyrios Kyrtzidis 2014-04-17 02:32:52 +00:00
parent 06770f9381
commit ec328b8e6f
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ def err_expected_property_name : Error<"expected property name">;
def err_unexpected_at : Error<"unexpected '@' in program">;
def err_atimport : Error<
"use of '@import' when modules are disabled, add -fmodules">;
"use of '@import' when modules are disabled">;
def err_invalid_reference_qualifier_application : Error<
"'%0' qualifier may not be applied to a reference">;

View File

@ -1,7 +1,7 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// rdar://15505492
@import Foundation; // expected-error {{use of '@import' when modules are disabled, add -fmodules}}
@import Foundation; // expected-error {{use of '@import' when modules are disabled}}
@interface Subclass
+ (int)magicNumber;