]> granicus.if.org Git - clang/commitdiff
Use 'compile' instead of 'codegen' when reporting error to user.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 6 Feb 2009 19:18:03 +0000 (19:18 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 6 Feb 2009 19:18:03 +0000 (19:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63952 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp
test/CodeGen/unsupported.c

index af70a9c8464aa768326dd9e1624e19cd29560a83..7b939e29706fb29949671f5d74519bc616675d42 100644 (file)
@@ -112,7 +112,7 @@ void CodeGenModule::ErrorUnsupported(const Stmt *S, const char *Type,
   if (OmitOnError && getDiags().hasErrorOccurred())
     return;
   unsigned DiagID = getDiags().getCustomDiagID(Diagnostic::Error, 
-                                               "cannot codegen this %0 yet");
+                                               "cannot compile this %0 yet");
   std::string Msg = Type;
   getDiags().Report(Context.getFullLoc(S->getLocStart()), DiagID)
     << Msg << S->getSourceRange();
@@ -125,7 +125,7 @@ void CodeGenModule::ErrorUnsupported(const Decl *D, const char *Type,
   if (OmitOnError && getDiags().hasErrorOccurred())
     return;
   unsigned DiagID = getDiags().getCustomDiagID(Diagnostic::Error, 
-                                               "cannot codegen this %0 yet");
+                                               "cannot compile this %0 yet");
   std::string Msg = Type;
   getDiags().Report(Context.getFullLoc(D->getLocation()), DiagID) << Msg;
 }
index c5221493edf1127247fdb71e25636e4de3eb99c5..383a06bd1ac9337adfb60ba1d6aa739a538e38e7 100644 (file)
@@ -2,5 +2,5 @@
 
 int f0(int 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}}
 }