[PATCH] D54096: [WebAssembly] Add support for the event section
Derek Schuff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 7 15:12:00 PST 2018
dschuff added inline comments.
================
Comment at: lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp:102
+ // weak.
+ WasmSym->setWeak(true); // TODO aheejin how to set odr?
+ WasmSym->setExternal(true);
----------------
sbc100 wrote:
> dschuff wrote:
> > I guess this answers my question above.
> > We could have this symbol weakly defined in throwing/catching object files, and then strongly defined in libcxxabi? Or we could use a COMDAT?
> Why would need a strong definition in libcxxabi? For that matter there is no syntax for defining it in code so I'm not sure how we would do that (assembly I guess?)
Sorry I was thinking of extern_weak. Then you would need a definition. But yeah weakly-defined should work here. And yeah, there's no way to define an event-type symbol in C, but assembly syntax should support it.
Repository:
rL LLVM
https://reviews.llvm.org/D54096
More information about the llvm-commits
mailing list