10b57cec5SDimitry Andric //===-------- AMDGPUELFStreamer.h - ELF Object Output -----------*- C++ -*-===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric // 90b57cec5SDimitry Andric // This is a custom MCELFStreamer which allows us to insert some hooks before 100b57cec5SDimitry Andric // emitting data into an actual object file. 110b57cec5SDimitry Andric // 120b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 130b57cec5SDimitry Andric 140b57cec5SDimitry Andric #ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUELFSTREAMER_H 150b57cec5SDimitry Andric #define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUELFSTREAMER_H 160b57cec5SDimitry Andric 17e8d8bef9SDimitry Andric #include <memory> 180b57cec5SDimitry Andric namespace llvm { 190b57cec5SDimitry Andric class MCAsmBackend; 200b57cec5SDimitry Andric class MCCodeEmitter; 210b57cec5SDimitry Andric class MCContext; 22e8d8bef9SDimitry Andric class MCELFStreamer; 23e8d8bef9SDimitry Andric class MCObjectWriter; 24349cc55cSDimitry Andric class Triple; 250b57cec5SDimitry Andric 260b57cec5SDimitry Andric MCELFStreamer *createAMDGPUELFStreamer(const Triple &T, MCContext &Context, 270b57cec5SDimitry Andric std::unique_ptr<MCAsmBackend> MAB, 280b57cec5SDimitry Andric std::unique_ptr<MCObjectWriter> OW, 29*0fca6ea1SDimitry Andric std::unique_ptr<MCCodeEmitter> Emitter); 300b57cec5SDimitry Andric } // namespace llvm. 310b57cec5SDimitry Andric 320b57cec5SDimitry Andric #endif 33