mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[Sparc] Enable xword directive in sparcv9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188141 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d080fb103f
commit
d8de58e24c
@ -21,18 +21,21 @@ void SparcELFMCAsmInfo::anchor() { }
|
||||
SparcELFMCAsmInfo::SparcELFMCAsmInfo(StringRef TT) {
|
||||
IsLittleEndian = false;
|
||||
Triple TheTriple(TT);
|
||||
if (TheTriple.getArch() == Triple::sparcv9) {
|
||||
bool isV9 = (TheTriple.getArch() == Triple::sparcv9);
|
||||
|
||||
if (isV9) {
|
||||
PointerSize = CalleeSaveStackSlotSize = 8;
|
||||
}
|
||||
|
||||
Data16bitsDirective = "\t.half\t";
|
||||
Data32bitsDirective = "\t.word\t";
|
||||
Data64bitsDirective = 0; // .xword is only supported by V9.
|
||||
// .xword is only supported by V9.
|
||||
Data64bitsDirective = (isV9) ? "\t.xword\t" : 0;
|
||||
ZeroDirective = "\t.skip\t";
|
||||
CommentString = "!";
|
||||
HasLEB128 = true;
|
||||
SupportsDebugInformation = true;
|
||||
|
||||
|
||||
SunStyleELFSectionSwitchSyntax = true;
|
||||
UsesELFSectionDirectiveForBSS = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user