From af4a9122232f601cae740b9122141a04e28641f6 Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Wed, 16 Nov 2016 23:06:14 +0000 Subject: [PATCH] [AVR] Wrap all methods in the pseudo expansion pass in an anon namespace The '-fpermissive' compiler flag complains if the template specializations used in the class are used in a different namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287176 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AVR/AVRExpandPseudoInsts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/AVR/AVRExpandPseudoInsts.cpp b/lib/Target/AVR/AVRExpandPseudoInsts.cpp index 653b3abaccf..a50e2fd2b98 100644 --- a/lib/Target/AVR/AVRExpandPseudoInsts.cpp +++ b/lib/Target/AVR/AVRExpandPseudoInsts.cpp @@ -88,8 +88,6 @@ private: char AVRExpandPseudo::ID = 0; -} // end of anonymous namespace - bool AVRExpandPseudo::expandMBB(MachineBasicBlock &MBB) { bool Modified = false; @@ -1424,6 +1422,8 @@ bool AVRExpandPseudo::expandMI(Block &MBB, BlockIt MBBI) { return false; } +} // end of anonymous namespace + namespace llvm { FunctionPass *createAVRExpandPseudoPass() { return new AVRExpandPseudo(); } -- 2.40.0