mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +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@203220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -76,24 +76,24 @@ public:
|
||||
RABasic();
|
||||
|
||||
/// Return the pass name.
|
||||
virtual const char* getPassName() const {
|
||||
const char* getPassName() const override {
|
||||
return "Basic Register Allocator";
|
||||
}
|
||||
|
||||
/// RABasic analysis usage.
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
|
||||
virtual void releaseMemory();
|
||||
void releaseMemory() override;
|
||||
|
||||
virtual Spiller &spiller() { return *SpillerInstance; }
|
||||
Spiller &spiller() override { return *SpillerInstance; }
|
||||
|
||||
virtual float getPriority(LiveInterval *LI) { return LI->weight; }
|
||||
|
||||
virtual void enqueue(LiveInterval *LI) {
|
||||
void enqueue(LiveInterval *LI) override {
|
||||
Queue.push(LI);
|
||||
}
|
||||
|
||||
virtual LiveInterval *dequeue() {
|
||||
LiveInterval *dequeue() override {
|
||||
if (Queue.empty())
|
||||
return 0;
|
||||
LiveInterval *LI = Queue.top();
|
||||
@ -101,11 +101,11 @@ public:
|
||||
return LI;
|
||||
}
|
||||
|
||||
virtual unsigned selectOrSplit(LiveInterval &VirtReg,
|
||||
SmallVectorImpl<unsigned> &SplitVRegs);
|
||||
unsigned selectOrSplit(LiveInterval &VirtReg,
|
||||
SmallVectorImpl<unsigned> &SplitVRegs) override;
|
||||
|
||||
/// Perform register allocation.
|
||||
virtual bool runOnMachineFunction(MachineFunction &mf);
|
||||
bool runOnMachineFunction(MachineFunction &mf) override;
|
||||
|
||||
// Helper for spilling all live virtual registers currently unified under preg
|
||||
// that interfere with the most recently queried lvr. Return true if spilling
|
||||
|
Reference in New Issue
Block a user