2009-07-31 17:02:00 +00:00
|
|
|
//===- lib/MC/MCSection.cpp - Machine Code Section Representation ---------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCSection.h"
|
2009-08-22 20:48:53 +00:00
|
|
|
#include "llvm/MC/MCAsmInfo.h"
|
2012-12-03 16:50:05 +00:00
|
|
|
#include "llvm/MC/MCContext.h"
|
2015-03-23 21:22:04 +00:00
|
|
|
#include "llvm/MC/MCSymbol.h"
|
2009-08-08 22:41:53 +00:00
|
|
|
#include "llvm/Support/raw_ostream.h"
|
2009-07-31 17:02:00 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2009-08-08 22:41:53 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// MCSection
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2015-03-23 21:22:04 +00:00
|
|
|
MCSymbol *MCSection::getEndSymbol(MCContext &Ctx) const {
|
|
|
|
if (!End)
|
|
|
|
End = Ctx.createTempSymbol("sec_end", true);
|
|
|
|
return End;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool MCSection::hasEnded() const { return End && End->isInSection(); }
|
|
|
|
|
2009-07-31 17:02:00 +00:00
|
|
|
MCSection::~MCSection() {
|
|
|
|
}
|
|
|
|
|