summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CallingConvLower.cpp
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2011-02-28 17:17:53 +0000
committerStuart Hastings <stuart@apple.com>2011-02-28 17:17:53 +0000
commit67c5c3e9398d1446c2af93eb3c074c83fa7231f7 (patch)
tree3f415cd5e5495653b341097cbc3467beb51f8772 /llvm/lib/CodeGen/CallingConvLower.cpp
parentda20991a1b9f376ac46fb5cc37566694287dfb5a (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud