IR changes LGTM, if you add the missing verifier check (I'm surprised
this *ever* passed the verifier...)

Someone else will have to look at DwarfDebug.cpp.


> On 2016-Apr-05, at 16:55, Adrian Prantl <apra...@apple.com> wrote:
> 
> aprantl created this revision.
> aprantl added reviewers: dblaikie, echristo, dexonsmith.
> aprantl added subscribers: davide, llvm-commits, cfe-commits.
> aprantl set the repository for this revision to rL LLVM.
> 
> As indicated in D18612, sample-based profiling and optimization remarks 
> currently remove DICompileUnits from llvm.dbg.cu to suppress the emission of 
> debug info from them. This is somewhat of a hack and only borderline legal IR.
> 
> This patch uses the recently introduced NoDebug emission kind in 
> DICompileUnit to achieve the same result without breaking the Verifier. A 
> nice side-effect of this change is that it is now possible to combine NoDebug 
> and regular compile units under LTO.
> 
> For simplicity I combined the llvm and cfe patches into one review.
> 
> Repository:
>  rL LLVM
> 
> http://reviews.llvm.org/D18808
> 
> Files:
>  include/llvm/IR/DIBuilder.h
>  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
>  lib/IR/DIBuilder.cpp
>  test/DebugInfo/X86/mixed-nodebug-cu.ll
>  tools/clang/lib/CodeGen/CGDebugInfo.cpp
>  tools/clang/test/Frontend/optimization-remark.c
>  tools/clang/test/Frontend/profile-sample-use-loc-tracking.c
> 
> <D18808.52745.patch>

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to