From c4b2271d4aa5c98417d6582b4f0b69fbe5e61cb9 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 26 Mar 2012 21:56:56 +0000 Subject: Add InitializeNativeTargetDisassembler function. Patch by Ojab. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153476 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/TargetSelect.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/llvm/Support/TargetSelect.h') diff --git a/include/llvm/Support/TargetSelect.h b/include/llvm/Support/TargetSelect.h index 83ff68caae..a86e953f00 100644 --- a/include/llvm/Support/TargetSelect.h +++ b/include/llvm/Support/TargetSelect.h @@ -149,6 +149,18 @@ namespace llvm { #endif } + /// InitializeNativeTargetDisassembler - The main program should call + /// this function to initialize the native target disassembler. + inline bool InitializeNativeTargetDisassembler() { + // If we have a native target, initialize the corresponding disassembler. +#ifdef LLVM_NATIVE_DISASSEMBLER + LLVM_NATIVE_DISASSEMBLER(); + return false; +#else + return true; +#endif + } + } #endif -- cgit v1.2.3