1 //===-- LTODisassembler.cpp - LTO Disassembler interface ------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This function provides utility methods used by clients of libLTO that want
11 // to use the disassembler.
13 //===----------------------------------------------------------------------===//
15 #include "llvm-c/lto.h"
16 #include "llvm/Support/TargetSelect.h"
20 void lto_initialize_disassembler() {
21 // Initialize targets and assembly printers/parsers.
22 llvm::InitializeAllTargetInfos();
23 llvm::InitializeAllTargetMCs();
24 llvm::InitializeAllAsmParsers();
25 llvm::InitializeAllDisassemblers();