mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
when verbose asm is on, print integers in ConstantDataSequentials just
like normal integers. llvm-svn: 149223
This commit is contained in:
parent
7bce4c0fde
commit
95a4f58d65
@ -1626,6 +1626,9 @@ static void EmitGlobalConstantDataSequential(const ConstantDataSequential *CDS,
|
||||
unsigned ElementByteSize = CDS->getElementByteSize();
|
||||
if (isa<IntegerType>(CDS->getElementType())) {
|
||||
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),
|
||||
ElementByteSize, AddrSpace);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user