[Lldb-commits] [lldb] r226231 - Add comment regarding which i386 registers are non-volatile instead of
Jason Molenda
jmolenda at apple.com
Thu Jan 15 16:27:25 PST 2015
Author: jmolenda
Date: Thu Jan 15 18:27:25 2015
New Revision: 226231
URL: http://llvm.org/viewvc/llvm-project?rev=226231&view=rev
Log:
Add comment regarding which i386 registers are non-volatile instead of
just pointing to the standard document regarding this.
Modified:
lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp
Modified: lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp?rev=226231&r1=226230&r2=226231&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp (original)
+++ lldb/trunk/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp Thu Jan 15 18:27:25 2015
@@ -786,6 +786,11 @@ ABIMacOSX_i386::RegisterIsVolatile (cons
}
// v. http://developer.apple.com/library/mac/#documentation/developertools/Conceptual/LowLevelABI/130-IA-32_Function_Calling_Conventions/IA32.html#//apple_ref/doc/uid/TP40002492-SW4
+//
+// This document ("OS X ABI Function Call Guide", chapter "IA-32 Function Calling Conventions")
+// says that the following registers on i386 are preserved aka non-volatile aka callee-saved:
+//
+// ebx, ebp, esi, edi, esp
bool
ABIMacOSX_i386::RegisterIsCalleeSaved (const RegisterInfo *reg_info)
More information about the lldb-commits
mailing list