#include "XCoreTargetObjectFile.h"
#include "XCoreSubtarget.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/Target/TargetMachine.h"
usingnamespacellvm;
void XCoreTargetObjectFile::Initialize(MCContext &Ctx, const TargetMachine &TM){ … }
static unsigned getXCoreSectionType(SectionKind K) { … }
static unsigned getXCoreSectionFlags(SectionKind K, bool IsCPRel) { … }
MCSection *XCoreTargetObjectFile::getExplicitSectionGlobal(
const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { … }
MCSection *XCoreTargetObjectFile::SelectSectionForGlobal(
const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { … }
MCSection *XCoreTargetObjectFile::getSectionForConstant(
const DataLayout &DL, SectionKind Kind, const Constant *C,
Align &Alignment) const { … }