diff options
author | Eric Christopher <echristo@apple.com> | 2012-03-26 21:56:56 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-03-26 21:56:56 +0000 |
commit | c4b2271d4aa5c98417d6582b4f0b69fbe5e61cb9 (patch) | |
tree | 7abfdfd3651ae8fa374f9d9a254bee444d555f42 /include/llvm/Support/TargetSelect.h | |
parent | 11641d308a560f5bdcd17e13c808e1abf66f5404 (diff) | |
download | llvm-c4b2271d4aa5c98417d6582b4f0b69fbe5e61cb9.tar.gz llvm-c4b2271d4aa5c98417d6582b4f0b69fbe5e61cb9.tar.bz2 llvm-c4b2271d4aa5c98417d6582b4f0b69fbe5e61cb9.tar.xz |
Add InitializeNativeTargetDisassembler function.
Patch by Ojab.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/TargetSelect.h')
-rw-r--r-- | include/llvm/Support/TargetSelect.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 |