[llvm] r287176 - [AVR] Wrap all methods in the pseudo expansion pass in an anon namespace
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 15:06:14 PST 2016
Author: dylanmckay
Date: Wed Nov 16 17:06:14 2016
New Revision: 287176
URL: http://llvm.org/viewvc/llvm-project?rev=287176&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp
Modified: llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp?rev=287176&r1=287175&r2=287176&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp Wed Nov 16 17:06:14 2016
@@ -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 &MB
return false;
}
+} // end of anonymous namespace
+
namespace llvm {
FunctionPass *createAVRExpandPseudoPass() { return new AVRExpandPseudo(); }
More information about the llvm-commits
mailing list