[llvm] [GlobalOpt] Update debug info when changing CC to Fast (PR #144303)
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 04:06:16 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;
+}
+
----------------
zmodem wrote:
If we don't go the route of dropping it from the metadata, maybe the verifier could check for Function/metadata calling convention consistency?
https://github.com/llvm/llvm-project/pull/144303
More information about the llvm-commits
mailing list