mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2e2563bf8e
commit
2a531673b9
@ -1696,13 +1696,11 @@ X86TargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
// Some CCs need callee pop.
|
||||
if (IsCalleePop(isVarArg, CallConv)) {
|
||||
BytesToPopOnReturn = StackSize; // Callee pops everything.
|
||||
BytesCallerReserves = 0;
|
||||
} else {
|
||||
BytesToPopOnReturn = 0; // Callee pops nothing.
|
||||
// If this is an sret function, the return should pop the hidden pointer.
|
||||
if (!Is64Bit && CallConv != CallingConv::Fast && ArgsAreStructReturn(Ins))
|
||||
BytesToPopOnReturn = 4;
|
||||
BytesCallerReserves = StackSize;
|
||||
}
|
||||
|
||||
if (!Is64Bit) {
|
||||
|
@ -376,7 +376,6 @@ namespace llvm {
|
||||
unsigned VarArgsGPOffset; // X86-64 vararg func int reg offset.
|
||||
unsigned VarArgsFPOffset; // X86-64 vararg func fp reg offset.
|
||||
int BytesToPopOnReturn; // Number of arg bytes ret should pop.
|
||||
int BytesCallerReserves; // Number of arg bytes caller makes.
|
||||
|
||||
public:
|
||||
explicit X86TargetLowering(X86TargetMachine &TM);
|
||||
@ -404,10 +403,6 @@ namespace llvm {
|
||||
//
|
||||
unsigned getBytesToPopOnReturn() const { return BytesToPopOnReturn; }
|
||||
|
||||
// Return the number of bytes that the caller reserves for arguments passed
|
||||
// to this function.
|
||||
unsigned getBytesCallerReserves() const { return BytesCallerReserves; }
|
||||
|
||||
/// getStackPtrReg - Return the stack pointer register we are using: either
|
||||
/// ESP or RSP.
|
||||
unsigned getStackPtrReg() const { return X86StackPtr; }
|
||||
|
Loading…
Reference in New Issue
Block a user