[AVR] Wrap all methods in the pseudo expansion pass in an anon namespace
authorDylan McKay <dylanmckay34@gmail.com>
Wed, 16 Nov 2016 23:06:14 +0000 (23:06 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Wed, 16 Nov 2016 23:06:14 +0000 (23:06 +0000)
The '-fpermissive' compiler flag complains if the template
specializations used in the class are used in a different namespace.

llvm-svn: 287176

llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp

index 653b3ab..a50e2fd 100644 (file)
@@ -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(); }