Index: llvm/lib/Target/X86/X86MachineFunctionInfo.h
--- llvm/lib/Target/X86/X86MachineFunctionInfo.h.orig
+++ llvm/lib/Target/X86/X86MachineFunctionInfo.h
@@ -78,6 +78,9 @@ class X86MachineFunctionInfo : public MachineFunctionI
   /// stack frame in bytes.
   unsigned CalleeSavedFrameSize = 0;
 
+  // SaveArgSize - Number of register arguments saved on the stack
+  unsigned SaveArgSize = 0;
+
   /// BytesToPopOnReturn - Number of bytes function pops on return (in addition
   /// to the space used by the return address).
   /// Used on windows platform for stdcall & fastcall name decoration
@@ -209,6 +212,9 @@ class X86MachineFunctionInfo : public MachineFunctionI
     return CalleeSavedFrameSize + 8 * padForPush2Pop2();
   }
   void setCalleeSavedFrameSize(unsigned bytes) { CalleeSavedFrameSize = bytes; }
+
+  unsigned getSaveArgSize() const { return SaveArgSize; }
+  void setSaveArgSize(unsigned bytes) { SaveArgSize = bytes; }
 
   unsigned getBytesToPopOnReturn() const { return BytesToPopOnReturn; }
   void setBytesToPopOnReturn (unsigned bytes) { BytesToPopOnReturn = bytes;}
