OSDN Git Service

[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)
commit0d25ba137fc370ec02c8b0b20b0cc4dc22da28c7
tree0b9f79ef0eeeaa1d897f3fea4ca3a786f23ebd6c
parent9d75b0c4830183e1b133cf8ed4f000c21acf9a02
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp