@@ -69,15 +69,13 @@ static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
69
69
cl::value_desc(" filename" ));
70
70
71
71
static cl::opt<std::string>
72
- ArchName (" march" ,
73
- cl::desc (" Target arch to assemble for, "
74
- " see -version for available targets" ),
72
+ ArchName (" march" , cl::desc(" Target architecture. "
73
+ " See -version for available targets" ),
75
74
cl::cat(ToolOptions));
76
75
77
76
static cl::opt<std::string>
78
77
TripleName (" mtriple" ,
79
- cl::desc (" Target triple to assemble for, "
80
- " see -version for available targets" ),
78
+ cl::desc (" Target triple. See -version for available targets" ),
81
79
cl::cat(ToolOptions));
82
80
83
81
static cl::opt<std::string>
@@ -503,17 +501,20 @@ int main(int argc, char **argv) {
503
501
ArrayRef<MCInst> Insts = Region->getInstructions ();
504
502
std::vector<std::unique_ptr<mca::Instruction>> LoweredSequence;
505
503
for (const MCInst &MCI : Insts) {
506
- llvm::Expected<std::unique_ptr<mca::Instruction>> Inst = IB.createInstruction (MCI);
504
+ llvm::Expected<std::unique_ptr<mca::Instruction>> Inst =
505
+ IB.createInstruction (MCI);
507
506
if (!Inst) {
508
- if (auto NewE = handleErrors (Inst.takeError (),
509
- [&IP, &STI](const mca::InstructionError<MCInst> &IE) {
510
- std::string InstructionStr;
511
- raw_string_ostream SS (InstructionStr);
512
- WithColor::error () << IE.Message << ' \n ' ;
513
- IP->printInst (&IE.Inst , SS, " " , *STI);
514
- SS.flush ();
515
- WithColor::note () << " instruction: " << InstructionStr << ' \n ' ;
516
- })) {
507
+ if (auto NewE = handleErrors (
508
+ Inst.takeError (),
509
+ [&IP, &STI](const mca::InstructionError<MCInst> &IE) {
510
+ std::string InstructionStr;
511
+ raw_string_ostream SS (InstructionStr);
512
+ WithColor::error () << IE.Message << ' \n ' ;
513
+ IP->printInst (&IE.Inst , SS, " " , *STI);
514
+ SS.flush ();
515
+ WithColor::note () << " instruction: " << InstructionStr
516
+ << ' \n ' ;
517
+ })) {
517
518
// Default case.
518
519
WithColor::error () << toString (std::move (NewE));
519
520
}
@@ -523,8 +524,7 @@ int main(int argc, char **argv) {
523
524
LoweredSequence.emplace_back (std::move (Inst.get ()));
524
525
}
525
526
526
- mca::SourceMgr S (LoweredSequence,
527
- PrintInstructionTables ? 1 : Iterations);
527
+ mca::SourceMgr S (LoweredSequence, PrintInstructionTables ? 1 : Iterations);
528
528
529
529
if (PrintInstructionTables) {
530
530
// Create a pipeline, stages, and a printer.
0 commit comments