[llvm] [GlobalOpt] Update debug info when changing CC to Fast (PR #144303)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 11:46:10 PDT 2025
================
@@ -1920,6 +1920,14 @@ static void RemovePreallocated(Function *F) {
}
}
+static unsigned char GetDebugInfoFastCC(const Triple &Triple) {
+ if (Triple.isOSWindows() && Triple.isArch32Bit()) {
+ return llvm::dwarf::DW_CC_BORLAND_msfastcall;
+ }
+
+ return llvm::dwarf::DW_CC_normal;
+}
+
----------------
dwblaikie wrote:
Perhaps @zmodem has some thoughts on the PDB side of things, and @nikic has some thoughts on the broader LLVM architectural issue.
Yeah, I'd be open to the right direction being each architecture having a mapping from their real CCs to the DWARF CC they want to use for them, and removing the CC from the LLVM IR debug info metadata.
https://github.com/llvm/llvm-project/pull/144303
More information about the llvm-commits
mailing list