From: Chris Lattner Date: Tue, 19 Aug 2008 04:28:07 +0000 (+0000) Subject: put SlotTracker in an anon namespace since it is private. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b64871a6ad4752309d45cb3e25ad564c5d8c1d80;p=oota-llvm.git put SlotTracker in an anon namespace since it is private. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54975 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ccc793f36e0..26383d81708 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -37,11 +37,11 @@ #include using namespace llvm; -namespace llvm { - // Make virtual table appear in this compilation unit. AssemblyAnnotationWriter::~AssemblyAnnotationWriter() {} +namespace { + /// This class provides computation of slot numbers for LLVM Assembly writing. /// class SlotTracker { @@ -110,7 +110,7 @@ private: void operator=(const SlotTracker &); // DO NOT IMPLEMENT }; -} // end namespace llvm +} // end anonymous namespace char PrintModulePass::ID = 0; static RegisterPass