summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-08-04 22:19:53 +0000
committerRui Ueyama <ruiu@google.com>2014-08-04 22:19:53 +0000
commitdd44a7fb0fcfc23506c4d7a5feadd43d54d41ae5 (patch)
treef04fa0d488af7300bd52c658f236208167c7057b
parentfd4f32be90e654752de1155d32dc90256cb94537 (diff)
downloadbcm5719-llvm-dd44a7fb0fcfc23506c4d7a5feadd43d54d41ae5.tar.gz
bcm5719-llvm-dd44a7fb0fcfc23506c4d7a5feadd43d54d41ae5.zip
[PECOFF] Remove unused paraemter.
llvm-svn: 214791
-rw-r--r--lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
index d3857f9e4d8..c8243a26e76 100644
--- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
@@ -957,7 +957,7 @@ public:
// Interpret .drectve section if the section has contents.
StringRef directives = file->getLinkerDirectives();
if (!directives.empty())
- if (std::error_code ec = handleDirectiveSection(registry, directives))
+ if (std::error_code ec = handleDirectiveSection(directives))
return ec;
if (std::error_code ec = file->parse())
@@ -991,8 +991,7 @@ private:
//
// The section mainly contains /defaultlib (-l in Unix), but can contain any
// options as long as they are valid.
- std::error_code handleDirectiveSection(const Registry &registry,
- StringRef directives) const {
+ std::error_code handleDirectiveSection(StringRef directives) const {
DEBUG(llvm::dbgs() << ".drectve: " << directives << "\n");
// Split the string into tokens, as the shell would do for argv.
OpenPOWER on IntegriCloud