[WebAssembly] NDEBUG is spelled without a leading underscore.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Feb 2018 12:20:18 +0000 (12:20 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Feb 2018 12:20:18 +0000 (12:20 +0000)
llvm-svn: 325893

llvm/tools/yaml2obj/yaml2wasm.cpp

index a54936b..abd1d42 100644 (file)
@@ -146,7 +146,7 @@ int WasmWriter::writeSectionContent(raw_ostream &OS, WasmYAML::LinkingSection &S
     encodeULEB128(wasm::WASM_SYMBOL_TABLE, OS);
 
     encodeULEB128(Section.SymbolTable.size(), SubSection.GetStream());
-#ifndef _NDEBUG
+#ifndef NDEBUG
     uint32_t SymbolIndex = 0;
 #endif
     for (const WasmYAML::SymbolInfo &Info : Section.SymbolTable) {