mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fixed llvm-mc in edis mode to use the result of
operand.evaluate as an error code, not as the contents of the operand. llvm-svn: 126181
This commit is contained in:
parent
6619ddaec6
commit
2fd268300e
@ -328,7 +328,10 @@ int Disassembler::disassembleEnhanced(const std::string &TS,
|
||||
|
||||
uint64_t evaluatedResult;
|
||||
void *Arg[] = { disassembler, &Out };
|
||||
evaluatedResult = operand->evaluate(evaluatedResult, verboseEvaluator, Arg);
|
||||
if (operand->evaluate(evaluatedResult, verboseEvaluator, Arg)) {
|
||||
errs() << "error: Couldn't evaluate an operand\n";
|
||||
return -1;
|
||||
}
|
||||
Out << "=" << evaluatedResult << " ";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user