mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
asmprinter support for BlockAddress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e0dc8e123
commit
73050e1c38
@ -1060,6 +1060,15 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
|
||||
Out << "zeroinitializer";
|
||||
return;
|
||||
}
|
||||
|
||||
if (const BlockAddress *BA = dyn_cast<BlockAddress>(CV)) {
|
||||
Out << "blockaddress(";
|
||||
WriteAsOperandInternal(Out, BA->getFunction(), &TypePrinter, Machine);
|
||||
Out << ", ";
|
||||
WriteAsOperandInternal(Out, BA->getBasicBlock(), &TypePrinter, Machine);
|
||||
Out << ")";
|
||||
return;
|
||||
}
|
||||
|
||||
if (const ConstantArray *CA = dyn_cast<ConstantArray>(CV)) {
|
||||
// As a special case, print the array as a string if it is an array of
|
||||
|
Loading…
x
Reference in New Issue
Block a user