aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commitb66fb5acbe4bfde5264fdbbfe7f9f478ed94c68d (patch)
tree6f742b7745f1f096ecb74790f09cb9e64e19852f /lib/CodeGen
parent6e64c381daa30a63608bfa3443e67c39e6df2d64 (diff)
downloadexternal_llvm-b66fb5acbe4bfde5264fdbbfe7f9f478ed94c68d.zip
external_llvm-b66fb5acbe4bfde5264fdbbfe7f9f478ed94c68d.tar.gz
external_llvm-b66fb5acbe4bfde5264fdbbfe7f9f478ed94c68d.tar.bz2
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index f0733a3..78f3f1d 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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);
}