aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-10-20 13:02:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-10-20 13:02:06 +0000
commitc6f84cf73e0bc04faacd1a9b7845e014e7fac21e (patch)
treea924e8e8685830d1e3db81f96da063c28853c24b
parentaa9a8ce5d31975900c7243b1508f5111baddacbe (diff)
Move private classes into anonymous namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166377 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/TargetInfo.cpp8
-rw-r--r--lib/Sema/SemaStmtAsm.cpp4
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index ca9cfbbfef..a9e11cb954 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -2539,6 +2539,8 @@ llvm::Value *WinX86_64ABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
return AddrTyped;
}
+namespace {
+
class NaClX86_64ABIInfo : public ABIInfo {
public:
NaClX86_64ABIInfo(CodeGen::CodeGenTypes &CGT, bool HasAVX)
@@ -2557,6 +2559,8 @@ class NaClX86_64TargetCodeGenInfo : public TargetCodeGenInfo {
: 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 @@ llvm::Value *ARMABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
return AddrTyped;
}
+namespace {
+
class NaClARMABIInfo : public ABIInfo {
public:
NaClARMABIInfo(CodeGen::CodeGenTypes &CGT, ARMABIInfo::ABIKind Kind)
@@ -3322,6 +3328,8 @@ class NaClARMTargetCodeGenInfo : public TargetCodeGenInfo {
: 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 8eae03c987..616dcfcd83 100644
--- a/lib/Sema/SemaStmtAsm.cpp
+++ b/lib/Sema/SemaStmtAsm.cpp
@@ -360,6 +360,8 @@ static bool buildMSAsmString(Sema &SemaRef,
return false;
}
+namespace {
+
class MCAsmParserSemaCallbackImpl : public llvm::MCAsmParserSemaCallback {
Sema *SemaRef;
@@ -374,6 +376,8 @@ public:
}
};
+}
+
NamedDecl *Sema::LookupInlineAsmIdentifier(StringRef Name, SourceLocation Loc,
unsigned &Size) {
Size = 0;