[llvm] r333462 - Fix build error introduced in rL333459

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue May 29 13:16:47 PDT 2018


Author: sbc
Date: Tue May 29 13:16:47 2018
New Revision: 333462

URL: http://llvm.org/viewvc/llvm-project?rev=333462&view=rev
Log:
Fix build error introduced in rL333459

The DEBUG macro was renamed LLVM_DEBUG.

Modified:
    llvm/trunk/lib/Object/WasmObjectFile.cpp

Modified: llvm/trunk/lib/Object/WasmObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WasmObjectFile.cpp?rev=333462&r1=333461&r2=333462&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp Tue May 29 13:16:47 2018
@@ -207,7 +207,7 @@ static Error readSection(WasmSection &Se
                          WasmObjectFile::ReadContext &Ctx) {
   Section.Offset = Ctx.Ptr - Ctx.Start;
   Section.Type = readUint8(Ctx);
-  DEBUG(dbgs() << "readSection type=" << Section.Type << "\n");
+  LLVM_DEBUG(dbgs() << "readSection type=" << Section.Type << "\n");
   uint32_t Size = readVaruint32(Ctx);
   if (Size == 0)
     return make_error<StringError>("Zero length section",
@@ -366,7 +366,8 @@ Error WasmObjectFile::parseLinkingSectio
     Ctx.End = OrigEnd;
     uint8_t Type = readUint8(Ctx);
     uint32_t Size = readVaruint32(Ctx);
-    DEBUG(dbgs() << "readSubsection type=" << int(Type) << " size=" << Size << "\n");
+    LLVM_DEBUG(dbgs() << "readSubsection type=" << int(Type) << " size=" << Size
+                      << "\n");
     Ctx.End = Ctx.Ptr + Size;
     switch (Type) {
     case wasm::WASM_SYMBOL_TABLE:




More information about the llvm-commits mailing list