diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-11 20:40:56 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-11 20:40:56 +0000 |
commit | af645a2356a272e6b78be78bc7350524328d7307 (patch) | |
tree | 853959b880e70789582b2556673333928fac0c90 /llvm/tools/llvm-mc/llvm-mc.cpp | |
parent | 2299889f87978b8b09e5c8f2d554143f8892c45b (diff) | |
download | bcm5719-llvm-af645a2356a272e6b78be78bc7350524328d7307.tar.gz bcm5719-llvm-af645a2356a272e6b78be78bc7350524328d7307.zip |
Disassembler doesn't need TargetMachine anymore.
llvm-svn: 134920
Diffstat (limited to 'llvm/tools/llvm-mc/llvm-mc.cpp')
-rw-r--r-- | llvm/tools/llvm-mc/llvm-mc.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/tools/llvm-mc/llvm-mc.cpp b/llvm/tools/llvm-mc/llvm-mc.cpp index c98641a33a7..7fed125e1bf 100644 --- a/llvm/tools/llvm-mc/llvm-mc.cpp +++ b/llvm/tools/llvm-mc/llvm-mc.cpp @@ -415,23 +415,6 @@ static int DisassembleInput(const char *ProgName, bool Enhanced) { Res = Disassembler::disassembleEnhanced(TripleName, *Buffer.take(), Out->os()); } else { - // Package up features to be passed to target/subtarget - std::string FeaturesStr; - - // FIXME: We shouldn't need to do this (and link in codegen). - // When we split this out, we should do it in a way that makes - // it straightforward to switch subtargets on the fly (.e.g, - // the .cpu and .code16 directives). - OwningPtr<TargetMachine> TM(TheTarget->createTargetMachine(TripleName, - MCPU, - FeaturesStr)); - - if (!TM) { - errs() << ProgName << ": error: could not create target for triple '" - << TripleName << "'.\n"; - return 1; - } - Res = Disassembler::disassemble(*TheTarget, TripleName, *Buffer.take(), Out->os()); } |