aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-02 19:07:44 +0000
committerMike Stump <mrs@apple.com>2009-12-02 19:07:44 +0000
commit92f2fe2541c60d2130677a1613b0d5f257798b8f (patch)
treea4740502787bef68199dc416951dda558ade159f /lib/CodeGen/CGVtable.cpp
parentde05057932cebc3f43911f87d75869cb7b705a19 (diff)
Put the Builder classes into the anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index d7b8127546..146b96f75f 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -770,7 +770,6 @@ public:
delete Path;
}
};
-
}
/// TypeConversionRequiresAdjustment - Returns whether conversion from a
@@ -1109,6 +1108,7 @@ llvm::Constant *CodeGenModule::GenerateVtable(const CXXRecordDecl *LayoutClass,
return vtable;
}
+namespace {
class VTTBuilder {
/// Inits - The list of values built for the VTT.
std::vector<llvm::Constant *> &Inits;
@@ -1271,6 +1271,7 @@ public:
VirtualVTTs(Class);
}
};
+}
llvm::Constant *CodeGenModule::GenerateVTT(const CXXRecordDecl *RD) {
// Only classes that have virtual bases need a VTT.