summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-06-10 20:37:36 +0000
committerCameron Zwarich <zwarich@apple.com>2011-06-10 20:37:36 +0000
commit8b58a83889dda7adbbc51e701f0b354021fdfff5 (patch)
tree5843985ff89eb2ddb9f97587f105d1411a70558f /llvm
parent6221139453e1bf2a444ab2d06beed1fec79fff12 (diff)
downloadbcm5719-llvm-8b58a83889dda7adbbc51e701f0b354021fdfff5.tar.gz
bcm5719-llvm-8b58a83889dda7adbbc51e701f0b354021fdfff5.zip
Rename the ParmContext enum values to make a bit more sense and add a small
comment on their meaning. llvm-svn: 132854
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/CallingConvLower.h5
-rw-r--r--llvm/lib/CodeGen/CallingConvLower.cpp2
2 files changed, 5 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h
index f6a9f6c04d9..a953094b444 100644
--- a/llvm/include/llvm/CodeGen/CallingConvLower.h
+++ b/llvm/include/llvm/CodeGen/CallingConvLower.h
@@ -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
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp
index eb90c049cd0..14eb0541dc8 100644
--- a/llvm/lib/CodeGen/CallingConvLower.cpp
+++ b/llvm/lib/CodeGen/CallingConvLower.cpp
@@ -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;
OpenPOWER on IntegriCloud