mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[llvm-exegesis] YamlContext: fix some missing spaces/quotes/newlines in error strings
llvm-svn: 358077
This commit is contained in:
parent
8c812f64f5
commit
ae479ba70a
@ -65,7 +65,7 @@ struct YamlContext {
|
||||
llvm::SmallVector<llvm::StringRef, 16> Pieces;
|
||||
String.split(Pieces, " ", /* MaxSplit */ -1, /* KeepEmpty */ false);
|
||||
if (Pieces.empty()) {
|
||||
ErrorStream << "Unknown Instruction: '" << String << "'";
|
||||
ErrorStream << "Unknown Instruction: '" << String << "'\n";
|
||||
return;
|
||||
}
|
||||
bool ProcessOpcode = true;
|
||||
@ -85,7 +85,7 @@ struct YamlContext {
|
||||
llvm::StringRef getRegName(unsigned RegNo) {
|
||||
const llvm::StringRef RegName = State->getRegInfo().getName(RegNo);
|
||||
if (RegName.empty())
|
||||
ErrorStream << "No register with enum value" << RegNo;
|
||||
ErrorStream << "No register with enum value '" << RegNo << "'\n";
|
||||
return RegName;
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ struct YamlContext {
|
||||
auto Iter = RegNameToRegNo.find(RegName);
|
||||
if (Iter != RegNameToRegNo.end())
|
||||
return Iter->second;
|
||||
ErrorStream << "No register with name " << RegName;
|
||||
ErrorStream << "No register with name '" << RegName << "'\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -145,14 +145,14 @@ private:
|
||||
if (unsigned RegNo = getRegNo(String))
|
||||
return llvm::MCOperand::createReg(RegNo);
|
||||
if (String != kInvalidOperand)
|
||||
ErrorStream << "Unknown Operand: '" << String << "'";
|
||||
ErrorStream << "Unknown Operand: '" << String << "'\n";
|
||||
return {};
|
||||
}
|
||||
|
||||
llvm::StringRef getInstrName(unsigned InstrNo) {
|
||||
const llvm::StringRef InstrName = State->getInstrInfo().getName(InstrNo);
|
||||
if (InstrName.empty())
|
||||
ErrorStream << "No opcode with enum value" << InstrNo;
|
||||
ErrorStream << "No opcode with enum value '" << InstrNo << "'\n";
|
||||
return InstrName;
|
||||
}
|
||||
|
||||
@ -160,7 +160,7 @@ private:
|
||||
auto Iter = OpcodeNameToOpcodeIdx.find(InstrName);
|
||||
if (Iter != OpcodeNameToOpcodeIdx.end())
|
||||
return Iter->second;
|
||||
ErrorStream << "No opcode with name " << InstrName;
|
||||
ErrorStream << "No opcode with name '" << InstrName << "'\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user