LLVM  6.0.0svn
Namespaces | Macros | Functions
MCAssembler.cpp File Reference
#include "llvm/MC/MCAssembler.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAsmLayout.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCCodeView.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDwarf.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixup.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCFragment.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstdint>
#include <cstring>
#include <tuple>
#include <utility>
Include dependency graph for MCAssembler.cpp:

Go to the source code of this file.

Namespaces

 stats
 

Macros

#define DEBUG_TYPE   "assembler"
 

Functions

static void writeFragment (const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment &F)
 Write the fragment F to the output file. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "assembler"

Definition at line 48 of file MCAssembler.cpp.

Function Documentation

◆ writeFragment()

static void writeFragment ( const MCAssembler Asm,
const MCAsmLayout Layout,
const MCFragment F 
)
static

Write the fragment F to the output file.

Definition at line 454 of file MCAssembler.cpp.

References assert(), llvm::MCAssembler::computeFragmentSize(), llvm::Data, E, F(), llvm::MCFragment::FT_Align, llvm::MCFragment::FT_CompactEncodedInst, llvm::MCFragment::FT_CVDefRange, llvm::MCFragment::FT_CVInlineLines, llvm::MCFragment::FT_Data, llvm::MCFragment::FT_Dummy, llvm::MCFragment::FT_Dwarf, llvm::MCFragment::FT_DwarfFrame, llvm::MCFragment::FT_Fill, llvm::MCFragment::FT_LEB, llvm::MCFragment::FT_Org, llvm::MCFragment::FT_Relaxable, llvm::MCFragment::FT_SafeSEH, llvm::MCAssembler::getBackend(), llvm::MCLEBFragment::getContents(), llvm::MCDwarfLineAddrFragment::getContents(), llvm::MCDwarfCallFrameFragment::getContents(), llvm::MCSymbol::getIndex(), llvm::MCFragment::getKind(), llvm::MCFillFragment::getSize(), llvm::MCObjectWriter::getStream(), llvm::MCSafeSEHFragment::getSymbol(), llvm::MCAlignFragment::getValue(), llvm::MCFillFragment::getValue(), llvm::MCOrgFragment::getValue(), llvm::MCAlignFragment::getValueSize(), llvm::MCAssembler::getWriter(), llvm::MCAlignFragment::hasEmitNops(), I, llvm_unreachable, llvm::report_fatal_error(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, llvm::raw_ostream::tell(), llvm::MCObjectWriter::write16(), llvm::MCObjectWriter::write32(), llvm::MCObjectWriter::write64(), llvm::MCObjectWriter::write8(), llvm::MCObjectWriter::writeBytes(), llvm::MCAssembler::writeFragmentPadding(), and llvm::MCAsmBackend::writeNopData().

Referenced by llvm::MCAssembler::writeSectionData().