summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVtable.cpp
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
commitd598850203e05a604eb06f782dcf54529cd7a6f9 (patch)
tree38f3caeee372bc06bac60c8e4a9fee46c689bf5e /clang/lib/CodeGen/CGVtable.cpp
parenta30c0d3acec1c922d4b66bc6476580c19fd15734 (diff)
downloadbcm5719-llvm-d598850203e05a604eb06f782dcf54529cd7a6f9.tar.gz
bcm5719-llvm-d598850203e05a604eb06f782dcf54529cd7a6f9.zip
Move the vtable builder to an anonymous namespace.
llvm-svn: 90021
Diffstat (limited to 'clang/lib/CodeGen/CGVtable.cpp')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 4669515a4e7..57a82876cf6 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud