[WebAssembly] Fix casting MCSymbol to MCSymbolWasm on ELF
authorJacob Gravelle <jgravelle@google.com>
Mon, 12 Feb 2018 21:41:12 +0000 (21:41 +0000)
committerJacob Gravelle <jgravelle@google.com>
Mon, 12 Feb 2018 21:41:12 +0000 (21:41 +0000)
commitca358da5e796ef8ae19e4651b758a61ea72d2bfe
treea7b8fa6ab01ff0d070e4f09c91139521305b111c
parent014c000f6aa84528dfe492bfb02a04ef2993b98c
[WebAssembly] Fix casting MCSymbol to MCSymbolWasm on ELF

Summary:
wasm32-unknown-unknown-elf has MCSymbols that are not MCSymbolWasms, so
we need a non-asserting cast here.

Reviewers: dschuff, sunfish

Subscribers: jfb, sbc100, aheejin, llvm-commits

Differential Revision: https://reviews.llvm.org/D43205

llvm-svn: 324942
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp