Fix PR
This commit is contained in:
parent
f4b320ff09
commit
db7323771f
2 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
from binding import *
|
from binding import *
|
||||||
from .namespace import llvm
|
from .namespace import llvm
|
||||||
from .Value import GlobalValue, Constant, Function, Argument, Value
|
from .Value import GlobalValue, Constant, Function, Argument, Value
|
||||||
|
from .Module import Module
|
||||||
from .BasicBlock import BasicBlock
|
from .BasicBlock import BasicBlock
|
||||||
from .ValueSymbolTable import ValueSymbolTable
|
from .ValueSymbolTable import ValueSymbolTable
|
||||||
from .Attributes import Attributes
|
from .Attributes import Attributes
|
||||||
|
|
@ -53,7 +54,11 @@ class Function:
|
||||||
removeFnAttr = Method(Void, ref(Attributes))
|
removeFnAttr = Method(Void, ref(Attributes))
|
||||||
#hasFnAttribute = Method(cast(Bool, bool), Attributes.AttrVal)
|
#hasFnAttribute = Method(cast(Bool, bool), Attributes.AttrVal)
|
||||||
|
|
||||||
Create = Method(ptr(Function))
|
Create = StaticMethod(ptr(Function),
|
||||||
|
ptr(FunctionType),
|
||||||
|
GlobalValue.LinkageTypes,
|
||||||
|
cast(str, ConstCharPtr),
|
||||||
|
ptr(Module)).require_only(2)
|
||||||
|
|
||||||
eraseFromParent = Method()
|
eraseFromParent = Method()
|
||||||
eraseFromParent.disowning = True
|
eraseFromParent.disowning = True
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ from .ADT.StringRef import StringRef
|
||||||
|
|
||||||
@ValueSymbolTable
|
@ValueSymbolTable
|
||||||
class ValueSymbolTable:
|
class ValueSymbolTable:
|
||||||
|
_include_ = 'llvm/ValueSymbolTable.h'
|
||||||
new = Constructor()
|
new = Constructor()
|
||||||
delete = Destructor()
|
delete = Destructor()
|
||||||
lookup = Method(ptr(Value), cast(str, StringRef))
|
lookup = Method(ptr(Value), cast(str, StringRef))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue