diff options
author | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-08-10 20:13:20 +0000 |
---|---|---|
committer | Venkatraman Govindaraju <venkatra@cs.wisc.edu> | 2013-08-10 20:13:20 +0000 |
commit | d8de58e24cf5874c0d6f903d15333406787ea944 (patch) | |
tree | 1aaad78c78a8b5b620713096a751f4e9ccb1947a | |
parent | d080fb103fdc18c4e4b8977fd3fb4e0eef18adcf (diff) | |
download | llvm-d8de58e24cf5874c0d6f903d15333406787ea944.tar.gz llvm-d8de58e24cf5874c0d6f903d15333406787ea944.tar.bz2 llvm-d8de58e24cf5874c0d6f903d15333406787ea944.tar.xz |
[Sparc] Enable xword directive in sparcv9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188141 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp b/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp index 5a52abee03..45cfe033bb 100644 --- a/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp +++ b/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp @@ -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; |