mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 02:22:29 +00:00
when verbose asm is on, print integers in ConstantDataSequentials just
like normal integers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1626,6 +1626,9 @@ static void EmitGlobalConstantDataSequential(const ConstantDataSequential *CDS,
|
|||||||
unsigned ElementByteSize = CDS->getElementByteSize();
|
unsigned ElementByteSize = CDS->getElementByteSize();
|
||||||
if (isa<IntegerType>(CDS->getElementType())) {
|
if (isa<IntegerType>(CDS->getElementType())) {
|
||||||
for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) {
|
for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) {
|
||||||
|
if (AP.isVerbose())
|
||||||
|
AP.OutStreamer.GetCommentOS() << format("0x%" PRIx64 "\n",
|
||||||
|
CDS->getElementAsInteger(i));
|
||||||
AP.OutStreamer.EmitIntValue(CDS->getElementAsInteger(i),
|
AP.OutStreamer.EmitIntValue(CDS->getElementAsInteger(i),
|
||||||
ElementByteSize, AddrSpace);
|
ElementByteSize, AddrSpace);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user