summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-01-12 18:36:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-01-12 18:36:22 +0000
commitb17d2136eae4d9003e2a04f89afc6cd6a56c966a (patch)
treecabe93d17ad76f52cbc91546cf91411fbc333da4 /llvm/lib/CodeGen
parente5cd5b0cd1e8cda18cdbcd9fade98d21579294d9 (diff)
downloadbcm5719-llvm-b17d2136eae4d9003e2a04f89afc6cd6a56c966a.tar.gz
bcm5719-llvm-b17d2136eae4d9003e2a04f89afc6cd6a56c966a.zip
Give helper classes/functions local linkage. NFC.
llvm-svn: 351016
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp2
-rw-r--r--llvm/lib/CodeGen/GlobalISel/Legalizer.cpp2
3 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 151cf3c4247..1de2ffb6cfa 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2376,8 +2376,8 @@ static void emitRangeList(DwarfDebug &DD, AsmPrinter *Asm,
}
}
-void emitDebugRangesImpl(DwarfDebug &DD, AsmPrinter *Asm,
- const DwarfFile &Holder, MCSymbol *TableEnd) {
+static void emitDebugRangesImpl(DwarfDebug &DD, AsmPrinter *Asm,
+ const DwarfFile &Holder, MCSymbol *TableEnd) {
for (const RangeSpanList &List : Holder.getRangeLists())
emitRangeList(DD, Asm, List);
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 4feb624673d..4db5d1c2ea1 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -105,6 +105,7 @@ IRTranslator::IRTranslator() : MachineFunctionPass(ID) {
}
#ifndef NDEBUG
+namespace {
/// Verify that every instruction created has the same DILocation as the
/// instruction being translated.
class DILocationVerifier : MachineFunction::Delegate {
@@ -131,6 +132,7 @@ public:
}
void MF_HandleRemoval(const MachineInstr &MI) override {}
};
+} // namespace
#endif // ifndef NDEBUG
diff --git a/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp b/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
index df2dcace421..8f8280a21da 100644
--- a/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
@@ -73,6 +73,7 @@ static bool isArtifact(const MachineInstr &MI) {
using InstListTy = GISelWorkList<256>;
using ArtifactListTy = GISelWorkList<128>;
+namespace {
class LegalizerWorkListManager : public GISelChangeObserver {
InstListTy &InstList;
ArtifactListTy &ArtifactList;
@@ -111,6 +112,7 @@ public:
createdInstr(MI);
}
};
+} // namespace
bool Legalizer::runOnMachineFunction(MachineFunction &MF) {
// If the ISel pipeline failed, do not bother running that pass.
OpenPOWER on IntegriCloud