summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-29 00:06:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-29 00:06:58 +0000
commit36e1ac7fffc2a0035ce61750efd6ee7d59100575 (patch)
treee5c354cbb9207f94a4124f1375421cf9517d36de /tools
parent72736d1aa3a731cdbdef2ad7e3a861c5afd7fce7 (diff)
downloadllvm-36e1ac7fffc2a0035ce61750efd6ee7d59100575.tar.gz
llvm-36e1ac7fffc2a0035ce61750efd6ee7d59100575.tar.bz2
llvm-36e1ac7fffc2a0035ce61750efd6ee7d59100575.tar.xz
edis: Don't do the target initialization in EDGetDisassembler, this is contrary
to the way we currently expect target selection to work -- clients are supposed to have control over what targets are available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/edis/EDMain.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/edis/EDMain.cpp b/tools/edis/EDMain.cpp
index 14a17d66e6..3bf2585a21 100644
--- a/tools/edis/EDMain.cpp
+++ b/tools/edis/EDMain.cpp
@@ -17,23 +17,12 @@
#include "../../lib/MC/MCDisassembler/EDInst.h"
#include "../../lib/MC/MCDisassembler/EDOperand.h"
#include "../../lib/MC/MCDisassembler/EDToken.h"
-#include "llvm/Support/TargetSelect.h"
#include "llvm-c/EnhancedDisassembly.h"
using namespace llvm;
int EDGetDisassembler(EDDisassemblerRef *disassembler,
const char *triple,
EDAssemblySyntax_t syntax) {
- static bool initialized;
- if (!initialized) {
- // Initialize targets and assembly printers/parsers.
- llvm::InitializeAllTargetInfos();
- llvm::InitializeAllTargetMCs();
- llvm::InitializeAllAsmParsers();
- llvm::InitializeAllDisassemblers();
- initialized = true;
- }
-
EDDisassembler::AssemblySyntax Syntax;
switch (syntax) {
default: assert(0 && "Unknown assembly syntax!");