diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-01-21 00:00:53 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-01-21 00:00:53 +0000 |
| commit | 394524d940b9374593d6b7b775d2b0dd26ecc6ac (patch) | |
| tree | 6d777c63b4289ba4475895b2d3eb8b10c0edc72a /llvm/lib | |
| parent | 400f39308c70f88cab2aeca25819409941422d4c (diff) | |
| download | bcm5719-llvm-394524d940b9374593d6b7b775d2b0dd26ecc6ac.tar.gz bcm5719-llvm-394524d940b9374593d6b7b775d2b0dd26ecc6ac.zip | |
Remove redundant argument.
It is already a member variable.
llvm-svn: 258369
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Linker/IRMover.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp index f1b04577534..d136af56341 100644 --- a/llvm/lib/Linker/IRMover.cpp +++ b/llvm/lib/Linker/IRMover.cpp @@ -499,7 +499,7 @@ class IRLinker { /// from the source module that we don't need to link into the dest module, /// because the functions were not imported directly or via an inlined body /// in an imported function. - void findNeededSubprograms(ValueToValueMapTy &ValueMap); + void findNeededSubprograms(); /// The value mapper leaves nulls in the list of subprograms for any /// in the UnneededSubprograms map. Strip those out after metadata linking. @@ -1195,7 +1195,7 @@ bool IRLinker::linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src) { return false; } -void IRLinker::findNeededSubprograms(ValueToValueMapTy &ValueMap) { +void IRLinker::findNeededSubprograms() { // Track unneeded nodes to make it simpler to handle the case // where we are checking if an already-mapped SP is needed. NamedMDNode *CompileUnits = SrcM.getNamedMetadata("llvm.dbg.cu"); @@ -1270,7 +1270,7 @@ void IRLinker::stripNullSubprograms() { /// Insert all of the named MDNodes in Src into the Dest module. void IRLinker::linkNamedMDNodes() { - findNeededSubprograms(ValueMap); + findNeededSubprograms(); const NamedMDNode *SrcModFlags = SrcM.getModuleFlagsMetadata(); for (const NamedMDNode &NMD : SrcM.named_metadata()) { // Don't link module flags here. Do them separately. |

