aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-27 22:21:51 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-27 22:21:51 +0000
commit27f69d0793978d92aba2ac68a41353f73cbdcaf2 (patch)
tree222038e62b92c380a0db7c19a1a49badba7556dd
parent261fba6cf57a09a1f1d0c4a4c4856aaa62753242 (diff)
Move the vtable builder to an anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90021 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGVtable.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 4669515a4e..57a82876cf 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -22,7 +22,9 @@
using namespace clang;
using namespace CodeGen;
-class VtableBuilder {
+namespace {
+
+class VISIBILITY_HIDDEN VtableBuilder {
public:
/// Index_t - Vtable index type.
typedef uint64_t Index_t;
@@ -782,6 +784,8 @@ VtableBuilder::Index_t VtableBuilder::VBlookup(CXXRecordDecl *D,
return CGM.getVtableInfo().getVirtualBaseOffsetIndex(D, B);
}
+}
+
/// TypeConversionRequiresAdjustment - Returns whether conversion from a
/// derived type to a base type requires adjustment.
static bool