Fix incorrect use of StringRef in return value
This commit is contained in:
parent
e89c19ee60
commit
51ff879a07
3 changed files with 4 additions and 4 deletions
|
|
@ -30,7 +30,7 @@ class DataLayout:
|
|||
isLittleEndian = Method(cast(Bool, bool))
|
||||
isBigEndian = Method(cast(Bool, bool))
|
||||
|
||||
getStringRepresentation = Method(cast(StringRef, str))
|
||||
getStringRepresentation = Method(cast(StdString, str))
|
||||
|
||||
@CustomPythonMethod
|
||||
def __str__(self):
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class Pass:
|
|||
_include_ = 'llvm/Pass.h'
|
||||
|
||||
delete = Destructor()
|
||||
getPassName = Method(cast(StringRef, str))
|
||||
getPassName = Method(cast(StdString, str))
|
||||
dump = Method()
|
||||
|
||||
@ModulePass
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ from src.Support.CodeGen import Reloc, CodeModel, CodeGenOpt
|
|||
class Target:
|
||||
getNext = Method(const(ptr(Target)))
|
||||
|
||||
getName = Method(cast(StringRef, str))
|
||||
getShortDescription = Method(cast(StringRef, str))
|
||||
getName = Method(cast(StdString, str))
|
||||
getShortDescription = Method(cast(StdString, str))
|
||||
|
||||
def _has():
|
||||
return Method(cast(Bool, bool))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue