From 829400bb22fc72d291fd3e5057b0880d7b09aafa Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 30 Jan 2012 05:55:11 +0000 Subject: [PATCH] when verbose asm is on, print integers in ConstantDataSequentials just like normal integers. llvm-svn: 149223 --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index f0733a35b601..78f3f1d32a73 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(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); }