From e7800cab8284c98b42ddb7b59c03e26e5194e082 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 23 Jun 2015 14:51:40 +0000 Subject: [PATCH] Make helper functions static. NFC. llvm-svn: 240416 --- llvm/lib/Object/FaultMapParser.cpp | 2 +- .../Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Object/FaultMapParser.cpp b/llvm/lib/Object/FaultMapParser.cpp index dd663f3be41f..6ce8a5761156 100644 --- a/llvm/lib/Object/FaultMapParser.cpp +++ b/llvm/lib/Object/FaultMapParser.cpp @@ -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!"); diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp index f1e93ce19b7a..83ce0abd835e 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp @@ -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); }