2015-07-18 01:05:36 +00:00
|
|
|
//===-- WDC65816MCAsmInfo.cpp - WDC65816 asm properties -------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the declarations of the WDC65816MCAsmInfo properties.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "WDC65816MCAsmInfo.h"
|
|
|
|
#include "llvm/ADT/Triple.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2016-04-20 03:39:53 +00:00
|
|
|
void WDC65816MCAsmInfo::anchor() { }
|
2015-07-18 01:05:36 +00:00
|
|
|
|
2016-04-20 03:39:53 +00:00
|
|
|
WDC65816MCAsmInfo::WDC65816MCAsmInfo(StringRef TT) {
|
2015-07-18 01:05:36 +00:00
|
|
|
IsLittleEndian = true;
|
|
|
|
Triple TheTriple(TT);
|
|
|
|
|
|
|
|
PointerSize = CalleeSaveStackSlotSize = 4;
|
|
|
|
|
2016-04-20 03:39:53 +00:00
|
|
|
// Disable the ".file <filename>" parameter
|
|
|
|
HasSingleParameterDotFile = false;
|
|
|
|
|
2015-07-18 01:05:36 +00:00
|
|
|
#if 0 // WDC_TODO - Do I need any of this?
|
|
|
|
Data16bitsDirective = "\t.half\t";
|
|
|
|
Data32bitsDirective = "\t.word\t";
|
|
|
|
// .xword is only supported by V9.
|
|
|
|
Data64bitsDirective = (isV9) ? "\t.xword\t" : 0;
|
|
|
|
ZeroDirective = "\t.skip\t";
|
|
|
|
CommentString = "!";
|
|
|
|
HasLEB128 = true;
|
|
|
|
SupportsDebugInformation = true;
|
|
|
|
|
|
|
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
|
|
|
|
|
|
|
SunStyleELFSectionSwitchSyntax = true;
|
|
|
|
UsesELFSectionDirectiveForBSS = true;
|
|
|
|
|
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|