mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Added some eye-candy for Subtarget type checking
Added X86 StdCall & FastCall calling conventions. Codegen will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30446 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3907,7 +3907,7 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, SelectionDAG &DAG) {
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
const Function* Fn = MF.getFunction();
|
||||
if (Fn->hasExternalLinkage() &&
|
||||
Subtarget->TargetType == X86Subtarget::isCygwin &&
|
||||
Subtarget->isTargetCygwin() &&
|
||||
Fn->getName() == "main")
|
||||
MF.getInfo<X86FunctionInfo>()->setForceFramePointer(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user