Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
068b448a
Commit
068b448a
authored
Sep 03, 2015
by
Rudi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add override keyword where necessary.
parent
e44735cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+2
-2
src/runtime/iterators.cpp
src/runtime/iterators.cpp
+3
-2
No files found.
src/codegen/irgen/irgenerator.cpp
View file @
068b448a
...
@@ -2844,7 +2844,7 @@ public:
...
@@ -2844,7 +2844,7 @@ public:
// As a special-case, a NULL value for final_dest means that this helper block should
// As a special-case, a NULL value for final_dest means that this helper block should
// instead propagate the exception out of the function.
// instead propagate the exception out of the function.
llvm
::
BasicBlock
*
getCAPIExcDest
(
llvm
::
BasicBlock
*
from_block
,
llvm
::
BasicBlock
*
final_dest
,
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
::
BasicBlock
*&
capi_exc_dest
=
capi_exc_dests
[
final_dest
];
llvm
::
PHINode
*&
phi_node
=
capi_phis
[
final_dest
];
llvm
::
PHINode
*&
phi_node
=
capi_phis
[
final_dest
];
...
@@ -2906,7 +2906,7 @@ public:
...
@@ -2906,7 +2906,7 @@ public:
return
capi_exc_dest
;
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
];
llvm
::
BasicBlock
*&
cxx_exc_dest
=
cxx_exc_dests
[
final_dest
];
if
(
cxx_exc_dest
)
if
(
cxx_exc_dest
)
return
cxx_exc_dest
;
return
cxx_exc_dest
;
...
...
src/runtime/iterators.cpp
View file @
068b448a
...
@@ -63,7 +63,7 @@ public:
...
@@ -63,7 +63,7 @@ public:
return
&
_end
;
return
&
_end
;
}
}
void
gc_visit
(
GCVisitor
*
v
)
{
void
gc_visit
(
GCVisitor
*
v
)
override
{
if
(
iterator
)
if
(
iterator
)
v
->
visit
(
iterator
);
v
->
visit
(
iterator
);
if
(
value
)
if
(
value
)
...
@@ -71,6 +71,7 @@ public:
...
@@ -71,6 +71,7 @@ public:
}
}
};
};
template
<
typename
T
>
class
BoxIteratorIndex
:
public
BoxIteratorImpl
{
template
<
typename
T
>
class
BoxIteratorIndex
:
public
BoxIteratorImpl
{
private:
private:
T
*
obj
;
T
*
obj
;
...
@@ -115,7 +116,7 @@ public:
...
@@ -115,7 +116,7 @@ public:
return
&
_end
;
return
&
_end
;
}
}
void
gc_visit
(
GCVisitor
*
v
)
{
void
gc_visit
(
GCVisitor
*
v
)
override
{
if
(
obj
)
if
(
obj
)
v
->
visit
(
obj
);
v
->
visit
(
obj
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment