when verbose asm is on, print integers in ConstantDataSequentials just

like normal integers.

llvm-svn: 149223
This commit is contained in:
Chris Lattner 2012-01-30 05:55:11 +00:00
parent 51ebe14a36
commit 829400bb22
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}