forked from OSchip/llvm-project
parent
e89dbc1d98
commit
d6343c99d6
|
@ -377,8 +377,6 @@ def err_pp_eof_in_arc_cf_code_audited : Error<
|
|||
// Module map parsing
|
||||
def err_mmap_unknown_token : Error<"skipping stray token">;
|
||||
def err_mmap_expected_module : Error<"expected module declaration">;
|
||||
def err_mmap_expected_module_after_explicit : Error<
|
||||
"expected 'module' keyword after 'explicit'">;
|
||||
def err_mmap_expected_module_name : Error<"expected module name">;
|
||||
def err_mmap_expected_lbrace : Error<"expected '{' to start module '%0'">;
|
||||
def err_mmap_expected_rbrace : Error<"expected '}'">;
|
||||
|
|
|
@ -603,8 +603,7 @@ void ModuleMapParser::parseModuleDecl() {
|
|||
|
||||
// Parse 'module' keyword.
|
||||
if (!Tok.is(MMToken::ModuleKeyword)) {
|
||||
Diags.Report(Tok.getLocation(),
|
||||
diag::err_mmap_expected_module_after_explicit);
|
||||
Diags.Report(Tok.getLocation(), diag::err_mmap_expected_module);
|
||||
consumeToken();
|
||||
HadError = true;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue