[llvm-commits] [llvm] r65356 - in /llvm/branches/Apple/Dib:, lib/CodeGen/AsmPrinter/DwarfWriter.cpp, lib/Transforms/Utils/BasicBlockUtils.cpp, lib/Transforms/Utils/SimplifyCFG.cpp, test/Transforms/SimplifyCFG/dbginfo.ll

Eli Friedman eli.friedman at gmail.com
Tue Feb 24 19:08:13 PST 2009


On Tue, Feb 24, 2009 at 6:24 PM, Devang Patel <dpatel at apple.com> wrote:
> As we have two "return" basic block, may be each basic block should have one
> "llvm.dbg.region.end", but there is just one "llvm.dbg.function.start" for
> paring.
>
> llvm.dbg.func.start and llvm.dbg.region.end marks declarative scopes of
> function begin and function end. If a function has 10 return statements then
> also there will only one llvm.dbg.region.end corresponding to
> llvm.dbg.func.start

This confused me a lot the last time I was looking at debug info...
what exactly is the "region" in question?    Do
llvm.debug.func.start/llvm.dbg.region.end care about the order of the
blocks in a function?  Or is there some other way to tell?

-Eli



More information about the llvm-commits mailing list