Fix some more StringRef printf warnings.

llvm-svn: 286915
This commit is contained in:
Zachary Turner 2016-11-15 00:45:18 +00:00
parent f7009b42f8
commit 1e8016b2ea
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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());
}
}