diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-09-10 18:56:18 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-08 19:05:02 +0000 |
commit | a4a491e2238b12ccd64d3faf9e6401487f6f1f1b (patch) | |
tree | f7a97d643867326c630d765114ed2d4f54916c4e /contrib/llvm-project/llvm/include/llvm/MC/MCContext.h | |
parent | 61cfbce3347e4372143bcabf7b197577b9f3958a (diff) | |
parent | 5bf671d658572f2de62bde5767e63873cb5fc708 (diff) | |
download | src-a4a491e2238b12ccd64d3faf9e6401487f6f1f1b.tar.gz src-a4a491e2238b12ccd64d3faf9e6401487f6f1f1b.zip |
Merge llvm-project release/15.x llvmorg-15.0.0-9-g1c73596d3454
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvmorg-15.0.0-9-g1c73596d3454.
PR: 265425
MFC after: 2 weeks
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/MC/MCContext.h')
-rw-r--r-- | contrib/llvm-project/llvm/include/llvm/MC/MCContext.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/MC/MCContext.h b/contrib/llvm-project/llvm/include/llvm/MC/MCContext.h index 61520c4f29bf..c20ce79ee4d0 100644 --- a/contrib/llvm-project/llvm/include/llvm/MC/MCContext.h +++ b/contrib/llvm-project/llvm/include/llvm/MC/MCContext.h @@ -190,7 +190,8 @@ private: SmallString<128> CompilationDir; /// Prefix replacement map for source file information. - std::map<const std::string, const std::string> DebugPrefixMap; + std::map<std::string, const std::string, std::greater<std::string>> + DebugPrefixMap; /// The main file name if passed in explicitly. std::string MainFileName; @@ -698,6 +699,9 @@ public: /// Add an entry to the debug prefix map. void addDebugPrefixMapEntry(const std::string &From, const std::string &To); + /// Remap one path in-place as per the debug prefix map. + void remapDebugPath(SmallVectorImpl<char> &Path); + // Remaps all debug directory paths in-place as per the debug prefix map. void RemapDebugPaths(); |