LLVM API Documentation

llvm::TargetLoweringObjectFileCOFF Class Reference

#include <TargetLoweringObjectFile.h>

Inheritance diagram for llvm::TargetLoweringObjectFileCOFF:
[legend]
Collaboration diagram for llvm::TargetLoweringObjectFileCOFF:
[legend]

List of all members.

Public Member Functions

 TargetLoweringObjectFileCOFF ()
 ~TargetLoweringObjectFileCOFF ()
virtual void Initialize (MCContext &Ctx, const TargetMachine &TM)
virtual const MCSection * getExplicitSectionGlobal (const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const
virtual const MCSection * SelectSectionForGlobal (const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const
const MCSection * getCOFFSection (const char *Name, bool isDirective, SectionKind K) const


Detailed Description

Definition at line 305 of file TargetLoweringObjectFile.h.


Constructor & Destructor Documentation

llvm::TargetLoweringObjectFileCOFF::TargetLoweringObjectFileCOFF (  )  [inline]

Definition at line 308 of file TargetLoweringObjectFile.h.

TargetLoweringObjectFileCOFF::~TargetLoweringObjectFileCOFF (  ) 

Definition at line 939 of file TargetLoweringObjectFile.cpp.


Member Function Documentation

void TargetLoweringObjectFileCOFF::Initialize ( MCContext &  ctx,
const TargetMachine &  TM 
) [virtual]

const MCSection * TargetLoweringObjectFileCOFF::getExplicitSectionGlobal ( const GlobalValue *  GV,
SectionKind  Kind,
Mangler *  Mang,
const TargetMachine &  TM 
) const [virtual]

getExplicitSectionGlobal - Targets should implement this method to assign a section to globals with an explicit section specfied. The implementation of this method can assume that GV->hasSection() is true.

Implements llvm::TargetLoweringObjectFile.

Definition at line 1017 of file TargetLoweringObjectFile.cpp.

References getCOFFSection(), and llvm::GlobalValue::getSection().

const MCSection * TargetLoweringObjectFileCOFF::SelectSectionForGlobal ( const GlobalValue *  GV,
SectionKind  Kind,
Mangler *  Mang,
const TargetMachine &  TM 
) const [virtual]

const MCSection * TargetLoweringObjectFileCOFF::getCOFFSection ( const char *  Name,
bool  isDirective,
SectionKind  K 
) const

getCOFFSection - Return the MCSection for the specified COFF section. FIXME: Switch this to a semantic view eventually.

Definition at line 945 of file TargetLoweringObjectFile.cpp.

References llvm::MCSectionCOFF::Create(), Entry, and llvm::TargetLoweringObjectFile::getContext().

Referenced by llvm::X86ATTAsmPrinter::doFinalization(), getExplicitSectionGlobal(), Initialize(), and SelectSectionForGlobal().


The documentation for this class was generated from the following files: