[cfe-commits] r51553 - in /cfe/trunk: include/clang/AST/Type.h lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGStmt.cpp lib/CodeGen/CodeGenFunction.cpp

Eli Friedman eli.friedman at gmail.com
Sun May 25 02:55:12 PDT 2008


On Sun, May 25, 2008 at 1:52 AM,  <Sanjiv.Gupta at microchip.com> wrote:
>>
>> What happens if the last block gets zapped by SimplfyCFG or
>> something similar?
>>
>
> These insns (which are part of the BB by then) will also get zapped.
> Do you see any problems there? Let me know.

The issue I was getting at doesn't exist, at least not with the way
llc uses debug info.  llc doesn't really support the debug spec
properly in terms of regions, and it actually doesn't mind if you
leave out the function end marker.

That said, if you have an llc port that actually wants
regions/functions to start and end consistently, you're probably going
to have to generate start/endregion markers differently from the way
you're doing it right now.  The issue is that even for a simple
function like "int a(int a) {return a;}", passes like simplifycfg will
zap the function end marker.

-Eli



More information about the cfe-commits mailing list