diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-03 19:32:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-03 19:32:59 +0000 |
commit | da82e703d1d9e39fd5acdf18e06855e452c87984 (patch) | |
tree | c148834214171b1c8467de34396e2601d68d646a /clang/lib/Parse/Parser.cpp | |
parent | c2f91c37e83a54c649582120827a25862a10f312 (diff) | |
download | bcm5719-llvm-da82e703d1d9e39fd5acdf18e06855e452c87984.tar.gz bcm5719-llvm-da82e703d1d9e39fd5acdf18e06855e452c87984.zip |
Eliminate the uglified keyword __import_module__ for importing
modules. This leaves us without an explicit syntax for importing
modules in C/C++, because such a syntax needs to be discussed
first. In Objective-C/Objective-C++, the @import syntax is used to
import modules.
Note that, under -fmodules, C/C++ programs can import modules via the
#include mechanism when a module map is in place for that header. This
allows us to work with modules in C/C++ without committing to a syntax.
llvm-svn: 147467
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index b96ff388dbc..d14b9adce2c 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -666,9 +666,6 @@ Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs, case tok::kw___if_not_exists: ParseMicrosoftIfExistsExternalDeclaration(); return DeclGroupPtrTy(); - - case tok::kw___import_module__: - return ParseModuleImport(SourceLocation()); default: dont_know: @@ -1570,8 +1567,7 @@ void Parser::ParseMicrosoftIfExistsExternalDeclaration() { } Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) { - assert((Tok.is(tok::kw___import_module__) || - Tok.isObjCAtKeyword(tok::objc_import)) && + assert(Tok.isObjCAtKeyword(tok::objc_import) && "Improper start to module import"); SourceLocation ImportLoc = ConsumeToken(); |