efriedma added a comment. > Yeah, my thoughts too. Though if we don't compile with -g, does that mean if > I use DILocation (or w/e metadata for "inlining occurred") that .debug_info > will get emitted, even if the user didn't ask for it? If not, I can probably > switch everything to use DILocation.
clang has a "LocTrackingOnly" setting for debug info, which emits DILocation info into the IR, but emits a marker into the DICompileUnit to skip emitting the .debug_info in the backend. We currently use it for -Rpass. We don't do this by default, I think to save compile time. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D141451/new/ https://reviews.llvm.org/D141451 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits