Add stack alignment information for Sparc.
[oota-llvm.git] / lib / Target / Sparc / SparcTargetMachine.cpp
index 172bb66b7c8c77de5396c06b78264f39a2fd3920..ac26765aecfcd5d65d0d7f98d9658813b913cded 100644 (file)
@@ -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;
 }