Put the Builder classes into the anonymous namespace.
llvm-svn: 90335
This commit is contained in:
parent
c01c2b87e8
commit
ae1b85d984
|
@ -17,6 +17,7 @@
|
|||
using namespace clang;
|
||||
using namespace CodeGen;
|
||||
|
||||
namespace {
|
||||
class RTTIBuilder {
|
||||
CodeGenModule &CGM; // Per-module state.
|
||||
llvm::LLVMContext &VMContext;
|
||||
|
@ -406,6 +407,7 @@ public:
|
|||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
llvm::Constant *CodeGenModule::GenerateRTTIRef(const CXXRecordDecl *RD) {
|
||||
RTTIBuilder b(*this);
|
||||
|
|
|
@ -770,7 +770,6 @@ public:
|
|||
delete Path;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
/// TypeConversionRequiresAdjustment - Returns whether conversion from a
|
||||
|
@ -1109,6 +1108,7 @@ llvm::Constant *CodeGenModule::GenerateVtable(const CXXRecordDecl *LayoutClass,
|
|||
return vtable;
|
||||
}
|
||||
|
||||
namespace {
|
||||
class VTTBuilder {
|
||||
/// Inits - The list of values built for the VTT.
|
||||
std::vector<llvm::Constant *> &Inits;
|
||||
|
@ -1271,6 +1271,7 @@ public:
|
|||
VirtualVTTs(Class);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
llvm::Constant *CodeGenModule::GenerateVTT(const CXXRecordDecl *RD) {
|
||||
// Only classes that have virtual bases need a VTT.
|
||||
|
|
Loading…
Reference in New Issue