Committed the wrong version in my last commit.
authorOwen Anderson <resistor@mac.com>
Fri, 26 Jun 2009 00:17:05 +0000 (00:17 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 26 Jun 2009 00:17:05 +0000 (00:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74235 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaRegisterInfo.cpp
lib/Target/Alpha/AlphaRegisterInfo.h

index feee6e467f47fbd64c7a60792f56bb5cb87af2e7..0ff53c7cc309c5b01b8ba7c6fe70cbb493e4c588 100644 (file)
@@ -54,7 +54,7 @@ static long getLower16(long l)
 
 AlphaRegisterInfo::AlphaRegisterInfo(const TargetInstrInfo &tii)
   : AlphaGenRegisterInfo(Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP),
-    TII(tii)
+    TII(tii), curgpdist(0)
 {
 }
 
@@ -206,8 +206,6 @@ void AlphaRegisterInfo::emitPrologue(MachineFunction &MF) const {
                  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()))
index c9ae4b7fc33c2ade0bd2c6a87096face3421f3c1..5012fe8ccd1ec9b6d33d655289ecc2dd00503de6 100644 (file)
@@ -62,7 +62,7 @@ struct AlphaRegisterInfo : public AlphaGenRegisterInfo {
   static std::string getPrettyName(unsigned reg);
   
 private:
-  int curgpdist;
+  mutable int curgpdist;
 };
 
 } // end namespace llvm