Move private classes into anonymous namespaces.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166377 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index ca9cfbb..a9e11cb 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -2539,6 +2539,8 @@
   return AddrTyped;
 }
 
+namespace {
+
 class NaClX86_64ABIInfo : public ABIInfo {
  public:
   NaClX86_64ABIInfo(CodeGen::CodeGenTypes &CGT, bool HasAVX)
@@ -2557,6 +2559,8 @@
       : TargetCodeGenInfo(new NaClX86_64ABIInfo(CGT, HasAVX)) {}
 };
 
+}
+
 void NaClX86_64ABIInfo::computeInfo(CGFunctionInfo &FI) const {
   if (FI.getASTCallingConvention() == CC_PnaclCall)
     PInfo.computeInfo(FI);
@@ -3304,6 +3308,8 @@
   return AddrTyped;
 }
 
+namespace {
+
 class NaClARMABIInfo : public ABIInfo {
  public:
   NaClARMABIInfo(CodeGen::CodeGenTypes &CGT, ARMABIInfo::ABIKind Kind)
@@ -3322,6 +3328,8 @@
       : TargetCodeGenInfo(new NaClARMABIInfo(CGT, Kind)) {}
 };
 
+}
+
 void NaClARMABIInfo::computeInfo(CGFunctionInfo &FI) const {
   if (FI.getASTCallingConvention() == CC_PnaclCall)
     PInfo.computeInfo(FI);
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp
index 8eae03c..616dcfc 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -360,6 +360,8 @@
   return false;
 }
 
+namespace {
+
 class MCAsmParserSemaCallbackImpl : public llvm::MCAsmParserSemaCallback {
   Sema *SemaRef;
 
@@ -374,6 +376,8 @@
   }
 };
 
+}
+
 NamedDecl *Sema::LookupInlineAsmIdentifier(StringRef Name, SourceLocation Loc,
                                            unsigned &Size) {
   Size = 0;