[llvm-commits] [llvm] r134920 - /llvm/trunk/tools/llvm-mc/llvm-mc.cpp
Evan Cheng
evan.cheng at apple.com
Mon Jul 11 13:40:56 PDT 2011
Author: evancheng
Date: Mon Jul 11 15:40:56 2011
New Revision: 134920
URL: http://llvm.org/viewvc/llvm-project?rev=134920&view=rev
Log:
Disassembler doesn't need TargetMachine anymore.
Modified:
llvm/trunk/tools/llvm-mc/llvm-mc.cpp
Modified: llvm/trunk/tools/llvm-mc/llvm-mc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/llvm-mc.cpp?rev=134920&r1=134919&r2=134920&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mc/llvm-mc.cpp (original)
+++ llvm/trunk/tools/llvm-mc/llvm-mc.cpp Mon Jul 11 15:40:56 2011
@@ -415,23 +415,6 @@
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());
}
More information about the llvm-commits
mailing list