[SystemZ] Clean up AsmParser isMem() handling
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 May 2015 17:40:53 +0000 (17:40 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 May 2015 17:40:53 +0000 (17:40 +0000)
commit7f3a9e28fa259847da6bf94c846ba2223f0d7ccc
tree383811431910e922fe0f79101761460565040ba6
parentd9af71b57472f0124fec34aa15fde5e3fa93f881
[SystemZ] Clean up AsmParser isMem() handling

We know what MemoryKind an operand has at the time we construct it,
so we might as well just record it in an unused part of the structure.
This makes it easier to add scatter/gather addresses later.

No behavioral change intended.

Patch originally by Richard Sandiford.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp