mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Rename the ParmContext enum values to make a bit more sense and add a small
comment on their meaning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -142,7 +142,10 @@ typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT,
|
|||||||
MVT &LocVT, CCValAssign::LocInfo &LocInfo,
|
MVT &LocVT, CCValAssign::LocInfo &LocInfo,
|
||||||
ISD::ArgFlagsTy &ArgFlags, CCState &State);
|
ISD::ArgFlagsTy &ArgFlags, CCState &State);
|
||||||
|
|
||||||
typedef enum { Invalid, Prologue, Call } ParmContext;
|
/// ParmContext - This enum tracks whether calling convention lowering is in
|
||||||
|
/// the context of prologue or call generation. Not all backends make use of
|
||||||
|
/// this information.
|
||||||
|
typedef enum { Unknown, Prologue, Call } ParmContext;
|
||||||
|
|
||||||
/// CCState - This class holds information needed while lowering arguments and
|
/// CCState - This class holds information needed while lowering arguments and
|
||||||
/// return values. It captures which registers are already assigned and which
|
/// return values. It captures which registers are already assigned and which
|
||||||
|
@@ -28,7 +28,7 @@ CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf,
|
|||||||
LLVMContext &C)
|
LLVMContext &C)
|
||||||
: CallingConv(CC), IsVarArg(isVarArg), MF(mf), TM(tm),
|
: CallingConv(CC), IsVarArg(isVarArg), MF(mf), TM(tm),
|
||||||
TRI(*TM.getRegisterInfo()), Locs(locs), Context(C),
|
TRI(*TM.getRegisterInfo()), Locs(locs), Context(C),
|
||||||
CallOrPrologue(Invalid) {
|
CallOrPrologue(Unknown) {
|
||||||
// No stack is used.
|
// No stack is used.
|
||||||
StackOffset = 0;
|
StackOffset = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user