Mercurial > lcfOS
comparison python/ppci/ir.py @ 363:396e5cefba13
Removed debuginfo instruction
author | Windel Bouwman |
---|---|
date | Sun, 16 Mar 2014 11:28:47 +0100 |
parents | 5477e499b039 |
children | c49459768aaa |
comparison
equal
deleted
inserted
replaced
362:c05ab629976a | 363:396e5cefba13 |
---|---|
32 f.module = self | 32 f.module = self |
33 | 33 |
34 def add_variable(self, v): | 34 def add_variable(self, v): |
35 self.variables.append(v) | 35 self.variables.append(v) |
36 | 36 |
37 def getVariables(self): | 37 def get_variables(self): |
38 return self.variables | 38 return self.variables |
39 | 39 |
40 Variables = property(getVariables) | 40 Variables = property(get_variables) |
41 | 41 |
42 def getFunctions(self): | 42 def getFunctions(self): |
43 return self.functions | 43 return self.functions |
44 | 44 |
45 Functions = property(getFunctions) | 45 Functions = property(getFunctions) |
284 class LocalVariable(Variable): | 284 class LocalVariable(Variable): |
285 def __repr__(self): | 285 def __repr__(self): |
286 return 'Local {}'.format(self.name) | 286 return 'Local {}'.format(self.name) |
287 | 287 |
288 | 288 |
289 class GlobalVariable(Variable): | |
290 def __repr__(self): | |
291 return 'Global {}'.format(self.name) | |
292 | |
293 | |
289 class Parameter(Variable): | 294 class Parameter(Variable): |
290 def __repr__(self): | 295 def __repr__(self): |
291 return 'Param {}'.format(self.name) | 296 return 'Param {}'.format(self.name) |
292 | 297 |
293 | 298 |