[llvm] r243326 - WebAssembly: minor MCAsmInfo fixes
JF Bastien
jfb at google.com
Mon Jul 27 13:46:52 PDT 2015
Author: jfb
Date: Mon Jul 27 15:46:51 2015
New Revision: 243326
URL: http://llvm.org/viewvc/llvm-project?rev=243326&view=rev
Log:
WebAssembly: minor MCAsmInfo fixes
Summary:
Fix pointer / callee-save stack sto size.
Update comment character to be LISP-ish.
Subscribers: llvm-commits, sunfish, jfb
Differential Revision: http://reviews.llvm.org/D11537
Modified:
llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp?rev=243326&r1=243325&r2=243326&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp Mon Jul 27 15:46:51 2015
@@ -23,13 +23,20 @@ using namespace llvm;
WebAssemblyMCAsmInfo::~WebAssemblyMCAsmInfo() {}
WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(const Triple &T) {
- PointerSize = CalleeSaveStackSlotSize = T.isArch64Bit();
+ PointerSize = CalleeSaveStackSlotSize = T.isArch64Bit() ? 8 : 4;
// TODO: What should MaxInstLength be?
+ // WebAssembly's text format uses s-expressions to represent its AST,
+ // LISP-style comments are therefore suitable.
+ CommentString = ";";
+
PrivateGlobalPrefix = "";
PrivateLabelPrefix = "";
+ InlineAsmStart = ";APP\n";
+ InlineAsmEnd = ";NO_APP\n";
+
UseDataRegionDirectives = true;
Data8bitsDirective = "\t.int8\t";
More information about the llvm-commits
mailing list