mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 09:54:09 +00:00
llvm-mc: Fix target selection for --disassemble to use GetTarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0180daee02
commit
4d4358e8b0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user