mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Remove redundant variable. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f283cd9acf
commit
f336caf392
@ -190,7 +190,6 @@ writeSymbolTable(raw_fd_ostream &Out, object::Archive::Kind Kind,
|
||||
unsigned StartOffset = 0;
|
||||
SmallString<128> NameBuf;
|
||||
raw_svector_ostream NameOS(NameBuf);
|
||||
unsigned NumSyms = 0;
|
||||
LLVMContext Context;
|
||||
for (unsigned MemberNum = 0, N = Members.size(); MemberNum < N; ++MemberNum) {
|
||||
MemoryBufferRef MemberBuffer = Buffers[MemberNum];
|
||||
@ -218,7 +217,6 @@ writeSymbolTable(raw_fd_ostream &Out, object::Archive::Kind Kind,
|
||||
if (auto EC = S.printName(NameOS))
|
||||
return EC;
|
||||
NameOS << '\0';
|
||||
++NumSyms;
|
||||
MemberOffsetRefs.push_back(MemberNum);
|
||||
print32(Out, Kind, 0);
|
||||
}
|
||||
@ -235,6 +233,7 @@ writeSymbolTable(raw_fd_ostream &Out, object::Archive::Kind Kind,
|
||||
Out.seek(StartOffset - 12);
|
||||
printWithSpacePadding(Out, Pos - StartOffset, 10);
|
||||
Out.seek(StartOffset);
|
||||
unsigned NumSyms = MemberOffsetRefs.size();
|
||||
print32(Out, Kind, NumSyms);
|
||||
Out.seek(Pos);
|
||||
return StartOffset + 4;
|
||||
|
Loading…
Reference in New Issue
Block a user