Skip to content
Snippets Groups Projects
Commit c9c33284 authored by David Terei's avatar David Terei Committed by Ian Lynagh
Browse files

Fix LLVM backend in unregisterised build to use C

calling convention.

Patch based on one by Karel Gardas.
parent 94460b29
No related merge requests found
......@@ -29,6 +29,7 @@ import LlvmCodeGen.Regs
import CLabel
import CgUtils ( activeStgRegs )
import Config
import Constants
import FastString
import OldCmm
......@@ -80,7 +81,8 @@ widthToLlvmInt w = LMInt $ widthInBits w
-- | GHC Call Convention for LLVM
llvmGhcCC :: LlvmCallConvention
llvmGhcCC = CC_Ncc 10
llvmGhcCC | cGhcUnregisterised == "NO" = CC_Ncc 10
| otherwise = CC_Ccc
-- | Llvm Function type for Cmm function
llvmFunTy :: LlvmType
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment