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 15 #include "llvm-c/lto.h" 16 #include "llvm/Support/TargetSelect.h" 17 18 using namespace llvm; 19 lto_initialize_disassembler()20void lto_initialize_disassembler() { 21 // Initialize targets and assembly printers/parsers. 22 llvm::InitializeAllTargetInfos(); 23 llvm::InitializeAllTargetMCs(); 24 llvm::InitializeAllAsmParsers(); 25 llvm::InitializeAllDisassemblers(); 26 } 27