commit | 6a55e62996e1f7223ecab0f26216a2f32e8ae7e4 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Oct 30 01:45:18 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Oct 30 01:45:18 2009 +0000 |
tree | 5a2654a29586c5879e8a623564ff91c3245a8d76 | |
parent | 6ae5b32e487c24f723f262eb989475a2e12eb951 [diff] |
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 5767682..989f19c 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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!"); }