[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

Devang Patel dpatel at apple.com
Tue Feb 24 18:24:38 PST 2009


On Feb 24, 2009, at 6:17 PM, Sheng Zhou wrote:

> y question is as the "llvm.dbg.region.end" here is to pair off with  
> "llvm.dbg.function.start", and indicating the end of  the function,
> is it correct to move it to the previous basic block for this case?

Yes.

> 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

-
Devang



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090224/40a9cdb1/attachment.html>


More information about the llvm-commits mailing list