search for: createcompositetyp

Displaying 6 results from an estimated 6 matches for "createcompositetyp".

Did you mean: createcompositetype
2010 Sep 06
2
[LLVMdev] More DIFactory questions - still stumped
...t;type())); } const ParameterList & params = type->params(); for (ParameterList::const_iterator it = params.begin(); it != params.end(); ++it) { const ParameterDefn * param = *it; args.push_back(genDIParameterType(param->type())); } DICompositeType fnType = dbgFactory_.CreateCompositeType( dwarf::DW_TAG_subroutine_type, dbgCompileUnit_, "", dbgFile_, 0, // Source line 0, // Size 0, // Align 0, // Offset 0, // Flags DIType(), dbgFactory_.GetOrCreateArray(args.data(), args.size())); dbgTypeMap_[type] = fnT...
2010 Sep 07
0
[LLVMdev] More DIFactory questions - still stumped
...erator it = params.begin(); it != > params.end(); ++it) { >     const ParameterDefn * param = *it; >     args.push_back(genDIParameterType(param->type())); >   } Don't do that. I know it looks right, but it's broken in DIFactory. >   DICompositeType fnType = dbgFactory_.CreateCompositeType( >       dwarf::DW_TAG_subroutine_type, >       dbgCompileUnit_, I use the file here, not the compile unit... But again, I could be wrong. Hope that puts you in the right direction. -- cheers, --renato http://systemcall.org/ Reclaim your digital rights, eliminate DRM, learn more at htt...
2010 Sep 07
2
[LLVMdev] More DIFactory questions - still stumped
...; params.end(); ++it) { > > const ParameterDefn * param = *it; > > args.push_back(genDIParameterType(param->type())); > > } > > Don't do that. I know it looks right, but it's broken in DIFactory. > > > > DICompositeType fnType = dbgFactory_.CreateCompositeType( > > dwarf::DW_TAG_subroutine_type, > > dbgCompileUnit_, > > I use the file here, not the compile unit... But again, I could be wrong. > > Hope that puts you in the right direction. > OK I made 3 changes: -- changed isDefinition to true. (I'm also only g...
2010 Sep 07
0
[LLVMdev] More DIFactory questions - still stumped
...arams.end(); ++it) { > > const ParameterDefn * param = *it; > > args.push_back(genDIParameterType(param->type())); > > } > > Don't do that. I know it looks right, but it's broken in DIFactory. > > > > DICompositeType fnType = dbgFactory_.CreateCompositeType( > > dwarf::DW_TAG_subroutine_type, > > dbgCompileUnit_, > > I use the file here, not the compile unit... But again, I could be wrong. > > Hope that puts you in the right direction. > > OK I made 3 changes: > -- changed isDefinition to true. (I'm...
2010 Sep 05
0
[LLVMdev] More DIFactory questions - still stumped
On 5 September 2010 19:32, Talin <viridia at gmail.com> wrote: > I've carefully studied the source code of CGDebugInfo in clang as a working > example. One puzzlement is that there's a discrepancy between what the > "source level debugging with LLVM" docs say and what clang does: According > to the docs, DW_TAG_formal_parameter is used to specify a formal
2010 Sep 05
2
[LLVMdev] More DIFactory questions - still stumped
I hate to be a nag, but after several days of working on this I am still utterly stumped. Let me recap the situation as it currently stands: I'm trying to write code that generates DWARF debugging information for my compiler using DIFactory and friends. Unfortunately the information I am generating appears to be invalid, but I can't figure out the cause. Based on the advice in the