summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-05-29 20:46:38 +0000
committerTim Northover <tnorthover@apple.com>2019-05-29 20:46:38 +0000
commit71ee3d02372af7361eda0b59163cf92653ac2bbb (patch)
tree6e62b423c129caa0b420c5e10382284d65898514 /llvm/lib/IR/Function.cpp
parent4b281755ae4951ca83c287680b47d77433f3ee0a (diff)
downloadbcm5719-llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.tar.gz
bcm5719-llvm-71ee3d02372af7361eda0b59163cf92653ac2bbb.zip
Revert "IR: add optional type to 'byval' function parameters"
The IRLinker doesn't delve into the new byval attribute when mapping types, and this breaks LTO. llvm-svn: 362029
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r--llvm/lib/IR/Function.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index a4a78ca4deb..b00deb677b3 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -113,11 +113,6 @@ unsigned Argument::getParamAlignment() const {
return getParent()->getParamAlignment(getArgNo());
}
-Type *Argument::getParamByValType() const {
- assert(getType()->isPointerTy() && "Only pointers have byval types");
- return getParent()->getParamByValType(getArgNo());
-}
-
uint64_t Argument::getDereferenceableBytes() const {
assert(getType()->isPointerTy() &&
"Only pointers have dereferenceable bytes");
OpenPOWER on IntegriCloud