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 | b50bf5a0e3ceef14be46c0618dadf0902aec0a06 (patch) | |
| tree | 779922f81073cf5d748788cb9ff1b6c1ff7cac7f | |
| parent | f55e5e7954971dfc972e3007ee7d9f12b2541201 (diff) | |
| download | bcm5719-llvm-b50bf5a0e3ceef14be46c0618dadf0902aec0a06.tar.gz bcm5719-llvm-b50bf5a0e3ceef14be46c0618dadf0902aec0a06.zip | |
[Sparc] Enable xword directive in sparcv9.
llvm-svn: 188141
| -rw-r--r-- | llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp b/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp index 5a52abee03a..45cfe033bb9 100644 --- a/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp +++ b/llvm/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; |

