Rename the ParmContext enum values to make a bit more sense and add a small
authorCameron Zwarich <zwarich@apple.com>
Fri, 10 Jun 2011 20:37:36 +0000 (20:37 +0000)
committerCameron Zwarich <zwarich@apple.com>
Fri, 10 Jun 2011 20:37:36 +0000 (20:37 +0000)
comment on their meaning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132854 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/CallingConvLower.h
lib/CodeGen/CallingConvLower.cpp

index f6a9f6c04d930f9a9d2faf58ccbbb85cb11e5a8f..a953094b4448da3b5a6322ebbde0f1791f0164b1 100644 (file)
@@ -142,7 +142,10 @@ typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT,
                         MVT &LocVT, CCValAssign::LocInfo &LocInfo,
                         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
 /// return values.  It captures which registers are already assigned and which
index eb90c049cd0507c94259c3becbe809bb4d7c7b9e..14eb0541dc8d7866d7ee62afd69bfa977f216ece 100644 (file)
@@ -28,7 +28,7 @@ CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf,
                  LLVMContext &C)
   : CallingConv(CC), IsVarArg(isVarArg), MF(mf), TM(tm),
     TRI(*TM.getRegisterInfo()), Locs(locs), Context(C),
-    CallOrPrologue(Invalid) {
+    CallOrPrologue(Unknown) {
   // No stack is used.
   StackOffset = 0;