summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-07-27 20:46:51 +0000
committerJF Bastien <jfb@google.com>2015-07-27 20:46:51 +0000
commit1a12bf1aa27bf9143594cf04fcb7c9d68e8f68c3 (patch)
treedd27741be5d250a39e7d430aaf89cdfcf3d9d734 /llvm/lib/Target/WebAssembly
parentc363e7d8e0761a032a3e46183765528a1c658982 (diff)
downloadbcm5719-llvm-1a12bf1aa27bf9143594cf04fcb7c9d68e8f68c3.tar.gz
bcm5719-llvm-1a12bf1aa27bf9143594cf04fcb7c9d68e8f68c3.zip
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 llvm-svn: 243326
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r--llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
index 55346f71c6f..5a54b3a24c8 100644
--- a/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
+++ b/llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
@@ -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";
OpenPOWER on IntegriCloud