diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-05 19:35:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-05 19:35:07 +0000 |
commit | 2bd5b9f55804f9c416640031465c4b7c6cce1ce4 (patch) | |
tree | 8047edff021adfe2d91847196bf8f7b8e0b8a0b2 /llvm/lib/Linker/LinkModules.cpp | |
parent | d1fb7e45901c33f2dd53d6f46a2a79f421732e22 (diff) | |
download | bcm5719-llvm-2bd5b9f55804f9c416640031465c4b7c6cce1ce4.tar.gz bcm5719-llvm-2bd5b9f55804f9c416640031465c4b7c6cce1ce4.zip |
Remove unused arguments. NFC.
llvm-svn: 223503
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 18fab19833d..1d4dae4c479 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -484,10 +484,9 @@ private: const GlobalVariable *SrcGV); bool linkGlobalValueProto(GlobalValue *GV); - GlobalValue *linkGlobalVariableProto(const GlobalVariable *SGVar, - GlobalValue *DGV); + GlobalValue *linkGlobalVariableProto(const GlobalVariable *SGVar); GlobalValue *linkFunctionProto(const Function *SF, GlobalValue *DGV); - GlobalValue *linkGlobalAliasProto(const GlobalAlias *SGA, GlobalValue *DGV); + GlobalValue *linkGlobalAliasProto(const GlobalAlias *SGA); bool linkModuleFlagsMetadata(); @@ -1023,11 +1022,11 @@ bool ModuleLinker::linkGlobalValueProto(GlobalValue *SGV) { NewGV = DGV; } else { if (auto *SGVar = dyn_cast<GlobalVariable>(SGV)) - NewGV = linkGlobalVariableProto(SGVar, DGV); + NewGV = linkGlobalVariableProto(SGVar); else if (auto *SF = dyn_cast<Function>(SGV)) NewGV = linkFunctionProto(SF, DGV); else - NewGV = linkGlobalAliasProto(cast<GlobalAlias>(SGV), DGV); + NewGV = linkGlobalAliasProto(cast<GlobalAlias>(SGV)); } if (!NewGV) @@ -1069,8 +1068,8 @@ bool ModuleLinker::linkGlobalValueProto(GlobalValue *SGV) { /// Loop through the global variables in the src module and merge them into the /// dest module. -GlobalValue *ModuleLinker::linkGlobalVariableProto(const GlobalVariable *SGVar, - GlobalValue *DGV) { +GlobalValue * +ModuleLinker::linkGlobalVariableProto(const GlobalVariable *SGVar) { // No linking to be performed or linking from the source: simply create an // identical version of the symbol over in the dest module... the // initializer will be filled in later by LinkGlobalInits. @@ -1102,8 +1101,7 @@ GlobalValue *ModuleLinker::linkFunctionProto(const Function *SF, } /// Set up prototypes for any aliases that come over from the source module. -GlobalValue *ModuleLinker::linkGlobalAliasProto(const GlobalAlias *SGA, - GlobalValue *DGV) { +GlobalValue *ModuleLinker::linkGlobalAliasProto(const GlobalAlias *SGA) { // If there is no linkage to be performed or we're linking from the source, // bring over SGA. auto *PTy = cast<PointerType>(TypeMap.get(SGA->getType())); |