[clang] [DebugInfo][CodeView] Emit path prefix substitution for COFF object file name. (PR #205729)

Alexandre Ganea via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 3 17:46:26 PDT 2026


================
@@ -50,4 +51,13 @@ void CodeGenOptions::resetNonModularOptions(StringRef ModuleFormat) {
   RelocationModel = llvm::Reloc::PIC_;
 }
 
+std::string CodeGenOptions::remapDebugPathPrefix(StringRef Path) const {
+  SmallString<0> P = Path;
----------------
aganea wrote:

Please use `SmallString<256>` to avoid a bunch of heap allocations.

https://github.com/llvm/llvm-project/pull/205729


More information about the cfe-commits mailing list