This is an archive of the discontinued LLVM Phabricator instance.

WebAssembly: minor MCAsmInfo fixes
ClosedPublic

Authored by jfb on Jul 27 2015, 1:47 PM.

Details

Summary

Fix pointer / callee-save stack sto size.
Update comment character to be LISP-ish.

Diff Detail

Repository
rL LLVM

Event Timeline

jfb updated this revision to Diff 30730.Jul 27 2015, 1:47 PM
jfb retitled this revision from to WebAssembly: minor MCAsmInfo fixes.
jfb updated this object.
jfb added subscribers: sunfish, llvm-commits.
This revision was automatically updated to reflect the committed changes.
sunfish added inline comments.Jul 27 2015, 2:28 PM
llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
31

I'm ok using ';', but I suggest this comment just say something like "The s-expression format of WebAssembly uses LISP-style comments" since there may be other text formats, and since design justifications belong on the WebAssembly side rather than the LLVM side.

38

It looks like asm strings are by default printed with emitRawComment which includes the comment character and newline. Do we need to override the defaults for these strings?

jfb marked an inline comment as done.Jul 27 2015, 3:41 PM

Follow-up in D11544.

llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
38

Ah you're right, fixed in follow-up.