summaryrefslogtreecommitdiff
path: root/pp2cc.py
diff options
context:
space:
mode:
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-xpp2cc.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/pp2cc.py b/pp2cc.py
index b0c9b18..15d451a 100755
--- a/pp2cc.py
+++ b/pp2cc.py
@@ -15,6 +15,7 @@ from pycparser import c_parser, c_ast
from Asm import Asm
from Registers import Registers
from LinkedNode import LinkedNode
+from Function import Function
__author__ = "Peter Wu"
__copyright__ = "Copyright 2011, Peter Wu"
@@ -24,17 +25,6 @@ __version__ = "1.0"
__maintainer__ = "Peter Wu"
__email__ = "uwretep@gmail.com"
-class Function(object):
- def __init__(self, node):
- self.name = node.decl.name
- self.node = node
- def labelBegin(self):
- """Returns a label pointing to the begin of a function"""
- return "fn_" + self.name
- def labelEnd(self):
- """Returns a label pointing to the end of a function"""
- return "fne_" + self.name
-
class Logger(object):
def __init__(self):
pass