[PATCH] D55137: Honor -fdebug-prefix-map when creating function names for the debug info.

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 30 11:34:14 PST 2018


aprantl created this revision.
aprantl added reviewers: dblaikie, davide.
aprantl added a project: debug-info.

This adds a callback to `PrintingPolicy` to allow `CGDebugInfo` to remap file paths according to `-fdebug-prefix-map`. Otherwise the debug info (particularly function names for C++ lambdas) may contain paths that should have been remapped in the debug info.


https://reviews.llvm.org/D55137

Files:
  include/clang/AST/PrettyPrinter.h
  lib/AST/TypePrinter.cpp
  lib/CodeGen/CGDebugInfo.cpp
  lib/CodeGen/CGDebugInfo.h
  test/CodeGenCXX/debug-prefix-map-lambda.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55137.176171.patch
Type: text/x-patch
Size: 5208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181130/fa280e37/attachment.bin>


More information about the cfe-commits mailing list