[llvm] r331320 - Fix release build breakage
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Tue May 1 17:10:29 PDT 2018
Author: sbc
Date: Tue May 1 17:10:28 2018
New Revision: 331320
URL: http://llvm.org/viewvc/llvm-project?rev=331320&view=rev
Log:
Fix release build breakage
This function was added in rL331220 but wasn't
testing in release configurations.
Modified:
llvm/trunk/lib/MC/WasmObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WasmObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WasmObjectWriter.cpp?rev=331320&r1=331319&r2=331320&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WasmObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WasmObjectWriter.cpp Tue May 1 17:10:28 2018
@@ -37,6 +37,7 @@ using namespace llvm;
#define DEBUG_TYPE "mc"
+#if !defined(NDEBUG)
static std::string toString(wasm::WasmSymbolType type) {
switch (type) {
case wasm::WASM_SYMBOL_TYPE_FUNCTION:
@@ -50,6 +51,7 @@ static std::string toString(wasm::WasmSy
}
llvm_unreachable("unknown symbol type");
}
+#endif
static std::string relocTypetoString(uint32_t type) {
switch (type) {
More information about the llvm-commits
mailing list