Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
47059228
Commit
47059228
authored
May 19, 2014
by
Jonathan Wakely
Committed by
Jonathan Wakely
May 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* python/libstdcxx/v6/printers.py: Use Python3 raise syntax.
From-SVN: r210625
parent
0f5b0135
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
libstdc++-v3/ChangeLog
+4
-0
libstdc++-v3/python/libstdcxx/v6/printers.py
+5
-5
No files found.
libstdc++-v3/ChangeLog
View file @
47059228
2014-05-19 Jonathan Wakely <jwakely@redhat.com>
* python/libstdcxx/v6/printers.py: Use Python3 raise syntax.
2014-05-17 Marc Glisse <marc.glisse@inria.fr>
* libsupc++/new_op.cc: Factor the calls to malloc, use __builtin_expect.
...
...
libstdc++-v3/python/libstdcxx/v6/printers.py
View file @
47059228
...
...
@@ -51,7 +51,7 @@ def find_type(orig, name):
# anything fancier here.
field
=
typ
.
fields
()[
0
]
if
not
field
.
is_base_class
:
raise
ValueError
,
"Cannot find type
%
s::
%
s"
%
(
str
(
orig
),
name
)
raise
ValueError
(
"Cannot find type
%
s::
%
s"
%
(
str
(
orig
),
name
)
)
typ
=
field
.
type
class
SharedPointerPrinter
:
...
...
@@ -276,7 +276,7 @@ class StdTuplePrinter:
# Set the actual head to the first pair.
self
.
head
=
self
.
head
.
cast
(
nodes
[
0
]
.
type
)
elif
len
(
nodes
)
!=
0
:
raise
ValueError
,
"Top of tuple tree does not consist of a single node."
raise
ValueError
(
"Top of tuple tree does not consist of a single node."
)
self
.
count
=
0
def
__iter__
(
self
):
...
...
@@ -289,7 +289,7 @@ class StdTuplePrinter:
raise
StopIteration
# Check that this iteration has an expected structure.
if
len
(
nodes
)
!=
2
:
raise
ValueError
,
"Cannot parse more than 2 nodes in a tuple tree."
raise
ValueError
(
"Cannot parse more than 2 nodes in a tuple tree."
)
# - Left node is the next recursion parent.
# - Right node is the actual class contained in the tuple.
...
...
@@ -389,7 +389,7 @@ def get_value_from_Rb_tree_node(node):
return
p
.
dereference
()
except
:
pass
raise
ValueError
,
"Unsupported implementation for
%
s"
%
str
(
node
.
type
)
raise
ValueError
(
"Unsupported implementation for
%
s"
%
str
(
node
.
type
)
)
# This is a pretty printer for std::_Rb_tree_iterator (which is
# std::map::iterator), and has nothing to do with the RbtreeIterator
...
...
@@ -827,7 +827,7 @@ class Printer(object):
# A small sanity check.
# FIXME
if
not
self
.
compiled_rx
.
match
(
name
+
'<>'
):
raise
ValueError
,
'libstdc++ programming error: "
%
s" does not match'
%
name
raise
ValueError
(
'libstdc++ programming error: "
%
s" does not match'
%
name
)
printer
=
RxPrinter
(
name
,
function
)
self
.
subprinters
.
append
(
printer
)
self
.
lookup
[
name
]
=
printer
...
...
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