Use 'compile' instead of 'codegen' when reporting error to user.

llvm-svn: 63952
This commit is contained in:
Daniel Dunbar 2009-02-06 19:18:03 +00:00
parent ab8e4425a3
commit fe2fb0af5a
2 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ void CodeGenModule::ErrorUnsupported(const Stmt *S, const char *Type,
if (OmitOnError && getDiags().hasErrorOccurred()) if (OmitOnError && getDiags().hasErrorOccurred())
return; return;
unsigned DiagID = getDiags().getCustomDiagID(Diagnostic::Error, unsigned DiagID = getDiags().getCustomDiagID(Diagnostic::Error,
"cannot codegen this %0 yet"); "cannot compile this %0 yet");
std::string Msg = Type; std::string Msg = Type;
getDiags().Report(Context.getFullLoc(S->getLocStart()), DiagID) getDiags().Report(Context.getFullLoc(S->getLocStart()), DiagID)
<< Msg << S->getSourceRange(); << Msg << S->getSourceRange();
@ -125,7 +125,7 @@ void CodeGenModule::ErrorUnsupported(const Decl *D, const char *Type,
if (OmitOnError && getDiags().hasErrorOccurred()) if (OmitOnError && getDiags().hasErrorOccurred())
return; return;
unsigned DiagID = getDiags().getCustomDiagID(Diagnostic::Error, unsigned DiagID = getDiags().getCustomDiagID(Diagnostic::Error,
"cannot codegen this %0 yet"); "cannot compile this %0 yet");
std::string Msg = Type; std::string Msg = Type;
getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg; getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg;
} }

View File

@ -2,5 +2,5 @@
int f0(int x) { int f0(int x) {
int vla[x]; int vla[x];
return vla[x-1]; // expected-error {{cannot codegen this return inside scope with VLA yet}} return vla[x-1]; // expected-error {{cannot compile this return inside scope with VLA yet}}
} }