diff options
author | Oliver Stannard <oliver.stannard@linaro.org> | 2021-03-29 11:31:17 +0100 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@linaro.org> | 2021-03-29 11:32:22 +0100 |
commit | 07e46367baeca96d84b03fa215b41775f69d5989 (patch) | |
tree | 154a7d4ca86da09b4610d7be3b4b4fb72e612f42 /llvm/lib/IR/Function.cpp | |
parent | b5da813fe91ee1d7b965bf3aa72e56a13d02dd7d (diff) | |
download | llvm-07e46367baeca96d84b03fa215b41775f69d5989.zip llvm-07e46367baeca96d84b03fa215b41775f69d5989.tar.gz llvm-07e46367baeca96d84b03fa215b41775f69d5989.tar.bz2 |
Revert "Reapply "OpaquePtr: Turn inalloca into a type attribute""
Reverting because test 'Bindings/Go/go.test' is failing on most
buildbots.
This reverts commit fc9df309917e57de704f3ce4372138a8d4a23d7a.
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 1001607..7389ec6 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -162,8 +162,6 @@ static Type *getMemoryParamAllocType(AttributeSet ParamAttrs, Type *ArgTy) { return ByRefTy; if (Type *PreAllocTy = ParamAttrs.getPreallocatedType()) return PreAllocTy; - if (Type *InAllocaTy = ParamAttrs.getInAllocaType()) - return InAllocaTy; // FIXME: sret and inalloca always depends on pointee element type. It's also // possible for byval to miss it. @@ -215,11 +213,6 @@ Type *Argument::getParamByRefType() const { return getParent()->getParamByRefType(getArgNo()); } -Type *Argument::getParamInAllocaType() const { - assert(getType()->isPointerTy() && "Only pointers have inalloca types"); - return getParent()->getParamInAllocaType(getArgNo()); -} - uint64_t Argument::getDereferenceableBytes() const { assert(getType()->isPointerTy() && "Only pointers have dereferenceable bytes"); |