Make helper functions static. NFC.

llvm-svn: 240416
This commit is contained in:
Benjamin Kramer 2015-06-23 14:51:40 +00:00
parent 8c57cfd51b
commit e7800cab82
2 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@
using namespace llvm;
const char *faultKindToString(FaultMapParser::FaultKind FT) {
static const char *faultKindToString(FaultMapParser::FaultKind FT) {
switch (FT) {
default:
llvm_unreachable("unhandled fault type!");

View File

@ -172,9 +172,10 @@ static MCInstPrinter *createHexagonMCInstPrinter(const Triple &T,
return nullptr;
}
MCTargetStreamer *createMCAsmTargetStreamer(
MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint,
bool IsVerboseAsm) {
static MCTargetStreamer *createMCAsmTargetStreamer(MCStreamer &S,
formatted_raw_ostream &OS,
MCInstPrinter *InstPrint,
bool IsVerboseAsm) {
return new HexagonTargetAsmStreamer(S, OS, IsVerboseAsm, *InstPrint);
}