LLVM  4.0.0
AMDGPUELFStreamer.cpp
Go to the documentation of this file.
1 //===-------- AMDGPUELFStreamer.cpp - ELF Object Output -------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "AMDGPUELFStreamer.h"
11 #include "Utils/AMDGPUBaseInfo.h"
12 
13 using namespace llvm;
14 
16  MCAsmBackend &MAB,
18  MCCodeEmitter *Emitter,
19  bool RelaxAll) {
20  return new AMDGPUELFStreamer(Context, MAB, OS, Emitter);
21 }
LLVMContext & Context
Context object for machine code objects.
Definition: MCContext.h:51
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:23
MCELFStreamer * createAMDGPUELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll)
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:333
cl::opt< bool > RelaxAll("mc-relax-all", cl::desc("When used with filetype=obj, ""relax all fixups in the emitted object file"))
Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:36