diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-09-20 18:23:28 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-09-20 18:23:28 +0000 |
commit | e624fa02b2c2c614b3a27a25516885fc64e07001 (patch) | |
tree | 793bb88fdf2bfa30599da31cb6df5abda0f0d080 /lib/CodeGen/TargetInfo.cpp | |
parent | f7572a64a1e5f6f700527583ec5206a58ce6d9b6 (diff) |
Add a parameter to MipsTargetCodeGenInfo's constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp index 31234aa425..b6abc65c81 100644 --- a/lib/CodeGen/TargetInfo.cpp +++ b/lib/CodeGen/TargetInfo.cpp @@ -3021,9 +3021,10 @@ public: const unsigned MipsABIInfo::MinABIStackAlignInBytes; class MIPSTargetCodeGenInfo : public TargetCodeGenInfo { + unsigned SizeOfUnwindException; public: - MIPSTargetCodeGenInfo(CodeGenTypes &CGT) - : TargetCodeGenInfo(new MipsABIInfo(CGT)) {} + MIPSTargetCodeGenInfo(CodeGenTypes &CGT, unsigned SZ) + : TargetCodeGenInfo(new MipsABIInfo(CGT)), SizeOfUnwindException(SZ) {} int getDwarfEHStackPointer(CodeGen::CodeGenModule &CGM) const { return 29; @@ -3033,7 +3034,7 @@ public: llvm::Value *Address) const; unsigned getSizeOfUnwindException() const { - return 24; + return SizeOfUnwindException; } }; } @@ -3169,7 +3170,7 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { case llvm::Triple::mips: case llvm::Triple::mipsel: - return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types)); + return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types, 24)); case llvm::Triple::arm: case llvm::Triple::thumb: |