]> granicus.if.org Git - clang/commitdiff
Add a parameter to MipsTargetCodeGenInfo's constructor.
authorAkira Hatanaka <ahatanak@gmail.com>
Tue, 20 Sep 2011 18:23:28 +0000 (18:23 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Tue, 20 Sep 2011 18:23:28 +0000 (18:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140161 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInfo.cpp

index 31234aa42501468403b10b9068f9b4829e227aa4..b6abc65c8149d7c42a01b31fa85c7a0d4d442201 100644 (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: