[cfe-commits] r68058 - /cfe/trunk/lib/CodeGen/CGDecl.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Mar 30 13:32:06 PDT 2009


Author: fjahanian
Date: Mon Mar 30 15:32:06 2009
New Revision: 68058

URL: http://llvm.org/viewvc/llvm-project?rev=68058&view=rev
Log:
Code gen does not yet supports __asm__ on a variable
declaration. Reject it.

Modified:
    cfe/trunk/lib/CodeGen/CGDecl.cpp

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

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Mon Mar 30 15:32:06 2009
@@ -60,6 +60,9 @@
 /// EmitBlockVarDecl - This method handles emission of any variable declaration
 /// inside a function, including static vars etc.
 void CodeGenFunction::EmitBlockVarDecl(const VarDecl &D) {
+  if (D.getAttr<AsmLabelAttr>())
+    CGM.ErrorUnsupported(&D, "__asm__");
+  
   switch (D.getStorageClass()) {
   case VarDecl::Static:
     return EmitStaticBlockVarDecl(D);





More information about the cfe-commits mailing list