summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-30 05:55:11 +0000
committerChris Lattner <sabre@nondot.org>2012-01-30 05:55:11 +0000
commit829400bb22fc72d291fd3e5057b0880d7b09aafa (patch)
tree82201c98ed6ff2e55ee058b65f632f52d879e041
parent51ebe14a36e4b78d9a709eaf0ec2cd10fff39f4a (diff)
downloadbcm5719-llvm-829400bb22fc72d291fd3e5057b0880d7b09aafa.tar.gz
bcm5719-llvm-829400bb22fc72d291fd3e5057b0880d7b09aafa.zip
when verbose asm is on, print integers in ConstantDataSequentials just
like normal integers. llvm-svn: 149223
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index f0733a35b60..78f3f1d32a7 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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);
}
OpenPOWER on IntegriCloud