[PATCH] Add new debug kind LocTrackingOnly.

Diego Novillo dnovillo at google.com
Fri Jun 20 11:49:21 PDT 2014


Hi echristo, dblaikie,

This new debug emission kind supports emitting line location
information in all instructions, but stops code generation
from emitting debug info to the final output.

This mode is useful when the backend wants to track source
locations during code generation, but it does not want to
produce debug info. This is currently used by optimization
remarks (-Rpass, -Rpass-missed and -Rpass-analysis).

When one of the -Rpass flags is used, the front end will enable
line and column tracking, only if no other debug option is enabled.

Depends on D4234.

http://reviews.llvm.org/D4235

Files:
  include/clang/Basic/DiagnosticFrontendKinds.td
  include/clang/Frontend/CodeGenOptions.def
  include/clang/Frontend/CodeGenOptions.h
  lib/CodeGen/CGDebugInfo.cpp
  lib/CodeGen/CodeGenAction.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/Frontend/optimization-remark.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4235.10700.patch
Type: text/x-patch
Size: 5524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140620/4e8195ee/attachment.bin>


More information about the cfe-commits mailing list