diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-10-25 02:54:08 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-10-25 02:54:08 +0000 |
commit | ca7664e761c68f9b77b39ad589bdc8c58ad61e0f (patch) | |
tree | 6edfa13036240b8b9a25626bdea104cbf2a5eb59 /llvm/lib/IR/Function.cpp | |
parent | 3364f907836d50482f77c7def3952b09e99caa97 (diff) | |
download | bcm5719-llvm-ca7664e761c68f9b77b39ad589bdc8c58ad61e0f.tar.gz bcm5719-llvm-ca7664e761c68f9b77b39ad589bdc8c58ad61e0f.zip |
IR: Deduplicate getParent() functions on derived classes of GlobalValue into the base class. NFCI.
llvm-svn: 285050
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index e1b4d4af457..d5ecd92524d 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -330,10 +330,6 @@ bool Function::arg_empty() const { return getFunctionType()->getNumParams() == 0; } -void Function::setParent(Module *parent) { - Parent = parent; -} - // dropAllReferences() - This function causes all the subinstructions to "let // go" of all references that they are maintaining. This allows one to // 'delete' a whole class at a time, even though there may be circular |