aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-11 20:40:56 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-11 20:40:56 +0000
commitc08936de0ac1babeafe5ff05c8f7339d1df83d6a (patch)
tree47751f412b9cea00456a07048b015e040c9fd87d /tools/llvm-mc
parent9bcc399f1cdf396fb73ba23f7a400a97fbfd5ae1 (diff)
downloadexternal_llvm-c08936de0ac1babeafe5ff05c8f7339d1df83d6a.zip
external_llvm-c08936de0ac1babeafe5ff05c8f7339d1df83d6a.tar.gz
external_llvm-c08936de0ac1babeafe5ff05c8f7339d1df83d6a.tar.bz2
Disassembler doesn't need TargetMachine anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc')
-rw-r--r--tools/llvm-mc/llvm-mc.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp
index c98641a..7fed125 100644
--- a/tools/llvm-mc/llvm-mc.cpp
+++ b/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());
}