1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +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:
Sean Callanan 2011-02-22 02:09:15 +00:00
parent 6619ddaec6
commit 2fd268300e

View File

@ -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 << " ";
}