[llvm] r356246 - [llvm-readobj] Delete unused variable. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 03:34:57 PDT 2019
Author: maskray
Date: Fri Mar 15 03:34:57 2019
New Revision: 356246
URL: http://llvm.org/viewvc/llvm-project?rev=356246&view=rev
Log:
[llvm-readobj] Delete unused variable. NFC
Modified:
llvm/trunk/tools/llvm-readobj/ObjDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ObjDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ObjDumper.cpp?rev=356246&r1=356245&r2=356246&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ObjDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ObjDumper.cpp Fri Mar 15 03:34:57 2019
@@ -35,7 +35,6 @@ static Expected<object::SectionRef>
getSecNameOrIndexAsSecRef(const object::ObjectFile *Obj, StringRef SecName) {
char *StrPtr;
long SectionIndex = strtol(SecName.data(), &StrPtr, 10);
- object::SectionRef Section;
long SecIndex;
if (Obj->isELF())
SecIndex = 0;
More information about the llvm-commits
mailing list