Skip to content

Commit

Permalink
Fix spelling errors in libkeystone (keystone-engine#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
shareef12 authored and aquynh committed Mar 31, 2018
1 parent 80d46ce commit ae8d127
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llvm/keystone/ks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const char *ks_strerror(ks_err code)
{
switch(code) {
default:
return "Unknow error"; // FIXME
return "Unknown error"; // FIXME
case KS_ERR_OK:
return "OK (KS_ERR_OK)";
case KS_ERR_NOMEM:
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MC/MCParser/ELFAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ bool ELFAsmParser::ParseSectionArguments(bool IsPush, SMLoc loc)
bool Mergeable = Flags & ELF::SHF_MERGE;
bool Group = Flags & ELF::SHF_GROUP;
if (Group && UseLastGroup)
return TokError("Section cannot specifiy a group name while also acting "
return TokError("Section cannot specify a group name while also acting "
"as a member of the last group");

if (getLexer().isNot(AsmToken::Comma)) {
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1231,11 +1231,11 @@ bool HexagonAsmParser::isLabel(AsmToken &Token, bool &valid) {

bool HexagonAsmParser::handleNoncontigiousRegister(bool Contigious, SMLoc &Loc) {
if (!Contigious && ErrorNoncontigiousRegister) {
Error(Loc, "Register name is not contigious");
Error(Loc, "Register name is not contiguous");
return true;
}
if (!Contigious && WarnNoncontigiousRegister)
Warning(Loc, "Register name is not contigious");
Warning(Loc, "Register name is not contiguous");
return false;
}

Expand Down

0 comments on commit ae8d127

Please sign in to comment.