[llvm-commits] [llvm] r74592 - /llvm/trunk/include/llvm/MC/MCSection.h

Chris Lattner sabre at nondot.org
Tue Jun 30 23:31:54 PDT 2009


Author: lattner
Date: Wed Jul  1 01:31:49 2009
New Revision: 74592

URL: http://llvm.org/viewvc/llvm-project?rev=74592&view=rev
Log:
add comments, privatize interface

Modified:
    llvm/trunk/include/llvm/MC/MCSection.h

Modified: llvm/trunk/include/llvm/MC/MCSection.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSection.h?rev=74592&r1=74591&r2=74592&view=diff

==============================================================================
--- llvm/trunk/include/llvm/MC/MCSection.h (original)
+++ llvm/trunk/include/llvm/MC/MCSection.h Wed Jul  1 01:31:49 2009
@@ -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
@@ -14,11 +18,18 @@
 
 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; }
   };





More information about the llvm-commits mailing list