add comments, privatize interface
authorChris Lattner <sabre@nondot.org>
Wed, 1 Jul 2009 06:31:49 +0000 (06:31 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Jul 2009 06:31:49 +0000 (06:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74592 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCSection.h

index 341f7f01514441b0c51f2fb9cd729ca113635b15..1b127b52e1c9e273b21cf6ec552c42edf7c37cb2 100644 (file)
@@ -6,6 +6,10 @@
 // License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
+//
+// This file declares the MCSection class.
+//
+//===----------------------------------------------------------------------===//
 
 #ifndef LLVM_MC_MCSECTION_H
 #define LLVM_MC_MCSECTION_H
 
 namespace llvm {
 
+  /// MCSection - Instances of this class represent a uniqued identifier for a
+  /// section in the current translation unit.  The MCContext class uniques and
+  /// creates these.
   class MCSection {
     std::string Name;
-
-  public:
+  private:
+    friend class MCContext;
     MCSection(const char *_Name) : Name(_Name) {}
+    
+    MCSection(const MCSection&);      // DO NOT IMPLEMENT
+    void operator=(const MCSection&); // DO NOT IMPLEMENT
+  public:
 
     const std::string &getName() const { return Name; }
   };