projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0180dae
)
llvm-mc: Fix target selection for --disassemble to use GetTarget.
author
Daniel Dunbar
<daniel@zuster.org>
Fri, 19 Mar 2010 18:07:50 +0000
(18:07 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Fri, 19 Mar 2010 18:07:50 +0000
(18:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98973
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-mc/llvm-mc.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-mc/llvm-mc.cpp
b/tools/llvm-mc/llvm-mc.cpp
index 3778bc9e1d24542fab6455e969e63bdec28ea173..62391b257259d3f39cfb5309d1985ec1e38b371e 100644
(file)
--- a/
tools/llvm-mc/llvm-mc.cpp
+++ b/
tools/llvm-mc/llvm-mc.cpp
@@
-318,13
+318,9
@@
static int AssembleInput(const char *ProgName) {
}
static int DisassembleInput(const char *ProgName) {
- std::string Error;
- const Target *TheTarget = TargetRegistry::lookupTarget(TripleName, Error);
- if (TheTarget == 0) {
- errs() << ProgName << ": error: unable to get target for '" << TripleName
- << "', see --version and --triple.\n";
+ const Target *TheTarget = GetTarget(ProgName);
+ if (!TheTarget)
return 0;
- }
std::string ErrorMessage;