diff options
author | Stuart Hastings <stuart@apple.com> | 2011-02-28 17:17:53 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-02-28 17:17:53 +0000 |
commit | 67c5c3e9398d1446c2af93eb3c074c83fa7231f7 (patch) | |
tree | 3f415cd5e5495653b341097cbc3467beb51f8772 /llvm/lib/CodeGen/CallingConvLower.cpp | |
parent | da20991a1b9f376ac46fb5cc37566694287dfb5a (diff) | |
download | bcm5719-llvm-67c5c3e9398d1446c2af93eb3c074c83fa7231f7.tar.gz bcm5719-llvm-67c5c3e9398d1446c2af93eb3c074c83fa7231f7.zip |
Support for byval parameters on ARM. Will be enabled by a forthcoming
patch to the front-end. Radar 7662569.
llvm-svn: 126655
Diffstat (limited to 'llvm/lib/CodeGen/CallingConvLower.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CallingConvLower.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp index 2ad80b4d3a7..c131c32a1a2 100644 --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -19,6 +19,7 @@ #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetLowering.h" using namespace llvm; CCState::CCState(CallingConv::ID CC, bool isVarArg, const TargetMachine &tm, @@ -47,6 +48,7 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT, unsigned Offset = AllocateStack(Size, Align); addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo)); + TM.getTargetLowering()->HandleByVal(const_cast<CCState*>(this)); } /// MarkAllocated - Mark a register and all of its aliases as allocated. |