mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
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
This commit is contained in:
parent
94326677f0
commit
62c38434e2
@ -54,7 +54,7 @@ static long getLower16(long l)
|
|||||||
|
|
||||||
AlphaRegisterInfo::AlphaRegisterInfo(const TargetInstrInfo &tii)
|
AlphaRegisterInfo::AlphaRegisterInfo(const TargetInstrInfo &tii)
|
||||||
: AlphaGenRegisterInfo(Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP),
|
: 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());
|
MBBI->getDebugLoc() : DebugLoc::getUnknownLoc());
|
||||||
bool FP = hasFP(MF);
|
bool FP = hasFP(MF);
|
||||||
|
|
||||||
static int curgpdist = 0;
|
|
||||||
|
|
||||||
//handle GOP offset
|
//handle GOP offset
|
||||||
BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAHg), Alpha::R29)
|
BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAHg), Alpha::R29)
|
||||||
.addGlobalAddress(const_cast<Function*>(MF.getFunction()))
|
.addGlobalAddress(const_cast<Function*>(MF.getFunction()))
|
||||||
|
@ -62,7 +62,7 @@ struct AlphaRegisterInfo : public AlphaGenRegisterInfo {
|
|||||||
static std::string getPrettyName(unsigned reg);
|
static std::string getPrettyName(unsigned reg);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int curgpdist;
|
mutable int curgpdist;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace llvm
|
} // end namespace llvm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user