forked from OSchip/llvm-project
Fix some more StringRef printf warnings.
llvm-svn: 286915
This commit is contained in:
parent
f7009b42f8
commit
1e8016b2ea
|
@ -1746,7 +1746,7 @@ public:
|
||||||
|
|
||||||
// Print out an usage syntax on an empty command line.
|
// Print out an usage syntax on an empty command line.
|
||||||
if (raw_command_line[0] == '\0') {
|
if (raw_command_line[0] == '\0') {
|
||||||
result.GetOutputStream().Printf("%s\n", this->GetSyntax());
|
result.GetOutputStream().Printf("%s\n", this->GetSyntax().str().c_str());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1037,7 +1037,7 @@ protected:
|
||||||
}
|
}
|
||||||
} else if (m_options.m_until_addrs.empty()) {
|
} else if (m_options.m_until_addrs.empty()) {
|
||||||
result.AppendErrorWithFormat("No line number or address provided:\n%s",
|
result.AppendErrorWithFormat("No line number or address provided:\n%s",
|
||||||
GetSyntax());
|
GetSyntax().str().c_str());
|
||||||
result.SetStatus(eReturnStatusFailed);
|
result.SetStatus(eReturnStatusFailed);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ CommandAlias::CommandAlias(CommandInterpreter &interpreter,
|
||||||
GetAliasExpansion(sstr);
|
GetAliasExpansion(sstr);
|
||||||
|
|
||||||
translation_and_help.Printf("(%s) %s", sstr.GetData(),
|
translation_and_help.Printf("(%s) %s", sstr.GetData(),
|
||||||
GetUnderlyingCommand()->GetHelp());
|
GetUnderlyingCommand()->GetHelp().str().c_str());
|
||||||
SetHelp(translation_and_help.GetData());
|
SetHelp(translation_and_help.GetData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue