aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-26 00:17:05 +0000
committerOwen Anderson <resistor@mac.com>2009-06-26 00:17:05 +0000
commit62c38434e24688d4632d0e3635a043e9fd065830 (patch)
treea4cbe26b50f2a63e5a5c7b16ab9a379a3737f9c9
parent94326677f033d604b790d3efdc66237bc582c126 (diff)
downloadexternal_llvm-62c38434e24688d4632d0e3635a043e9fd065830.zip
external_llvm-62c38434e24688d4632d0e3635a043e9fd065830.tar.gz
external_llvm-62c38434e24688d4632d0e3635a043e9fd065830.tar.bz2
Committed the wrong version in my last commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74235 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Alpha/AlphaRegisterInfo.cpp4
-rw-r--r--lib/Target/Alpha/AlphaRegisterInfo.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/Alpha/AlphaRegisterInfo.cpp b/lib/Target/Alpha/AlphaRegisterInfo.cpp
index feee6e4..0ff53c7 100644
--- a/lib/Target/Alpha/AlphaRegisterInfo.cpp
+++ b/lib/Target/Alpha/AlphaRegisterInfo.cpp
@@ -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()))
diff --git a/lib/Target/Alpha/AlphaRegisterInfo.h b/lib/Target/Alpha/AlphaRegisterInfo.h
index c9ae4b7..5012fe8 100644
--- a/lib/Target/Alpha/AlphaRegisterInfo.h
+++ b/lib/Target/Alpha/AlphaRegisterInfo.h
@@ -62,7 +62,7 @@ struct AlphaRegisterInfo : public AlphaGenRegisterInfo {
static std::string getPrettyName(unsigned reg);
private:
- int curgpdist;
+ mutable int curgpdist;
};
} // end namespace llvm