summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan McKay <dylanmckay34@gmail.com>2016-11-16 23:06:14 +0000
committerDylan McKay <dylanmckay34@gmail.com>2016-11-16 23:06:14 +0000
commit017a55b09265c6fd7fdb122cd56e20edaec71db3 (patch)
treecfe9a09862a90533757207496d1dfa2a8b49c03e
parent1485992eb308c9be634aa5fd68b7716c099eb0b9 (diff)
downloadbcm5719-llvm-017a55b09265c6fd7fdb122cd56e20edaec71db3.tar.gz
bcm5719-llvm-017a55b09265c6fd7fdb122cd56e20edaec71db3.zip
[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. llvm-svn: 287176
-rw-r--r--llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
index 653b3abaccf..a50e2fd2b98 100644
--- a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
+++ b/llvm/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(); }
OpenPOWER on IntegriCloud