projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a72c75d
)
slicc: isinstance bugfix
author
David Hashe
<david.hashe@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000
(09:15 -0500)
committer
David Hashe
<david.hashe@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000
(09:15 -0500)
This fix prevents spurious errors when searching for a symbol that may be
located in one of multiple symbol tables.
src/mem/slicc/symbols/SymbolTable.py
patch
|
blob
|
history
diff --git
a/src/mem/slicc/symbols/SymbolTable.py
b/src/mem/slicc/symbols/SymbolTable.py
index 48a7ec8d24310a3c3849b64e20aeea0b9a7fa6d4..ea470ab7dd81ad3585c434e3f9ca0aa50e6e5bbd 100644
(file)
--- a/
src/mem/slicc/symbols/SymbolTable.py
+++ b/
src/mem/slicc/symbols/SymbolTable.py
@@
-85,8
+85,8
@@
class SymbolTable(object):
if types is not None:
if not isinstance(symbol, types):
- symbol.error("Symbol '%s' is not of types '%s'.",
- symbol, types)
+ continue # there could be a name clash with other symbol
+ # so rather than producing an error, keep trying
return symbol