diff options
author | Jason Ekstrand <[email protected]> | 2018-11-08 14:00:07 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-12-05 15:02:52 -0600 |
commit | d6aac618fb489fdaf11670489567cc95ea891c86 (patch) | |
tree | 4e11f2f0c157f56476bba89e6d79d2c8faccf0ee /src/compiler/nir/nir_algebraic.py | |
parent | 85f0ea9d8f452a43dba5e7890ebc8defa4e2696c (diff) |
nir/algebraic: Clean up some __str__ cruft
Both of these things are already handled in the Value base class so we
don't need to handle them explicitly in Constant.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_algebraic.py')
-rw-r--r-- | src/compiler/nir/nir_algebraic.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py index efd6e52cdb9..d75a7ce27c9 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -185,7 +185,6 @@ class Constant(Value): def __init__(self, val, name): Value.__init__(self, val, name, "constant") - self.in_val = str(val) if isinstance(val, (str)): m = _constant_re.match(val) self.value = ast.literal_eval(m.group('value')) @@ -251,9 +250,6 @@ class Variable(Value): self.index = varset[self.var_name] - def __str__(self): - return self.in_val - def type(self): if self.required_type == 'bool': return "nir_type_bool" |