1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Make helpers static. NFC.

This commit is contained in:
Benjamin Kramer 2020-07-17 13:49:11 +02:00
parent c9528722ad
commit 1ba25f1bd7
3 changed files with 6 additions and 3 deletions

View File

@ -84,9 +84,8 @@ private:
} // namespace
llvm::Optional<llvm::InlineCost>
getDefaultInlineAdvice(CallBase &CB, FunctionAnalysisManager &FAM,
const InlineParams &Params) {
llvm::Optional<llvm::InlineCost> static getDefaultInlineAdvice(
CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) {
Function &Caller = *CB.getCaller();
ProfileSummaryInfo *PSI =
FAM.getResult<ModuleAnalysisManagerFunctionProxy>(Caller)

View File

@ -23,6 +23,7 @@ using namespace llvm;
using namespace llvm::jitlink;
using namespace llvm::jitlink::ELF_x86_64_Edges;
namespace {
class ELF_x86_64_GOTAndStubsBuilder
: public BasicGOTAndStubsBuilder<ELF_x86_64_GOTAndStubsBuilder> {
public:
@ -110,6 +111,7 @@ private:
Section *GOTSection = nullptr;
Section *StubsSection = nullptr;
};
} // namespace
const uint8_t ELF_x86_64_GOTAndStubsBuilder::NullGOTEntryContent[8] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

View File

@ -1010,6 +1010,7 @@ bool LoopIdiomRecognize::processLoopStridedStore(
return true;
}
namespace {
class ExpandedValuesCleaner {
SCEVExpander &Expander;
TargetLibraryInfo *TLI;
@ -1032,6 +1033,7 @@ public:
}
}
};
} // namespace
/// If the stored value is a strided load in the same loop with the same stride
/// this may be transformable into a memcpy. This kicks in for stuff like