diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-11-27 22:21:51 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-11-27 22:21:51 +0000 |
| commit | 27f69d0793978d92aba2ac68a41353f73cbdcaf2 (patch) | |
| tree | 222038e62b92c380a0db7c19a1a49badba7556dd /lib/CodeGen/CGVtable.cpp | |
| parent | 261fba6cf57a09a1f1d0c4a4c4856aaa62753242 (diff) | |
| download | clang-27f69d0793978d92aba2ac68a41353f73cbdcaf2.tar.gz clang-27f69d0793978d92aba2ac68a41353f73cbdcaf2.tar.bz2 clang-27f69d0793978d92aba2ac68a41353f73cbdcaf2.tar.xz | |
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
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
| -rw-r--r-- | lib/CodeGen/CGVtable.cpp | 6 |
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 |
