Lines Matching refs:ELFWriter
1 //===-- ELFWriter.cpp - Target-independent ELF Writer code ----------------===//
31 #define DEBUG_TYPE "elfwriter"
33 #include "ELFWriter.h"
61 char ELFWriter::ID = 0;
64 // ELFWriter Implementation
67 ELFWriter::ELFWriter(raw_ostream &o, TargetMachine &tm)
87 ELFWriter::~ELFWriter() {
112 bool ELFWriter::doInitialization(Module &M) {
176 void ELFWriter::AddPendingGlobalSymbol(const GlobalValue *GV,
186 void ELFWriter::AddPendingExternalSymbol(const char *External) {
191 ELFSection &ELFWriter::getDataSection() {
197 ELFSection &ELFWriter::getBSSSection() {
203 ELFSection &ELFWriter::getCtorSection() {
209 ELFSection &ELFWriter::getDtorSection() {
215 ELFSection &ELFWriter::getTextSection(const Function *F) {
223 ELFSection &ELFWriter::getJumpTableSection() {
232 ELFSection &ELFWriter::getConstantPoolSection(MachineConstantPoolEntry &CPE) {
257 ELFSection &ELFWriter::getRelocSection(ELFSection &S) {
270 unsigned ELFWriter::getGlobalELFVisibility(const GlobalValue *GV) {
285 unsigned ELFWriter::getGlobalELFBinding(const GlobalValue *GV) {
296 unsigned ELFWriter::getGlobalELFType(const GlobalValue *GV) {
315 void ELFWriter::AddToSymbolList(ELFSym *GblSym) {
347 void ELFWriter::EmitGlobal(const GlobalValue *GV) {
421 void ELFWriter::EmitGlobalConstantStruct(const ConstantStruct *CVS,
450 void ELFWriter::EmitGlobalConstant(const Constant *CV, ELFSection &GblS) {
531 CstExprResTy ELFWriter::ResolveConstantExpr(const Constant *CV) {
596 void ELFWriter::EmitGlobalDataRelocation(const GlobalValue *GV, unsigned Size,
612 void ELFWriter::EmitGlobalConstantLargeInt(const ConstantInt *CI,
630 bool ELFWriter::EmitSpecialLLVMGlobal(const GlobalVariable *GV) {
664 void ELFWriter::EmitXXStructorList(const Constant *List, ELFSection &Xtor) {
682 bool ELFWriter::runOnMachineFunction(MachineFunction &MF) {
689 bool ELFWriter::doFinalization(Module &M) {
740 void ELFWriter::RelocateField(BinaryObject &BO, uint32_t Offset,
751 void ELFWriter::EmitRelocations() {
841 void ELFWriter::EmitRelocation(BinaryObject &RelSec, ELFRelocation &Rel,
850 void ELFWriter::EmitSymbol(BinaryObject &SymbolTable, ELFSym &Sym) {
870 void ELFWriter::EmitSectionHeader(BinaryObject &SHdrTab,
897 void ELFWriter::EmitStringTable(const std::string &ModuleName) {
936 unsigned ELFWriter::SortSymbols() {
962 void ELFWriter::EmitSymbolTable() {
1004 void ELFWriter::EmitSectionTableStringTable() {
1035 void ELFWriter::OutputSectionsAndSectionTable() {