Alex Bradbury d4dc55135e [RISCV][MC] Modify evaluateConstantImm interface to allow reuse from addExpr
This is a trivial refactoring that I'm committing now as it makes a patch I'm 
about to post for review easier to follow. There is some overlap between 
evaluateConstantImm and addExpr in RISCVAsmParser. This patch allows 
evaluateConstantImm to be reused from addExpr to remove this overlap. The 
benefit will be greater when a future patch adds extra code to allows 
immediates to be evaluated from constant symbols (e.g. `.equ CONST, 0x1234`).

No functional change intended.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342641 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-20 11:40:43 +00:00
..
2017-11-16 18:39:31 +00:00
2018-08-02 05:38:18 +00:00