[clang] [clang-cl] Add new option `/pathmap:<from>=<to>` to replace the path prefix <from> with <to>. (PR #198664)

Daniel Paoliello via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 5 09:32:49 PDT 2026


================
@@ -0,0 +1,19 @@
+// RUN: %clang_cl /clang:-emit-llvm /pathmap:%p=x:/path-to/ /Fo:%t.bc /c %s
+// RUN: llvm-dis %t.bc -o - | FileCheck %s --check-prefix=CHECK-PREFIX-MAP 
----------------
dpaoliello wrote:

Do we really need a full bitcode compilation and disassembly for this? Wouldn't appear in the IR?

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


More information about the cfe-commits mailing list