2009-06-23 22:01:43 +00:00
|
|
|
//===- MCSection.h - Machine Code Sections ----------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2009-07-01 06:31:49 +00:00
|
|
|
//
|
|
|
|
// This file declares the MCSection class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2009-06-23 22:01:43 +00:00
|
|
|
|
|
|
|
#ifndef LLVM_MC_MCSECTION_H
|
|
|
|
#define LLVM_MC_MCSECTION_H
|
|
|
|
|
|
|
|
#include <string>
|
2009-07-27 21:22:30 +00:00
|
|
|
#include "llvm/ADT/StringRef.h"
|
2009-06-23 22:01:43 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2009-07-01 06:31:49 +00:00
|
|
|
/// MCSection - Instances of this class represent a uniqued identifier for a
|
|
|
|
/// section in the current translation unit. The MCContext class uniques and
|
|
|
|
/// creates these.
|
2009-06-23 22:01:43 +00:00
|
|
|
class MCSection {
|
|
|
|
std::string Name;
|
2009-07-01 06:31:49 +00:00
|
|
|
private:
|
|
|
|
friend class MCContext;
|
2009-07-27 21:22:30 +00:00
|
|
|
MCSection(const StringRef &_Name) : Name(_Name) {}
|
2009-07-01 06:31:49 +00:00
|
|
|
|
|
|
|
MCSection(const MCSection&); // DO NOT IMPLEMENT
|
|
|
|
void operator=(const MCSection&); // DO NOT IMPLEMENT
|
|
|
|
public:
|
2009-06-24 01:03:06 +00:00
|
|
|
|
|
|
|
const std::string &getName() const { return Name; }
|
2009-06-23 22:01:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|