This commit is contained in:
Ilan Schnell 2013-01-31 17:54:20 -06:00
commit 5dd0948c65
13 changed files with 24 additions and 24 deletions

View file

@ -2,11 +2,11 @@ from llvm.core import *
class TBAABuilder(object):
'''Simplify creation of TBAA metadata.
Each TBAABuidler object operates on a module.
Each TBAABuidler object operates on a module.
User can create multiple TBAABuilder on a module
'''
def __init__(self, module, rootid):
'''
module --- the module to use.
@ -23,7 +23,7 @@ class TBAABuilder(object):
def get_node(self, name, parent=None, const=False):
'''Returns a MetaData object representing a TBAA node.
Use loadstore_instruction.set_metadata('tbaa', node) to
Use loadstore_instruction.set_metadata('tbaa', node) to
bind a type to a memory.
'''
parent = parent or self.root