LTODisassembler.cpp 859 B

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