[lld] r322337 - [WebAssembly] Reduce output of --verbose
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 16:34:04 PST 2018
Author: sbc
Date: Thu Jan 11 16:34:04 2018
New Revision: 322337
URL: http://llvm.org/viewvc/llvm-project?rev=322337&view=rev
Log:
[WebAssembly] Reduce output of --verbose
Modified:
lld/trunk/wasm/InputChunks.cpp
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/InputChunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputChunks.cpp?rev=322337&r1=322336&r2=322337&view=diff
==============================================================================
--- lld/trunk/wasm/InputChunks.cpp (original)
+++ lld/trunk/wasm/InputChunks.cpp Thu Jan 11 16:34:04 2018
@@ -78,7 +78,7 @@ static void applyRelocation(uint8_t *Buf
static void applyRelocations(uint8_t *Buf, ArrayRef<OutputRelocation> Relocs) {
if (!Relocs.size())
return;
- log("applyRelocations: count=" + Twine(Relocs.size()));
+ DEBUG(dbgs() << "applyRelocations: count=" << Relocs.size() << "\n");
for (const OutputRelocation &Reloc : Relocs)
applyRelocation(Buf, Reloc);
}
@@ -93,7 +93,8 @@ void InputChunk::writeTo(uint8_t *Sectio
// as well as the value to write out in the final binary.
void InputChunk::calcRelocations() {
int32_t Off = getOutputOffset() - getInputSectionOffset();
- log("calcRelocations: " + File.getName() + " offset=" + Twine(Off));
+ DEBUG(dbgs() << "calcRelocations: " << File.getName()
+ << " offset=" << Twine(Off) << "\n");
for (const WasmRelocation &Reloc : Relocations) {
OutputRelocation NewReloc;
NewReloc.Reloc = Reloc;
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=322337&r1=322336&r2=322337&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Thu Jan 11 16:34:04 2018
@@ -299,7 +299,7 @@ void Writer::createExportSection() {
}
for (const Symbol *Sym : SymbolExports) {
- log("Export: " + Sym->getName());
+ DEBUG(dbgs() << "Export: " << Sym->getName() << "\n");
WasmExport Export;
Export.Name = Sym->getName();
Export.Index = Sym->getOutputIndex();
@@ -492,7 +492,7 @@ void Writer::layoutMemory() {
for (OutputSegment *Seg : Segments) {
MemoryPtr = alignTo(MemoryPtr, Seg->Alignment);
Seg->StartVA = MemoryPtr;
- debugPrint("mem: %-10s offset=%-8d size=%-4d align=%d\n",
+ debugPrint("mem: %-15s offset=%-8d size=%-8d align=%d\n",
Seg->Name.str().c_str(), MemoryPtr, Seg->Size, Seg->Alignment);
MemoryPtr += Seg->Size;
}
More information about the llvm-commits
mailing list