diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-19 00:10:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-19 00:10:25 +0000 |
commit | f9521355c4cb7414ac00ab7244a6227a958a483e (patch) | |
tree | 8f43793f2a7a92f312efad6e63bf4a168eadcf71 /include/llvm | |
parent | 839c522e0c9b0515e81bf0fa0aa20cb76c78128b (diff) | |
download | external_llvm-f9521355c4cb7414ac00ab7244a6227a958a483e.zip external_llvm-f9521355c4cb7414ac00ab7244a6227a958a483e.tar.gz external_llvm-f9521355c4cb7414ac00ab7244a6227a958a483e.tar.bz2 |
add isvararg tracking to CCState
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/CallingConvLower.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/CallingConvLower.h b/include/llvm/CodeGen/CallingConvLower.h index 5e5bbce..4308c37 100644 --- a/include/llvm/CodeGen/CallingConvLower.h +++ b/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<CCValAssign, 16> &Locs; @@ -112,7 +113,7 @@ class CCState { unsigned StackOffset; SmallVector<uint32_t, 16> UsedRegs; public: - CCState(unsigned CC, const TargetMachine &TM, + CCState(unsigned CC, bool isVarArg, const TargetMachine &TM, SmallVector<CCValAssign, 16> &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; } |