[llvm-commits] [llvm] r78603 - in /llvm/trunk/lib/Target/PIC16: PIC16DebugInfo.cpp PIC16DebugInfo.h

Sanjiv Gupta sanjiv.gupta at microchip.com
Thu Aug 13 12:46:55 PDT 2009


Devang Patel wrote:
> Aha.. I see the bug in my patch.
>
>>>>
>>>>
>>>> +  unsigned SuffixNo = 0;
>>>> +  for (DebugInfoFinder::iterator I = 
>>>> DbgFinder.global_variable_begin(),
>>>> +         E = DbgFinder.global_variable_end(); I != E; ++I) {
>>>> +    DICompositeType CTy(*I);
>>>> +    if (CTy.isNull())
>>>> +      continue;
>
> Here it should use
>
>   for(debugInfoFinder::iterator I = DbgFinder.type_begin(),
>        E = DbgFinder.type_end(); I != E; ++I) {
>      DICompositeType CTY(*I);
>      if (CTy.isNull())
>        continue;
>
>
> Can you try this ?
> Thanks,
> -
> Devang
No. This doesn't work.
I don't see processModule() handling Composites.

What we have there is below:

if (!GV->hasName() || !GV->isConstant()
        || strcmp(GV->getName().data(), "llvm.dbg.global_variable")
        || !GV->hasInitializer())
      continue;

- Sanjiv




More information about the llvm-commits mailing list