MCDXContainerStreamer.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. //===- lib/MC/MCDXContainerStreamer.cpp - DXContainer Impl ----*- C++ -*---===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file contains the object streamer for DXContainer files.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "llvm/MC/MCDXContainerStreamer.h"
  13. #include "llvm/MC/MCAssembler.h"
  14. #include "llvm/MC/TargetRegistry.h"
  15. using namespace llvm;
  16. void MCDXContainerStreamer::emitInstToData(const MCInst &,
  17. const MCSubtargetInfo &) {}
  18. MCStreamer *llvm::createDXContainerStreamer(
  19. MCContext &Context, std::unique_ptr<MCAsmBackend> &&MAB,
  20. std::unique_ptr<MCObjectWriter> &&OW, std::unique_ptr<MCCodeEmitter> &&CE,
  21. bool RelaxAll) {
  22. auto *S = new MCDXContainerStreamer(Context, std::move(MAB), std::move(OW),
  23. std::move(CE));
  24. if (RelaxAll)
  25. S->getAssembler().setRelaxAll(true);
  26. return S;
  27. }