24#define DEBUG_TYPE "asm-printer"
33 std::unique_ptr<MCStreamer> Streamer)
50 MCSection *TheSection = getObjFileLowering().SectionForGlobal(GV, GVKind,
TM);
51 OutStreamer->switchSection(TheSection);
#define LLVM_EXTERNAL_VISIBILITY
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeDirectXAsmPrinter()
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang", "erlang-compatible garbage collector")
Module.h This file contains the declarations for the Module class.
const char LLVMTargetMachineRef TM
This class is intended to be used as a driving class for all asm writers.
virtual void emitGlobalVariable(const GlobalVariable *GV)
Emit the specified global variable to the .s file.
bool runOnMachineFunction(MachineFunction &MF) override
Emit the specified function out to the OutStreamer.
StringRef getSection() const
Get the custom section of this global if it has one.
bool hasSection() const
Check if this global has a custom object file section.
const DataLayout & getDataLayout() const
Get the data layout of the module this global belongs to.
const Constant * getInitializer() const
getInitializer - Return the initializer for this global variable.
bool hasInitializer() const
Definitions have initializers, declarations don't.
bool hasImplicitSection() const
Check if section name is present.
Instances of this class represent a uniqued identifier for a section in the current translation unit.
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
SectionKind - This is a simple POD value that classifies the properties of a section.
StringRef - Represent a constant reference to a string, i.e.
static SectionKind getKindForGlobal(const GlobalObject *GO, const TargetMachine &TM)
Classify the specified global variable into a set of target independent categories embodied in Sectio...
Primary interface to the complete machine description for the target machine.
This is an optimization pass for GlobalISel generic memory operations.
Target & getTheDirectXTarget()
RegisterAsmPrinter - Helper template for registering a target specific assembly printer,...