OSDN Git Service

add an accessor.
authorChris Lattner <sabre@nondot.org>
Mon, 26 Feb 2007 04:01:25 +0000 (04:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Feb 2007 04:01:25 +0000 (04:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34625 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.h

index ae01368..06e4635 100644 (file)
@@ -288,6 +288,10 @@ namespace llvm {
     // to this function.
     unsigned getBytesCallerReserves() const { return BytesCallerReserves; }
  
+    /// getStackPtrReg - Return the stack pointer register we are using: either
+    /// ESP or RSP.
+    unsigned getStackPtrReg() const { return X86StackPtr; }
+    
     /// LowerOperation - Provide custom lowering hooks for some operations.
     ///
     virtual SDOperand LowerOperation(SDOperand Op, SelectionDAG &DAG);