LTODisassembler.cpp 887 B

12345678910111213141516171819202122232425
  1. //===-- LTODisassembler.cpp - LTO Disassembler interface ------------------===//
  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 function provides utility methods used by clients of libLTO that want
  10. // to use the disassembler.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #include "llvm-c/lto.h"
  14. #include "llvm/Support/TargetSelect.h"
  15. using namespace llvm;
  16. void lto_initialize_disassembler() {
  17. // Initialize targets and assembly printers/parsers.
  18. llvm::InitializeAllTargetInfos();
  19. llvm::InitializeAllTargetMCs();
  20. llvm::InitializeAllAsmParsers();
  21. llvm::InitializeAllDisassemblers();
  22. }