diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2011-11-03 00:05:50 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-11-03 00:05:50 +0000 |
commit | 756ce7f9ab55c531a6cfcd3fdba6cb784e7b67a3 (patch) | |
tree | 35f9553da7acb262f72f20bfa05b825a595b650d | |
parent | 101f70da7cfb0258a14674cd1a9d7eae0caa0dec (diff) | |
download | bcm5719-llvm-756ce7f9ab55c531a6cfcd3fdba6cb784e7b67a3.tar.gz bcm5719-llvm-756ce7f9ab55c531a6cfcd3fdba6cb784e7b67a3.zip |
Set MinABIStackAlignInBytes to 8 if ABI is N32/64.
llvm-svn: 143597
-rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 83cddb2d80a..2bd341ce218 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -2992,11 +2992,12 @@ void MSP430TargetCodeGenInfo::SetTargetAttributes(const Decl *D, namespace { class MipsABIInfo : public ABIInfo { - static const unsigned MinABIStackAlignInBytes = 4; bool IsO32; + unsigned MinABIStackAlignInBytes; llvm::Type* HandleStructTy(QualType Ty) const; public: - MipsABIInfo(CodeGenTypes &CGT, bool _IsO32) : ABIInfo(CGT), IsO32(_IsO32) {} + MipsABIInfo(CodeGenTypes &CGT, bool _IsO32) : + ABIInfo(CGT), IsO32(_IsO32), MinABIStackAlignInBytes(IsO32 ? 4 : 8) {} ABIArgInfo classifyReturnType(QualType RetTy) const; ABIArgInfo classifyArgumentType(QualType RetTy) const; @@ -3005,8 +3006,6 @@ public: CodeGenFunction &CGF) const; }; -const unsigned MipsABIInfo::MinABIStackAlignInBytes; - class MIPSTargetCodeGenInfo : public TargetCodeGenInfo { unsigned SizeOfUnwindException; public: |