diff options
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/Legalizer.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
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. |