search for: createmembertyp

Displaying 9 results from an estimated 9 matches for "createmembertyp".

Did you mean: createmembertype
2019 Feb 05
2
[DebugInfo][DIBuilder] Good way to pass arguments to createClassType/createMemberType
...nd export it into a PDB, but I don't understand the way some DIBuilder method work. My question might have a straightforward answer but I don't see it ... (and I can't find any example code using these methods anywhere). Indeed createClassType takes an "Elements" argument, and createMemberType takes a "Scope" argument. Like the "who's first, egg or hen", I don't know If I need to create my members first using le compilation unit as the scope, put them in an array and give them to createClassType Elements parameter. Or forget the Elements parameter, call creat...
2019 Feb 06
2
[DebugInfo][DIBuilder] Good way to pass arguments to createClassType/createMemberType
...it into a PDB, but I don't understand the way some DIBuilder method work. > My question might have a straightforward answer but I don't see it ... (and I can't find any example code using these methods anywhere). > Indeed createClassType takes an "Elements" argument, and createMemberType takes a "Scope" argument. Like the "who's first, egg or hen", I don't know If I need to create my members first using le compilation unit as the scope, put them in an array and give them to createClassType Elements parameter. Or forget the Elements parameter, call creat...
2014 Dec 18
2
[LLVMdev] question about the DIBuilder::createStructType
...reate debugging information, I'm not clear about two things: [1] Could you help explain the meaning and the difference between"alignment" and "offset" of a type ? e.g class Actor{ int age; const char* name; } Besides, I found the denotation of createMemberType and createStructType both have "Member Alignment" and "Member Size" fields, are they the same thing ? If they are, then for the "Actor", which member is it referring to ? [2] In createMemberType, the last arg “Ty” is parent type, does it mean "Actor" in the...
2011 Jun 20
0
[LLVMdev] [PATCH] Context of DW_TAG_member
...nerating debugging information for a data member (e.g., a struct field), Clang doesn't set the member's context to the enclosed class/struct/union type --- it currently sets the context to the file instead. The attached patch corrects this. Thanks. Do you have a test case ? Please update createMemberType() directly, instead of creating new overloaded createMemberType(). Thanks, - Devang > > - xi > > > <clang.diff><llvm.diff>_______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu &gt...
2011 Jun 18
2
[LLVMdev] [PATCH] Context of DW_TAG_member
Hi, When generating debugging information for a data member (e.g., a struct field), Clang doesn't set the member's context to the enclosed class/struct/union type --- it currently sets the context to the file instead. The attached patch corrects this. Thanks. - xi -------------- next part -------------- A non-text attachment was scrubbed... Name: clang.diff Type:
2014 Dec 19
2
[LLVMdev] question about the DIBuilder::createStructType
...014 at 10:04 AM, RICHARD STUCKEY < richard.stuckey at virgin.net> wrote: > > Hi, Hui Zang, > > It helps to remember that at runtime a variable of a structure type has to > be allocated store, and to think about how that variable is laid out in > store. > > You must use createMemberType to create a DIType for *each* field (aka > member) in the structure; you then store those DIType's as the elements of > a DIArray which you pass as the 'Elements' parameter to createStructType. > > When creating a structure member, you have to specify this information : &gt...
2011 Feb 25
0
[LLVMdev] DIFactory interface is going away
...with > fields that may or may not be present depending on the value of other fields. > Such types occur in Ada for example. The metadata constructs used to encode debugging information do not use (or refer) LLVM types directly. Here is the interface to emit debug info for a member. /// createMemberType - Create debugging information entry for a member. /// @param Name Member name. /// @param File File where this member is defined. /// @param LineNo L...
2011 Feb 25
2
[LLVMdev] DIFactory interface is going away
...ding on the value of other fields. >> Such types occur in Ada for example. > > The metadata constructs used to encode debugging information do not use (or refer) LLVM types directly. Here is the interface to emit debug info for a member. thanks for the explanation. > > /// createMemberType - Create debugging information entry for a member. > /// @param Name Member name. > /// @param File File where this member is defined. > /// @param LineNo Line number. > /// @param SizeInBits Member size. For Ada this needs to be a Value* si...
2011 Feb 25
2
[LLVMdev] DIFactory interface is going away
On 24/02/11 22:34, Jason Kim wrote: > On Thu, Feb 24, 2011 at 1:29 PM, Devang Patel<dpatel at apple.com> wrote: >> Hi All, >> DIFactory interface, part of DebugInfo.h, is used to emit LLVM IR constructs >> to encode debugging information. We are replacing this interface with new >> simple interface, DIBuilder. >> Here is one example that demonstrates