[llvm] [GlobalOpt] Update debug info when changing CC to Fast (PR #144303)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 10:00:07 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:

This seems a bit brittle, if other targets had other calling convention choices - perhaps this logic should go wherever the CC is determined?

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


More information about the llvm-commits mailing list