mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Add support for BlockAddress static initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6ae5b32e48
commit
6a55e62996
@ -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!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user