[cfe-commits] r63952 - in /cfe/trunk: lib/CodeGen/CodeGenModule.cpp test/CodeGen/unsupported.c

Daniel Dunbar daniel at zuster.org
Fri Feb 6 11:18:03 PST 2009


Author: ddunbar
Date: Fri Feb  6 13:18:03 2009
New Revision: 63952

URL: http://llvm.org/viewvc/llvm-project?rev=63952&view=rev
Log:
Use 'compile' instead of 'codegen' when reporting error to user.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp
    cfe/trunk/test/CodeGen/unsupported.c

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=63952&r1=63951&r2=63952&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Fri Feb  6 13:18:03 2009
@@ -112,7 +112,7 @@
   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 @@
   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;
 }

Modified: cfe/trunk/test/CodeGen/unsupported.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/unsupported.c?rev=63952&r1=63951&r2=63952&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/unsupported.c (original)
+++ cfe/trunk/test/CodeGen/unsupported.c Fri Feb  6 13:18:03 2009
@@ -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}}
 }





More information about the cfe-commits mailing list