Allow BasicBlock downcast to Value
This commit is contained in:
parent
6e4620edc6
commit
0629ccb226
1 changed files with 2 additions and 1 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
from binding import *
|
from binding import *
|
||||||
from .namespace import llvm
|
from .namespace import llvm
|
||||||
from .Value import Function, BasicBlock
|
from .Value import Function, BasicBlock, Value
|
||||||
from .Instruction import Instruction, TerminatorInst
|
from .Instruction import Instruction, TerminatorInst
|
||||||
from .LLVMContext import LLVMContext
|
from .LLVMContext import LLVMContext
|
||||||
from .ADT.StringRef import StringRef
|
from .ADT.StringRef import StringRef
|
||||||
|
|
||||||
@BasicBlock
|
@BasicBlock
|
||||||
class BasicBlock:
|
class BasicBlock:
|
||||||
|
_downcast_ = Value
|
||||||
Create = StaticMethod(ptr(BasicBlock), ref(LLVMContext),
|
Create = StaticMethod(ptr(BasicBlock), ref(LLVMContext),
|
||||||
cast(str, StringRef),
|
cast(str, StringRef),
|
||||||
ptr(Function),
|
ptr(Function),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue