[WebAssembly] Pass ownership of body to SyntheticFunction. NFC
authorNicholas Wilson <nicholas@nicholaswilson.me.uk>
Fri, 2 Mar 2018 14:48:50 +0000 (14:48 +0000)
committerNicholas Wilson <nicholas@nicholaswilson.me.uk>
Fri, 2 Mar 2018 14:48:50 +0000 (14:48 +0000)
commitf6dbc2edee0f26d49773db3ce6c450d23f572f12
tree69676f6e64a9100ed1b5ef2e3c734e6cc1d0ca68
parentcb81a0c9d9d10a1a7e1882846038c84b321861a3
[WebAssembly] Pass ownership of body to SyntheticFunction. NFC

This avoids the Writer unnecessarily having a member to retain ownership
of the function body.

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

llvm-svn: 326580
lld/wasm/InputChunks.h
lld/wasm/Writer.cpp