mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
Support printing ConstantAggregateZeros.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a0c4fd0c6
commit
4dd043f090
@ -270,6 +270,11 @@ void V8Printer::emitGlobalConstant(const Constant *CV) {
|
||||
unsigned size = TD.getTypeSize (CV->getType ());
|
||||
O << "\t.skip\t " << size << "\n";
|
||||
return;
|
||||
} else if (isa<ConstantAggregateZero> (CV)) {
|
||||
unsigned size = TD.getTypeSize (CV->getType ());
|
||||
for (unsigned i = 0; i < size; ++i)
|
||||
O << "\t.byte 0\n";
|
||||
return;
|
||||
}
|
||||
|
||||
const Type *type = CV->getType();
|
||||
|
@ -270,6 +270,11 @@ void V8Printer::emitGlobalConstant(const Constant *CV) {
|
||||
unsigned size = TD.getTypeSize (CV->getType ());
|
||||
O << "\t.skip\t " << size << "\n";
|
||||
return;
|
||||
} else if (isa<ConstantAggregateZero> (CV)) {
|
||||
unsigned size = TD.getTypeSize (CV->getType ());
|
||||
for (unsigned i = 0; i < size; ++i)
|
||||
O << "\t.byte 0\n";
|
||||
return;
|
||||
}
|
||||
|
||||
const Type *type = CV->getType();
|
||||
|
Loading…
x
Reference in New Issue
Block a user