put SlotTracker in an anon namespace since it is private.
authorChris Lattner <sabre@nondot.org>
Tue, 19 Aug 2008 04:28:07 +0000 (04:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Aug 2008 04:28:07 +0000 (04:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54975 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index ccc793f36e08091c98b34fa9cce657bc95d53908..26383d8170813a16232c75b0604fd7823e788f85 100644 (file)
 #include <cctype>
 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<PrintModulePass>