diff options
author | Tim Northover <tnorthover@apple.com> | 2013-07-19 10:05:04 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-07-19 10:05:04 +0000 |
commit | 48cf6cc416acd217a497172518147ebaf5e401f3 (patch) | |
tree | ab6bc2fab5c2b4b616d4a08b6ed51979b216a032 /clang/unittests/Tooling/RefactoringTest.cpp | |
parent | b11c2c28389b7b2baffb4d849f92a094cdfdde28 (diff) | |
download | bcm5719-llvm-48cf6cc416acd217a497172518147ebaf5e401f3.tar.gz bcm5719-llvm-48cf6cc416acd217a497172518147ebaf5e401f3.zip |
Improve llvm-mc disassembler mode and refactor ARM tests to use it
This allows "llvm-mc -disassemble" to accept two new features:
+ Using comma as a byte separator
+ Grouping bytes with '[' and ']' pairs.
The behaviour outside a [...] group is unchanged. But within the group once
llvm-mc encounters a true error, it stops rather than trying to resynchronise
the stream at the next byte. This is more useful for disassembly tests, where
we have an almost-instruction in mind and don't care what the misaligned
interpretation would be. Particularly if it means llvm-mc won't actually see
the next intended almost-instruction.
As a side effect, this means llvm-mc can disassemble its own -show-encoding
output if copy-pasted.
llvm-svn: 186661
Diffstat (limited to 'clang/unittests/Tooling/RefactoringTest.cpp')
0 files changed, 0 insertions, 0 deletions