diff options
author | Dale Johannesen <dalej@apple.com> | 2008-02-22 17:49:45 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-02-22 17:49:45 +0000 |
commit | 08e78b18b8ef2c939ee95469662c98e23846d860 (patch) | |
tree | ef1a7297738a17ceda59046eaf2b1a9f15222760 /lib/VMCore/Function.cpp | |
parent | 3edd6dcf82c45d1b2644c6dac7deb3d9844ece6b (diff) |
Pass alignment on ByVal parameters, from FE, all
the way through. It is now used for codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 49d770d5bd..0cf808c507 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -143,6 +143,11 @@ bool Function::paramHasAttr(uint16_t i, ParameterAttributes attr) const { return ParamAttrs && ParamAttrs->paramHasAttr(i, attr); } +/// @brief Extract the alignment for a call or parameter (0=unknown). +uint16_t Function::getParamAlignment(uint16_t i) const { + return ParamAttrs ? ParamAttrs->getParamAlignment(i) : 0; +} + /// @brief Determine if the function cannot return. bool Function::doesNotReturn() const { return paramHasAttr(0, ParamAttr::NoReturn); |