summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/MCTargetDesc
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-01-23 16:22:04 +0000
committerEli Bendersky <eliben@google.com>2013-01-23 16:22:04 +0000
commit32aab2216d2f0e21d1aa48b07800701579ade7e8 (patch)
treef339faf81be08b0a64aae1812e6addbc75dad914 /llvm/lib/Target/Sparc/MCTargetDesc
parentf930448bf61bd5f35a8fe90a90336d07598655c2 (diff)
downloadbcm5719-llvm-32aab2216d2f0e21d1aa48b07800701579ade7e8.tar.gz
bcm5719-llvm-32aab2216d2f0e21d1aa48b07800701579ade7e8.zip
Clean up assignment of CalleeSaveStackSlotSize: get rid of the default and explicitly set this in every target that needs to change it from the default.
llvm-svn: 173270
Diffstat (limited to 'llvm/lib/Target/Sparc/MCTargetDesc')
-rw-r--r--llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp b/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp
index f5e10fc3a46..3d4bfdcd5e6 100644
--- a/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp
+++ b/llvm/lib/Target/Sparc/MCTargetDesc/SparcMCAsmInfo.cpp
@@ -21,8 +21,9 @@ void SparcELFMCAsmInfo::anchor() { }
SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, StringRef TT) {
IsLittleEndian = false;
Triple TheTriple(TT);
- if (TheTriple.getArch() == Triple::sparcv9)
- PointerSize = 8;
+ if (TheTriple.getArch() == Triple::sparcv9) {
+ PointerSize = CalleeSaveStackSlotSize = 8;
+ }
Data16bitsDirective = "\t.half\t";
Data32bitsDirective = "\t.word\t";
OpenPOWER on IntegriCloud