Add a parameter to MipsTargetCodeGenInfo's constructor.

llvm-svn: 140161
This commit is contained in:
Akira Hatanaka 2011-09-20 18:23:28 +00:00
parent 52363bdbeb
commit 0486db08bd
1 changed files with 5 additions and 4 deletions

View File

@ -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: