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.
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1037,7 +1037,7 @@ protected:
|
|||
}
|
||||
} else if (m_options.m_until_addrs.empty()) {
|
||||
result.AppendErrorWithFormat("No line number or address provided:\n%s",
|
||||
GetSyntax());
|
||||
GetSyntax().str().c_str());
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ CommandAlias::CommandAlias(CommandInterpreter &interpreter,
|
|||
GetAliasExpansion(sstr);
|
||||
|
||||
translation_and_help.Printf("(%s) %s", sstr.GetData(),
|
||||
GetUnderlyingCommand()->GetHelp());
|
||||
GetUnderlyingCommand()->GetHelp().str().c_str());
|
||||
SetHelp(translation_and_help.GetData());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue