[llvm-commits] [llvm] r74235 - in /llvm/trunk/lib/Target/Alpha: AlphaRegisterInfo.cpp AlphaRegisterInfo.h

Owen Anderson resistor at mac.com
Thu Jun 25 17:17:07 PDT 2009


Author: resistor
Date: Thu Jun 25 19:17:05 2009
New Revision: 74235

URL: http://llvm.org/viewvc/llvm-project?rev=74235&view=rev
Log:
Committed the wrong version in my last commit.

Modified:
    llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.cpp
    llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.h

Modified: llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.cpp?rev=74235&r1=74234&r2=74235&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.cpp Thu Jun 25 19:17:05 2009
@@ -54,7 +54,7 @@
 
 AlphaRegisterInfo::AlphaRegisterInfo(const TargetInstrInfo &tii)
   : AlphaGenRegisterInfo(Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP),
-    TII(tii)
+    TII(tii), curgpdist(0)
 {
 }
 
@@ -206,8 +206,6 @@
                  MBBI->getDebugLoc() : DebugLoc::getUnknownLoc());
   bool FP = hasFP(MF);
 
-  static int curgpdist = 0;
-
   //handle GOP offset
   BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAHg), Alpha::R29)
     .addGlobalAddress(const_cast<Function*>(MF.getFunction()))

Modified: llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.h?rev=74235&r1=74234&r2=74235&view=diff

==============================================================================
--- llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.h (original)
+++ llvm/trunk/lib/Target/Alpha/AlphaRegisterInfo.h Thu Jun 25 19:17:05 2009
@@ -62,7 +62,7 @@
   static std::string getPrettyName(unsigned reg);
   
 private:
-  int curgpdist;
+  mutable int curgpdist;
 };
 
 } // end namespace llvm





More information about the llvm-commits mailing list