mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +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:
@@ -919,6 +919,8 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
|
|||||||
default:
|
default:
|
||||||
llvm_unreachable("Unsupported operator!");
|
llvm_unreachable("Unsupported operator!");
|
||||||
}
|
}
|
||||||
|
} else if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) {
|
||||||
|
GetBlockAddressSymbol(BA)->print(O, MAI);
|
||||||
} else {
|
} else {
|
||||||
llvm_unreachable("Unknown constant value!");
|
llvm_unreachable("Unknown constant value!");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user