Deleted Added
sdiff udiff text old ( 10521:ca248520649f ) new ( 10965:6f433e7f9767 )
full compact
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 93 unchanged lines hidden (view full) ---

102
103 def __repr__(self):
104 return "[PrefixExpr: %s %r]" % (self.op, self.operand)
105
106 def generate(self, code):
107 opcode = self.slicc.codeFormatter()
108 optype = self.operand.generate(opcode)
109
110 fix = code.nofix()
111 code("(${{self.op}} $opcode)")
112 code.fix(fix)
113
114 return self.symtab.find("void", Type)