diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-30 01:45:18 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-30 01:45:18 +0000 |
commit | 4246f00e0cc99d30e6699c1d7368034ce7125e6e (patch) | |
tree | edd71ecd3a543c155891e640a422f7e4cb3b857d | |
parent | 4b08db7a626c8c947503ea1e3dbeb012139a50ce (diff) | |
download | bcm5719-llvm-4246f00e0cc99d30e6699c1d7368034ce7125e6e.tar.gz bcm5719-llvm-4246f00e0cc99d30e6699c1d7368034ce7125e6e.zip |
Add support for BlockAddress static initializers.
llvm-svn: 85562
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 576768210f6..989f19cb0ad 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/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<BlockAddress>(CV)) { + GetBlockAddressSymbol(BA)->print(O, MAI); } else { llvm_unreachable("Unknown constant value!"); } |