[llvm-commits] [llvm] r85562 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Dan Gohman gohman at apple.com
Thu Oct 29 18:45:19 PDT 2009


Author: djg
Date: Thu Oct 29 20:45:18 2009
New Revision: 85562

URL: http://llvm.org/viewvc/llvm-project?rev=85562&view=rev
Log:
Add support for BlockAddress static initializers.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=85562&r1=85561&r2=85562&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Thu Oct 29 20:45:18 2009
@@ -919,6 +919,8 @@
     default:
       llvm_unreachable("Unsupported operator!");
     }
+  } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) {
+    GetBlockAddressSymbol(BA)->print(O, MAI);
   } else {
     llvm_unreachable("Unknown constant value!");
   }





More information about the llvm-commits mailing list