Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit 7e8c7af

Browse files
author
Dylan McKay
committed
[AVR] Removed redundant anchor() functions
Also cleaned up some comments and added the `override` qualifier to a method.
1 parent 3539d69 commit 7e8c7af

10 files changed

+10
-32
lines changed

lib/Target/AVR/AVRMachineFunctionInfo.cpp

Lines changed: 0 additions & 14 deletions
This file was deleted.

lib/Target/AVR/AVRMachineFunctionInfo.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@
1919
namespace llvm
2020
{
2121

22-
/// AVRMachineFunctionInfo - This class is derived from MachineFunction and
23-
/// contains private AVR target-specific information for each MachineFunction.
22+
/*!
23+
* \brief This class is derived from MachineFunction and
24+
* contains private AVR target-specific information for each MachineFunction.
25+
*/
2426
class AVRMachineFunctionInfo : public MachineFunctionInfo
2527
{
26-
virtual void anchor();
27-
28-
/// HasSpills - Indicates if a register has been spilled by the register
28+
/// Indicates if a register has been spilled by the register
2929
/// allocator.
3030
bool HasSpills;
3131

32-
/// HasAllocas - Indicates if there are any fixed size allocas present.
32+
/// Indicates if there are any fixed size allocas present.
3333
/// Note that if there are only variable sized allocas this is set to false.
3434
bool HasAllocas;
3535

36-
/// HasStackArgs - Indicates if arguments passed using the stack are being
36+
/// Indicates if arguments passed using the stack are being
3737
/// used inside the function.
3838
bool HasStackArgs;
3939

40-
/// CalleeSavedFrameSize - Size of the callee-saved register portion of the
40+
/// Size of the callee-saved register portion of the
4141
/// stack frame in bytes.
4242
unsigned CalleeSavedFrameSize;
4343

44-
/// VarArgsFrameIndex - FrameIndex for start of varargs area.
44+
/// FrameIndex for start of varargs area.
4545
int VarArgsFrameIndex;
4646
public:
4747
AVRMachineFunctionInfo() :

lib/Target/AVR/AVRSubtarget.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
using namespace llvm;
2525

26-
void AVRSubtarget::anchor() { }
2726

2827
AVRSubtarget::AVRSubtarget(const std::string &TT, const std::string &CPU,
2928
const std::string &FS, AVRTargetMachine &TM) :

lib/Target/AVR/AVRSubtarget.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ namespace llvm
3333
//! \brief Holds information about an AVR subtarget.
3434
class AVRSubtarget : public AVRGenSubtargetInfo
3535
{
36-
virtual void anchor();
3736

3837
public:
3938
//! \brief Creates an AVR subtarget.

lib/Target/AVR/AVRTargetObjectFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace llvm
1818
class AVRTargetObjectFile : public TargetLoweringObjectFileELF
1919
{
2020
public:
21-
void Initialize(MCContext &ctx, const TargetMachine &TM);
21+
void Initialize(MCContext &ctx, const TargetMachine &TM) override;
2222

2323
const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
2424
SectionKind Kind,

lib/Target/AVR/AVRTargetStreamer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
namespace llvm {
1717
class AVRTargetStreamer : public MCTargetStreamer {
18-
virtual void anchor();
1918

2019
public:
2120
explicit AVRTargetStreamer(MCStreamer &S);

lib/Target/AVR/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ add_llvm_target(AVRCodeGen
1818
AVRInstrInfo.cpp
1919
AVRISelDAGToDAG.cpp
2020
AVRISelLowering.cpp
21-
AVRMachineFunctionInfo.cpp
2221
AVRMCInstLower.cpp
2322
AVRRegisterInfo.cpp
2423
AVRSelectionDAGInfo.cpp

lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
using namespace llvm;
1818

19-
void AVRMCAsmInfo::anchor() { }
2019

2120
AVRMCAsmInfo::AVRMCAsmInfo(StringRef TT)
2221
{

lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class StringRef;
2323

2424
class AVRMCAsmInfo : public MCAsmInfo
2525
{
26-
virtual void anchor();
2726
public:
2827
explicit AVRMCAsmInfo(StringRef TT);
2928
};

lib/Target/AVR/MCTargetDesc/AVRTargetStreamer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ using namespace llvm;
2020
// pin vtable to this file
2121
AVRTargetStreamer::AVRTargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {}
2222

23-
void AVRTargetStreamer::anchor() {}
24-
2523
AVRTargetAsmStreamer::AVRTargetAsmStreamer(MCStreamer &S,
2624
formatted_raw_ostream &OS)
2725
: AVRTargetStreamer(S), OS(OS) {}

0 commit comments

Comments
 (0)