From f4f37509493f6666e4703fa9fb3714d1aad096bb Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 29 May 2018 20:16:47 +0000 Subject: Fix build error introduced in rL333459 The DEBUG macro was renamed LLVM_DEBUG. llvm-svn: 333462 --- llvm/lib/Object/WasmObjectFile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Object/WasmObjectFile.cpp') diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 25baf5c987f..f822d07a253 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -207,7 +207,7 @@ static Error readSection(WasmSection &Section, 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("Zero length section", @@ -366,7 +366,8 @@ Error WasmObjectFile::parseLinkingSection(ReadContext &Ctx) { 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: -- cgit v1.2.3