From: Dan Gohman Date: Fri, 30 Oct 2009 01:45:18 +0000 (+0000) Subject: Add support for BlockAddress static initializers. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6a55e62996e1f7223ecab0f26216a2f32e8ae7e4;p=oota-llvm.git Add support for BlockAddress static initializers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85562 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 576768210f6..989f19cb0ad 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -919,6 +919,8 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) { default: llvm_unreachable("Unsupported operator!"); } + } else if (const BlockAddress *BA = dyn_cast(CV)) { + GetBlockAddressSymbol(BA)->print(O, MAI); } else { llvm_unreachable("Unknown constant value!"); }