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 .namespace import llvm
|
||||
from .Value import Function, BasicBlock
|
||||
from .Value import Function, BasicBlock, Value
|
||||
from .Instruction import Instruction, TerminatorInst
|
||||
from .LLVMContext import LLVMContext
|
||||
from .ADT.StringRef import StringRef
|
||||
|
||||
@BasicBlock
|
||||
class BasicBlock:
|
||||
_downcast_ = Value
|
||||
Create = StaticMethod(ptr(BasicBlock), ref(LLVMContext),
|
||||
cast(str, StringRef),
|
||||
ptr(Function),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue