[llvm] r240416 - Make helper functions static. NFC.
Benjamin Kramer
benny.kra at googlemail.com
Tue Jun 23 07:51:41 PDT 2015
Author: d0k
Date: Tue Jun 23 09:51:40 2015
New Revision: 240416
URL: http://llvm.org/viewvc/llvm-project?rev=240416&view=rev
Log:
Make helper functions static. NFC.
Modified:
llvm/trunk/lib/Object/FaultMapParser.cpp
llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp
Modified: llvm/trunk/lib/Object/FaultMapParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/FaultMapParser.cpp?rev=240416&r1=240415&r2=240416&view=diff
==============================================================================
--- llvm/trunk/lib/Object/FaultMapParser.cpp (original)
+++ llvm/trunk/lib/Object/FaultMapParser.cpp Tue Jun 23 09:51:40 2015
@@ -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!");
Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp?rev=240416&r1=240415&r2=240416&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp Tue Jun 23 09:51:40 2015
@@ -172,9 +172,10 @@ static MCInstPrinter *createHexagonMCIns
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);
}
More information about the llvm-commits
mailing list