diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-12-05 18:37:44 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-12-05 18:37:44 +0000 |
commit | 56acd5a66ea3800a23be0cfdbc422624398cb096 (patch) | |
tree | 275b664f4bc239ea72d9d995bd23ac5022e590b0 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | a717bc78b7723cfff52fdb3d9e928cf2c69a87b5 (diff) | |
download | bcm5719-llvm-56acd5a66ea3800a23be0cfdbc422624398cb096.tar.gz bcm5719-llvm-56acd5a66ea3800a23be0cfdbc422624398cb096.zip |
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
llvm-svn: 348397
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 93c9b7d3671..4b627d615f8 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -341,6 +341,9 @@ public: void finalize(); + /// Remap a given path with the current debug prefix map + std::string remapDIPath(StringRef) const; + /// Register VLA size expression debug node with the qualified type. void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { SizeExprCache[Ty] = SizeExpr; @@ -528,9 +531,6 @@ private: /// Create new compile unit. void CreateCompileUnit(); - /// Remap a given path with the current debug prefix map - std::string remapDIPath(StringRef) const; - /// Compute the file checksum debug info for input file ID. Optional<llvm::DIFile::ChecksumKind> computeChecksum(FileID FID, SmallString<32> &Checksum) const; |