diff options
author | Sam Clegg <sbc@chromium.org> | 2018-05-02 00:10:28 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-05-02 00:10:28 +0000 |
commit | d1f0910a54e1f21c6c65e6b5e46459c9a26c44a7 (patch) | |
tree | fe1cb25b5e5590ebffbfd122d584c4a7594eadb9 | |
parent | 210f0e880b2ecd0b9252c120839ac6ea115f2ce5 (diff) | |
download | bcm5719-llvm-d1f0910a54e1f21c6c65e6b5e46459c9a26c44a7.tar.gz bcm5719-llvm-d1f0910a54e1f21c6c65e6b5e46459c9a26c44a7.zip |
Fix release build breakage
This function was added in rL331220 but wasn't
testing in release configurations.
llvm-svn: 331320
-rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index b3f3a34a2dd..ff1ea788047 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -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::WasmSymbolType type) { } llvm_unreachable("unknown symbol type"); } +#endif static std::string relocTypetoString(uint32_t type) { switch (type) { |