diff options
-rw-r--r-- | lib/CodeGen/TargetInfo.cpp | 8 | ||||
-rw-r--r-- | lib/Sema/SemaStmtAsm.cpp | 4 |
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; |