Updates to the ARM target assembler for llvm-mc per review comments from
authorKevin Enderby <enderby@apple.com>
Fri, 30 Oct 2009 22:55:57 +0000 (22:55 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 30 Oct 2009 22:55:57 +0000 (22:55 +0000)
commit9c41fa87eac369d84f8bfc2245084cd39f281ee4
tree461947ff3a73854af03952d95b45c139552f894d
parent5e8e2d7ad9147f15898a5587fea053d05017a055
Updates to the ARM target assembler for llvm-mc per review comments from
Daniel Dunbar.
- Reordered the fields in the ARMOperand Mem struct to make the struct smaller.
Making bool's into 1 bit fields and put the MCExpr* fields adjacent to each
other.
- Fixed a number of places in ARMAsmParser.cpp so they have doxygen comments.
- Change the name of ARMAsmParser::ParseRegister() to MaybeParseRegister and
added the bool ParseWriteBack parameter.
- Changed ARMAsmParser::ParseMemory() to call MaybeParseRegister().
- Added ARMAsmParser::ParseMemoryOffsetReg to factor out parsing the offset of a
memory operand.  And use it for both parsing both preindexed and post indexing
addressing forms in ARMAsmParser::ParseMemory.
- Changed the first argument to ParseShift() to a reference.
- Changed ParseShift() to check for Rrx first and return to reduce nesting.

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