projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
210f0e8
)
Fix release build breakage
author
Sam Clegg
<sbc@chromium.org>
Wed, 2 May 2018 00:10:28 +0000
(
00:10
+0000)
committer
Sam Clegg
<sbc@chromium.org>
Wed, 2 May 2018 00:10:28 +0000
(
00:10
+0000)
This function was added in rL331220 but wasn't
testing in release configurations.
llvm-svn: 331320
llvm/lib/MC/WasmObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/WasmObjectWriter.cpp
b/llvm/lib/MC/WasmObjectWriter.cpp
index
b3f3a34
..
ff1ea78
100644
(file)
--- 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) {