mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove unused MaxSize variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72f7001944
commit
a22c3effe1
@ -208,9 +208,6 @@ FindUniqueOperandCommands(std::vector<std::string> &UniqueOperandCommands,
|
|||||||
// Otherwise, scan to see if all of the other instructions in this command
|
// Otherwise, scan to see if all of the other instructions in this command
|
||||||
// set share the operand.
|
// set share the operand.
|
||||||
bool AllSame = true;
|
bool AllSame = true;
|
||||||
// Keep track of the maximum, number of operands or any
|
|
||||||
// instruction we see in the group.
|
|
||||||
size_t MaxSize = FirstInst->Operands.size();
|
|
||||||
|
|
||||||
for (NIT = std::find(NIT+1, InstIdxs.end(), CommandIdx);
|
for (NIT = std::find(NIT+1, InstIdxs.end(), CommandIdx);
|
||||||
NIT != InstIdxs.end();
|
NIT != InstIdxs.end();
|
||||||
@ -220,10 +217,6 @@ FindUniqueOperandCommands(std::vector<std::string> &UniqueOperandCommands,
|
|||||||
const AsmWriterInst *OtherInst =
|
const AsmWriterInst *OtherInst =
|
||||||
getAsmWriterInstByID(NIT-InstIdxs.begin());
|
getAsmWriterInstByID(NIT-InstIdxs.begin());
|
||||||
|
|
||||||
if (OtherInst &&
|
|
||||||
OtherInst->Operands.size() > FirstInst->Operands.size())
|
|
||||||
MaxSize = std::max(MaxSize, OtherInst->Operands.size());
|
|
||||||
|
|
||||||
if (!OtherInst || OtherInst->Operands.size() == Op ||
|
if (!OtherInst || OtherInst->Operands.size() == Op ||
|
||||||
OtherInst->Operands[Op] != FirstInst->Operands[Op]) {
|
OtherInst->Operands[Op] != FirstInst->Operands[Op]) {
|
||||||
AllSame = false;
|
AllSame = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user