mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -81,17 +81,17 @@ namespace llvm {
|
||||
delete ResourcesModel;
|
||||
}
|
||||
|
||||
bool isBottomUp() const { return false; }
|
||||
bool isBottomUp() const override { return false; }
|
||||
|
||||
void initNodes(std::vector<SUnit> &sunits);
|
||||
void initNodes(std::vector<SUnit> &sunits) override;
|
||||
|
||||
void addNode(const SUnit *SU) {
|
||||
void addNode(const SUnit *SU) override {
|
||||
NumNodesSolelyBlocking.resize(SUnits->size(), 0);
|
||||
}
|
||||
|
||||
void updateNode(const SUnit *SU) {}
|
||||
void updateNode(const SUnit *SU) override {}
|
||||
|
||||
void releaseState() {
|
||||
void releaseState() override {
|
||||
SUnits = 0;
|
||||
}
|
||||
|
||||
@@ -116,18 +116,18 @@ namespace llvm {
|
||||
signed regPressureDelta(SUnit *SU, bool RawPressure = false);
|
||||
signed rawRegPressureDelta (SUnit *SU, unsigned RCId);
|
||||
|
||||
bool empty() const { return Queue.empty(); }
|
||||
bool empty() const override { return Queue.empty(); }
|
||||
|
||||
virtual void push(SUnit *U);
|
||||
void push(SUnit *U) override;
|
||||
|
||||
virtual SUnit *pop();
|
||||
SUnit *pop() override;
|
||||
|
||||
virtual void remove(SUnit *SU);
|
||||
void remove(SUnit *SU) override;
|
||||
|
||||
virtual void dump(ScheduleDAG* DAG) const;
|
||||
void dump(ScheduleDAG* DAG) const override;
|
||||
|
||||
/// scheduledNode - Main resource tracking point.
|
||||
void scheduledNode(SUnit *Node);
|
||||
void scheduledNode(SUnit *Node) override;
|
||||
bool isResourceAvailable(SUnit *SU);
|
||||
void reserveResources(SUnit *SU);
|
||||
|
||||
|
@@ -60,9 +60,9 @@ public:
|
||||
return TM.getTargetLowering();
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
|
||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||
bool runOnMachineFunction(MachineFunction &MF) override;
|
||||
|
||||
virtual void EmitFunctionEntryCode() {}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ class AsmLexer : public MCAsmLexer {
|
||||
|
||||
protected:
|
||||
/// LexToken - Read the next token and return its code.
|
||||
virtual AsmToken LexToken();
|
||||
AsmToken LexToken() override;
|
||||
|
||||
public:
|
||||
AsmLexer(const MCAsmInfo &MAI);
|
||||
@@ -44,10 +44,10 @@ public:
|
||||
|
||||
void setBuffer(const MemoryBuffer *buf, const char *ptr = NULL);
|
||||
|
||||
virtual StringRef LexUntilEndOfStatement();
|
||||
StringRef LexUntilEndOfStatement() override;
|
||||
StringRef LexUntilEndOfLine();
|
||||
|
||||
virtual const AsmToken peekTok(bool ShouldSkipSpace = true);
|
||||
const AsmToken peekTok(bool ShouldSkipSpace = true) override;
|
||||
|
||||
bool isAtStartOfComment(char Char);
|
||||
bool isAtStatementSeparator(const char *Ptr);
|
||||
|
Reference in New Issue
Block a user