Expand auto for readability.

llvm-svn: 192162
This commit is contained in:
Rui Ueyama 2013-10-08 03:59:42 +00:00
parent 64a11733c9
commit 7a633b4de5
4 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ public:
/// \brief Parse the input file to lld::File.
llvm::error_code parse(const LinkingContext &ctx, raw_ostream &diagnostics) {
auto filePath = path(ctx);
ErrorOr<StringRef> filePath = path(ctx);
if (!filePath &&
error_code(filePath) == llvm::errc::no_such_file_or_directory)
return make_error_code(llvm::errc::no_such_file_or_directory);

View File

@ -42,7 +42,7 @@ public:
/// \brief Parse the input file to lld::File.
llvm::error_code parse(const LinkingContext &ctx, raw_ostream &diagnostics) {
auto filePath = path(ctx);
ErrorOr<StringRef> filePath = path(ctx);
if (!filePath &&
error_code(filePath) == llvm::errc::no_such_file_or_directory)
return make_error_code(llvm::errc::no_such_file_or_directory);

View File

@ -72,7 +72,7 @@ public:
/// \brief Parse the input file to lld::File.
llvm::error_code parse(const LinkingContext &ctx, raw_ostream &diagnostics) {
auto filePath = path(ctx);
ErrorOr<StringRef> filePath = path(ctx);
if (!filePath &&
error_code(filePath) == llvm::errc::no_such_file_or_directory)
return make_error_code(llvm::errc::no_such_file_or_directory);

View File

@ -39,7 +39,7 @@ public:
/// \brief Parse the input file to lld::File.
llvm::error_code parse(const LinkingContext &ctx, raw_ostream &diagnostics) {
auto filePath = path(ctx);
ErrorOr<StringRef> filePath = path(ctx);
if (!filePath &&
error_code(filePath) == llvm::errc::no_such_file_or_directory)
return make_error_code(llvm::errc::no_such_file_or_directory);