Displaying 2 results from an estimated 2 matches for "from_ruby".
2012 Dec 10
2
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
...s a bit OT for llvmdev, but I'm stuck for two days now and I really need some direct push.
To the problem. I have a C++ shared library, that's working with llvm C++ api. Consider a function:
static Object llvm_Target_createMCAsmInfo(Object self, Object tripleName)
{
llvm::Target target = from_ruby<llvm::Target>(self);
char const *triple = from_ruby<char const *>(tripleName);
llvm::MCAsmInfo *MAI = target.createMCAsmInfo(triple);
return to_ruby<llvm::MCAsmInfo>(*MAI);
}
The problem here, is it's ok to use llvm::MCAsmInfo objects, but as soon as I use it in the cast...
2012 Dec 10
0
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
...9;m stuck for two days now and I really need some direct push.
>
> To the problem. I have a C++ shared library, that's working with llvm C++ api. Consider a function:
>
> static Object llvm_Target_createMCAsmInfo(Object self, Object tripleName)
> {
> llvm::Target target = from_ruby<llvm::Target>(self);
> char const *triple = from_ruby<char const *>(tripleName);
>
> llvm::MCAsmInfo *MAI = target.createMCAsmInfo(triple);
> return to_ruby<llvm::MCAsmInfo>(*MAI);
> }
>
> The problem here, is it's ok to use llvm::MCAsmInfo o...