Hide two different AlignMode enums in anonymous namespaces. This bug is reported...
authorAlexey Samsonov <vonosmas@gmail.com>
Tue, 19 Aug 2014 18:40:39 +0000 (18:40 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Tue, 19 Aug 2014 18:40:39 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216001 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/ARM/ARMSubtarget.cpp

index 30094ddd402cfbca74ec37572c88344ccdc348a1..0cd2186eade92022a04097b724c3720b892af114 100644 (file)
@@ -38,10 +38,12 @@ using namespace llvm;
 STATISTIC(NumTailCalls, "Number of tail calls");
 STATISTIC(NumShiftInserts, "Number of vector shift inserts");
 
+namespace {
 enum AlignMode {
   StrictAlign,
   NoStrictAlign
 };
+}
 
 static cl::opt<AlignMode>
 Align(cl::desc("Load/store alignment support"),
index c1b4562f4118158e3039aa285792417617a0b2b8..9c4f05283f20ca68aec8e0113f08c2f74dba0b58 100644 (file)
@@ -50,11 +50,13 @@ static cl::opt<bool>
 UseFusedMulOps("arm-use-mulops",
                cl::init(true), cl::Hidden);
 
+namespace {
 enum AlignMode {
   DefaultAlign,
   StrictAlign,
   NoStrictAlign
 };
+}
 
 static cl::opt<AlignMode>
 Align(cl::desc("Load/store alignment support"),