]> granicus.if.org Git - clang/commit
Honor -fdebug-prefix-map when creating function names for the debug info.
authorAdrian Prantl <aprantl@apple.com>
Sat, 1 Dec 2018 00:24:27 +0000 (00:24 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 1 Dec 2018 00:24:27 +0000 (00:24 +0000)
commit4caba9b460c14f1ebf60fd7ae7b377f3d2493b2f
tree700aeeecc37821de04db25555cd16ad899cbc3f4
parentaa528ab4a083268edddd038d0f251afe792cfa36
Honor -fdebug-prefix-map when creating function names for the 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.

<rdar://problem/46128056>

Differential Revision: https://reviews.llvm.org/D55137

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348060 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/PrettyPrinter.h
lib/AST/TypePrinter.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
test/CodeGenCXX/debug-prefix-map-lambda.cpp [new file with mode: 0644]