From f401b2b4c38093025e0203289bc0cd3cba51abd1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Jun 2007 00:10:25 +0000 Subject: [PATCH] add isvararg tracking to CCState llvm-svn: 37639 --- llvm/include/llvm/CodeGen/CallingConvLower.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h index 5e5bbcecc6b6..4308c377d110 100644 --- a/llvm/include/llvm/CodeGen/CallingConvLower.h +++ b/llvm/include/llvm/CodeGen/CallingConvLower.h @@ -105,6 +105,7 @@ typedef bool CCAssignFn(unsigned ValNo, MVT::ValueType ValVT, /// stack slots are used. It provides accessors to allocate these values. class CCState { unsigned CallingConv; + bool IsVarArg; const TargetMachine &TM; const MRegisterInfo &MRI; SmallVector &Locs; @@ -112,7 +113,7 @@ class CCState { unsigned StackOffset; SmallVector UsedRegs; public: - CCState(unsigned CC, const TargetMachine &TM, + CCState(unsigned CC, bool isVarArg, const TargetMachine &TM, SmallVector &locs); void addLoc(const CCValAssign &V) { @@ -121,6 +122,7 @@ public: const TargetMachine &getTarget() const { return TM; } unsigned getCallingConv() const { return CallingConv; } + bool isVarArg() const { return IsVarArg; } unsigned getNextStackOffset() const { return StackOffset; }