OSDN Git Service

bpf: proper print imm64 expression in inst printer
authorYonghong Song <yhs@fb.com>
Fri, 8 Sep 2017 23:32:38 +0000 (23:32 +0000)
committerYonghong Song <yhs@fb.com>
Fri, 8 Sep 2017 23:32:38 +0000 (23:32 +0000)
commitf5858045aa0b89b28bc49965f238c077423b2ac7
treece3fcbcf71abaa49ff4d54e9caaf7662a9c9df37
parent19969b8b8fb27f1bbb7f9b60c2e915aca4de2ebe
bpf: proper print imm64 expression in inst printer

Fixed an issue in printImm64Operand where if the value is
an expression, print out the expression properly. Currently,
it will print
  r1 = <MCOperand Expr:(tx_port)>ll
With the patch, the printout will be
  r1 = tx_port

Suggested-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/BPF/BPFInstrInfo.td
lib/Target/BPF/InstPrinter/BPFInstPrinter.cpp