summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-05-07 00:04:48 +0000
committerRui Ueyama <ruiu@google.com>2014-05-07 00:04:48 +0000
commitd6a0604180fb6289c7a64d0dc9e5d9826bb5928b (patch)
treec1accca55c0224d3a38c76f69b3eac894073079d
parent360860933939865abd8a7d470847c0a67fc472c5 (diff)
downloadbcm5719-llvm-d6a0604180fb6289c7a64d0dc9e5d9826bb5928b.tar.gz
bcm5719-llvm-d6a0604180fb6289c7a64d0dc9e5d9826bb5928b.zip
Trivial simplification
llvm-svn: 208145
-rw-r--r--lld/lib/Driver/GnuLdInputGraph.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lld/lib/Driver/GnuLdInputGraph.cpp b/lld/lib/Driver/GnuLdInputGraph.cpp
index eae5ec19847..fd806065b0b 100644
--- a/lld/lib/Driver/GnuLdInputGraph.cpp
+++ b/lld/lib/Driver/GnuLdInputGraph.cpp
@@ -21,17 +21,14 @@ error_code ELFFileNode::parse(const LinkingContext &ctx,
ErrorOr<StringRef> filePath = getPath(ctx);
if (error_code ec = filePath.getError())
return ec;
-
if (error_code ec = getBuffer(*filePath))
return ec;
-
if (ctx.logInputFiles())
diagnostics << *filePath << "\n";
if (_attributes._isWholeArchive) {
std::vector<std::unique_ptr<File>> parsedFiles;
- error_code ec = ctx.registry().parseFile(_buffer, parsedFiles);
- if (ec)
+ if (error_code ec = ctx.registry().parseFile(_buffer, parsedFiles))
return ec;
assert(parsedFiles.size() == 1);
std::unique_ptr<File> f(parsedFiles[0].release());
@@ -55,7 +52,6 @@ error_code GNULdScript::parse(const LinkingContext &ctx,
ErrorOr<StringRef> filePath = getPath(ctx);
if (error_code ec = filePath.getError())
return ec;
-
if (error_code ec = getBuffer(*filePath))
return ec;
OpenPOWER on IntegriCloud