mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-08 18:30:04 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26c63eebd8
commit
27a03699ae
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user