MCELFObjectTargetWriter.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. //===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
  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. #include "llvm/MC/MCELFObjectWriter.h"
  9. using namespace llvm;
  10. MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_, uint8_t OSABI_,
  11. uint16_t EMachine_,
  12. bool HasRelocationAddend_,
  13. uint8_t ABIVersion_)
  14. : OSABI(OSABI_), ABIVersion(ABIVersion_), EMachine(EMachine_),
  15. HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_) {}
  16. bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
  17. unsigned Type) const {
  18. return false;
  19. }
  20. void
  21. MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
  22. std::vector<ELFRelocationEntry> &Relocs) {
  23. }
  24. void MCELFObjectTargetWriter::addTargetSectionFlags(MCContext &Ctx,
  25. MCSectionELF &Sec) {}