[llvm] r260789 - [llvm-size] Remove variable used only once.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 12 17:52:47 PST 2016
Author: davide
Date: Fri Feb 12 19:52:47 2016
New Revision: 260789
URL: http://llvm.org/viewvc/llvm-project?rev=260789&view=rev
Log:
[llvm-size] Remove variable used only once.
The use of auto and the name were very weird anyway.
Modified:
llvm/trunk/tools/llvm-size/llvm-size.cpp
Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=260789&r1=260788&r2=260789&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Fri Feb 12 19:52:47 2016
@@ -450,8 +450,7 @@ static void printFileSectionSizes(String
i != e; ++i) {
if (error(i->getError()))
exit(1);
- auto &c = i->get();
- ErrorOr<std::unique_ptr<Binary>> ChildOrErr = c.getAsBinary();
+ ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->get().getAsBinary();
if (error(ChildOrErr.getError()))
continue;
if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) {
@@ -513,8 +512,7 @@ static void printFileSectionSizes(String
i != e; ++i) {
if (error(i->getError()))
exit(1);
- auto &c = i->get();
- ErrorOr<std::unique_ptr<Binary>> ChildOrErr = c.getAsBinary();
+ ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->get().getAsBinary();
if (error(ChildOrErr.getError()))
continue;
if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) {
@@ -590,8 +588,7 @@ static void printFileSectionSizes(String
i != e; ++i) {
if (error(i->getError()))
exit(1);
- auto &c = i->get();
- ErrorOr<std::unique_ptr<Binary>> ChildOrErr = c.getAsBinary();
+ ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->get().getAsBinary();
if (error(ChildOrErr.getError()))
continue;
if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) {
@@ -654,8 +651,7 @@ static void printFileSectionSizes(String
i != e; ++i) {
if (error(i->getError()))
exit(1);
- auto &c = i->get();
- ErrorOr<std::unique_ptr<Binary>> ChildOrErr = c.getAsBinary();
+ ErrorOr<std::unique_ptr<Binary>> ChildOrErr = i->get().getAsBinary();
if (error(ChildOrErr.getError()))
continue;
if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) {
More information about the llvm-commits
mailing list