[WebAssembly] Handle debug information and virtual registers without crashing (reland...
authorDominic Chen <d.c.ddcc@gmail.com>
Wed, 17 Aug 2016 23:42:27 +0000 (23:42 +0000)
committerDominic Chen <d.c.ddcc@gmail.com>
Wed, 17 Aug 2016 23:42:27 +0000 (23:42 +0000)
commita8a638292ced193f5e00dd1e087b46790cf540cb
tree25956cc962bdbe63f26a3ec8f6e3713ba99bbc0f
parent334ac36e667273c641eaf22e39511eddd6432752
[WebAssembly] Handle debug information and virtual registers without crashing (reland r278967)

Summary: Currently, enabling debug information when compiling for WebAssembly crashes the backend. This commit fixes these by skipping debug values in backend passes.

Reviewers: jfb, aprantl, dschuff, echristo

Subscribers: llvm-commits, dschuff, jfb, MatzeB, dexonsmith, yurydelendik, mehdi_amini

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

llvm-svn: 279011
llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
llvm/lib/Target/WebAssembly/WebAssemblyReplacePhysRegs.cpp
llvm/lib/Target/WebAssembly/WebAssemblyStoreResults.cpp
llvm/test/DebugInfo/WebAssembly/dbg-declare.ll [new file with mode: 0644]
llvm/test/DebugInfo/WebAssembly/lit.local.cfg [new file with mode: 0644]