Skip to content

Commit

Permalink
[AVR] Fix a few compile errors
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269900 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Dylan McKay committed May 18, 2016
1 parent 2366631 commit af29269
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Target/AVR/AVRFrameLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AVRFrameLowering : public TargetFrameLowering {
bool canSimplifyCallFramePseudos(const MachineFunction &MF) const override;
void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
RegScavenger *RS = nullptr) const override;
void
MachineBasicBlock::iterator
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI) const override;
};
Expand Down
1 change: 0 additions & 1 deletion lib/Target/AVR/AVRInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ void AVRInstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
const TargetRegisterClass *RC,
const TargetRegisterInfo *TRI) const {
MachineFunction &MF = *MBB.getParent();
AVRMachineFunctionInfo *AFI = MF.getInfo<AVRMachineFunctionInfo>();

DebugLoc DL;
if (MI != MBB.end()) {
Expand Down
6 changes: 3 additions & 3 deletions lib/Target/AVR/AVRTargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace llvm {

/// Processes a CPU name.
static StringRef getTargetCPU(StringRef CPU) {
static StringRef getCPU(StringRef CPU) {
if (CPU.empty() || CPU == "generic") {
return "avr2";
}
Expand All @@ -41,8 +41,8 @@ AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT,
CodeGenOpt::Level OL)
: LLVMTargetMachine(
T, "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8-i64:8:8-f32:8:8-f64:8:8-n8", TT,
getTargetCPU(CPU), FS, Options, RM, CM, OL),
SubTarget(TT, GetTargetCPU(CPU), FS, *this) {
getCPU(CPU), FS, Options, RM, CM, OL),
SubTarget(TT, getCPU(CPU), FS, *this) {
this->TLOF = make_unique<AVRTargetObjectFile>();
initAsmInfo();
}
Expand Down

0 comments on commit af29269

Please sign in to comment.