@@ -909,11 +909,11 @@ static std::string printInstructionCommon(
909
909
static std::string printInstructionControlFlow (
910
910
const print_format_provider_t * header,
911
911
const CISA_INST* inst,
912
- const Options* opt)
912
+ const Options * opt)
913
913
{
914
914
ISA_Opcode opcode = (ISA_Opcode)inst->opcode ;
915
915
unsigned i = 0 ;
916
- uint16_t label_id = 0 ;
916
+ uint16_t label_id = 0 ;
917
917
918
918
std::stringstream sstr;
919
919
@@ -965,14 +965,11 @@ static std::string printInstructionControlFlow(
965
965
}
966
966
else
967
967
{
968
- auto printInstName = [](std::stringstream& SS, const CISA_INST* I, const char * IName) {
969
- SS << printPredicate (I->opcode , I->pred )
970
- << ISA_Inst_Table[I->opcode ].str
971
- << " "
972
- << printExecutionSize (I->opcode , I->execsize );
973
- };
974
-
975
- const char * InstName = ISA_Inst_Table[opcode].str ;
968
+ sstr << printPredicate (inst->opcode , inst->pred )
969
+ << ISA_Inst_Table[opcode].str
970
+ << " "
971
+ << printExecutionSize (inst->opcode , inst->execsize );
972
+
976
973
switch (opcode)
977
974
{
978
975
case ISA_JMP:
@@ -983,13 +980,6 @@ static std::string printInstructionControlFlow(
983
980
// / label / function id to jump / call to.
984
981
label_id = getPrimitiveOperand<uint16_t >(inst, i++);
985
982
986
- // If it is fccall, using "fccall" as text name.
987
- bool is_fccall = false ; // (opcode == ISA_CALL && header->getLabel(label_id)->kind == LABEL_FC);
988
- InstName = is_fccall ? " fccall" : InstName;
989
-
990
- // print instruction name, etc
991
- printInstName (sstr, inst, InstName);
992
-
993
983
if (opcode == ISA_FCALL)
994
984
{
995
985
// / function name in string
@@ -1015,9 +1005,6 @@ static std::string printInstructionControlFlow(
1015
1005
}
1016
1006
case ISA_IFCALL:
1017
1007
{
1018
- // print instruction name, etc
1019
- printInstName (sstr, inst, InstName);
1020
-
1021
1008
sstr << printOperand (header, inst, i++, opt);
1022
1009
// / arg size
1023
1010
sstr << " " << getPrimitiveOperand<unsigned >(inst, i++);
@@ -1027,9 +1014,6 @@ static std::string printInstructionControlFlow(
1027
1014
}
1028
1015
case ISA_FADDR:
1029
1016
{
1030
- // print instruction name, etc
1031
- printInstName (sstr, inst, InstName);
1032
-
1033
1017
// / symbol name in string
1034
1018
sstr << header->getString (getPrimitiveOperand<uint16_t >(inst, i++));
1035
1019
// / dst
@@ -1038,9 +1022,6 @@ static std::string printInstructionControlFlow(
1038
1022
}
1039
1023
case ISA_SWITCHJMP:
1040
1024
{
1041
- // print instruction name, etc
1042
- printInstName (sstr, inst, InstName);
1043
-
1044
1025
// / skip num_labels
1045
1026
i++;
1046
1027
// / index
0 commit comments