projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add stack alignment information for Sparc.
[oota-llvm.git]
/
lib
/
Target
/
Sparc
/
SparcTargetMachine.cpp
diff --git
a/lib/Target/Sparc/SparcTargetMachine.cpp
b/lib/Target/Sparc/SparcTargetMachine.cpp
index 172bb66b7c8c77de5396c06b78264f39a2fd3920..ac26765aecfcd5d65d0d7f98d9658813b913cded 100644
(file)
--- a/
lib/Target/Sparc/SparcTargetMachine.cpp
+++ b/
lib/Target/Sparc/SparcTargetMachine.cpp
@@
-41,6
+41,11
@@
static std::string computeDataLayout(const SparcSubtarget &ST) {
else
Ret += "-f128:64-n32";
+ if (ST.is64Bit())
+ Ret += "-S128";
+ else
+ Ret += "-S64";
+
return Ret;
}