[cfe-commits] r166377 - in /cfe/trunk/lib: CodeGen/TargetInfo.cpp Sema/SemaStmtAsm.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Oct 20 06:02:06 PDT 2012


Author: d0k
Date: Sat Oct 20 08:02:06 2012
New Revision: 166377

URL: http://llvm.org/viewvc/llvm-project?rev=166377&view=rev
Log:
Move private classes into anonymous namespaces.

Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp
    cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=166377&r1=166376&r2=166377&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Sat Oct 20 08:02:06 2012
@@ -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);

Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAsm.cpp?rev=166377&r1=166376&r2=166377&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Sat Oct 20 08:02:06 2012
@@ -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;





More information about the cfe-commits mailing list