Fix incorrect use of StringRef in return value

This commit is contained in:
Siu Kwan Lam 2013-02-28 00:01:03 -06:00
commit 51ff879a07
3 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ class DataLayout:
isLittleEndian = Method(cast(Bool, bool)) isLittleEndian = Method(cast(Bool, bool))
isBigEndian = Method(cast(Bool, bool)) isBigEndian = Method(cast(Bool, bool))
getStringRepresentation = Method(cast(StringRef, str)) getStringRepresentation = Method(cast(StdString, str))
@CustomPythonMethod @CustomPythonMethod
def __str__(self): def __str__(self):

View file

@ -15,7 +15,7 @@ class Pass:
_include_ = 'llvm/Pass.h' _include_ = 'llvm/Pass.h'
delete = Destructor() delete = Destructor()
getPassName = Method(cast(StringRef, str)) getPassName = Method(cast(StdString, str))
dump = Method() dump = Method()
@ModulePass @ModulePass

View file

@ -16,8 +16,8 @@ from src.Support.CodeGen import Reloc, CodeModel, CodeGenOpt
class Target: class Target:
getNext = Method(const(ptr(Target))) getNext = Method(const(ptr(Target)))
getName = Method(cast(StringRef, str)) getName = Method(cast(StdString, str))
getShortDescription = Method(cast(StringRef, str)) getShortDescription = Method(cast(StdString, str))
def _has(): def _has():
return Method(cast(Bool, bool)) return Method(cast(Bool, bool))