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 | d598850203e05a604eb06f782dcf54529cd7a6f9 (patch) | |
| tree | 38f3caeee372bc06bac60c8e4a9fee46c689bf5e /clang/lib/CodeGen/CGVtable.cpp | |
| parent | a30c0d3acec1c922d4b66bc6476580c19fd15734 (diff) | |
| download | bcm5719-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.cpp | 6 |
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 |

