Displaying 3 results from an estimated 3 matches for "nsmutablearray".
2013 Jul 22
0
[LLVMdev] Libclang get class name from DeclRefExpr
...`-CompoundStmt 0x112791bf0 <col:63, line:34:1>
| `-ExprWithCleanups 0x112791bd8 <line:33:5, col:39> 'void'
| `-ObjCMessageExpr 0x112791ba0 <col:5, col:39> 'void'
selector=addObject:
| |-PseudoObjectExpr 0x112791b48 <col:6, col:11>
'NSMutableArray *'
| | |-ObjCPropertyRefExpr 0x112791ad0 <col:6, col:11>
'<pseudo-object type>' lvalue objcproperty Kind=PropertyRef
Property="dataModels" Messaging=Getter
| | | `-OpaqueValueExpr 0x112791ab0 <col:6>
'DFDataModelContainer *'
|...
2011 Jun 20
0
[LLVMdev] C struct as function argument
Hello Michael,
> The module dump suggests everything is right, i can see in the function call the struct with the values 10 and 25, but the function is only received the 10 for the x field, nothing for the y field. Am I missing something?
You're missing the Platform ABI. I assume you're on x86-64, then your
struct (according to the ABI) should be passed in a single 64 bit
register as
2011 Jun 20
3
[LLVMdev] C struct as function argument
I've been working on a wrapper for LLVM's C++ API to use from Objective-C for a scripting language I'm working on. I currently have an issue with passing arguments to a function that takes a struct argument.
typedef struct _test_struct {
int x;
int y;
} test_struct;
id testLLVMStructFuncCall(test_struct x) {
NSLog(@"%d %d",x.x,x.y);
return N(x.x + x.y);
}