[cfe-commits] r90335 - in /cfe/trunk/lib/CodeGen: CGRTTI.cpp CGVtable.cpp
Mike Stump
mrs at apple.com
Wed Dec 2 11:07:45 PST 2009
Author: mrs
Date: Wed Dec 2 13:07:44 2009
New Revision: 90335
URL: http://llvm.org/viewvc/llvm-project?rev=90335&view=rev
Log:
Put the Builder classes into the anonymous namespace.
Modified:
cfe/trunk/lib/CodeGen/CGRTTI.cpp
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=90335&r1=90334&r2=90335&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Wed Dec 2 13:07:44 2009
@@ -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 @@
}
}
};
+}
llvm::Constant *CodeGenModule::GenerateRTTIRef(const CXXRecordDecl *RD) {
RTTIBuilder b(*this);
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=90335&r1=90334&r2=90335&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Wed Dec 2 13:07:44 2009
@@ -770,7 +770,6 @@
delete Path;
}
};
-
}
/// TypeConversionRequiresAdjustment - Returns whether conversion from a
@@ -1109,6 +1108,7 @@
return vtable;
}
+namespace {
class VTTBuilder {
/// Inits - The list of values built for the VTT.
std::vector<llvm::Constant *> &Inits;
@@ -1271,6 +1271,7 @@
VirtualVTTs(Class);
}
};
+}
llvm::Constant *CodeGenModule::GenerateVTT(const CXXRecordDecl *RD) {
// Only classes that have virtual bases need a VTT.
More information about the cfe-commits
mailing list