[cfe-commits] r140161 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp

Akira Hatanaka ahatanak at gmail.com
Tue Sep 20 11:23:28 PDT 2011


Author: ahatanak
Date: Tue Sep 20 13:23:28 2011
New Revision: 140161

URL: http://llvm.org/viewvc/llvm-project?rev=140161&view=rev
Log:
Add a parameter to MipsTargetCodeGenInfo's constructor.



Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=140161&r1=140160&r2=140161&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Tue Sep 20 13:23:28 2011
@@ -3021,9 +3021,10 @@
 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 @@
                                llvm::Value *Address) const;
 
   unsigned getSizeOfUnwindException() const {
-    return 24;
+    return SizeOfUnwindException;
   }
 };
 }
@@ -3169,7 +3170,7 @@
 
   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:





More information about the cfe-commits mailing list