summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-11-24 16:59:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-11-24 16:59:10 +0000
commit8a2ce5d32987f99185f40eb3085a8972291f8d5c (patch)
treea51c03d5a2dea4a357a4a3f59b2b688dee695e6e /include
parentd3022b894691017169ff0681c6bea18725330cd1 (diff)
downloadllvm-8a2ce5d32987f99185f40eb3085a8972291f8d5c.tar.gz
llvm-8a2ce5d32987f99185f40eb3085a8972291f8d5c.tar.bz2
llvm-8a2ce5d32987f99185f40eb3085a8972291f8d5c.tar.xz
libLTO: Add a utility method to initialize the disassemblers.
Necessary to give disassembler users (like darwin's otool) a possibility to dlopen libLTO and still initialize the required LLVM bits. This used to go through libMCDisassembler but that's a gross layering violation, the MC layer can't pull in functions from the targets. Adding a function to libLTO is a bit of a hack but not worse than exposing other disassembler bits from libLTO. Fixes PR14362. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/lto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h
index f43d365e3d..74915c0006 100644
--- a/include/llvm-c/lto.h
+++ b/include/llvm-c/lto.h
@@ -291,6 +291,13 @@ lto_codegen_compile_to_file(lto_code_gen_t cg, const char** name);
extern void
lto_codegen_debug_options(lto_code_gen_t cg, const char *);
+/**
+ * Initializes LLVM disassemblers.
+ * FIXME: This doesn't really belong here.
+ */
+extern void
+lto_initialize_disassembler(void);
+
#ifdef __cplusplus
}
#endif