Commit 068b448a authored by Rudi Chen's avatar Rudi Chen

Add override keyword where necessary.

parent e44735cf
......@@ -2844,7 +2844,7 @@ public:
// As a special-case, a NULL value for final_dest means that this helper block should
// instead propagate the exception out of the function.
llvm::BasicBlock* getCAPIExcDest(llvm::BasicBlock* from_block, llvm::BasicBlock* final_dest,
AST_stmt* current_stmt) {
AST_stmt* current_stmt) override {
llvm::BasicBlock*& capi_exc_dest = capi_exc_dests[final_dest];
llvm::PHINode*& phi_node = capi_phis[final_dest];
......@@ -2906,7 +2906,7 @@ public:
return capi_exc_dest;
}
llvm::BasicBlock* getCXXExcDest(llvm::BasicBlock* final_dest) {
llvm::BasicBlock* getCXXExcDest(llvm::BasicBlock* final_dest) override {
llvm::BasicBlock*& cxx_exc_dest = cxx_exc_dests[final_dest];
if (cxx_exc_dest)
return cxx_exc_dest;
......
......@@ -63,7 +63,7 @@ public:
return &_end;
}
void gc_visit(GCVisitor* v) {
void gc_visit(GCVisitor* v) override {
if (iterator)
v->visit(iterator);
if (value)
......@@ -71,6 +71,7 @@ public:
}
};
template <typename T> class BoxIteratorIndex : public BoxIteratorImpl {
private:
T* obj;
......@@ -115,7 +116,7 @@ public:
return &_end;
}
void gc_visit(GCVisitor* v) {
void gc_visit(GCVisitor* v) override {
if (obj)
v->visit(obj);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment