summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/call-function/main.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-06-08 14:30:00 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-06-08 14:30:00 +0000
commit1ef925f0bdb8223c73e9aad36b6c2338f5bb9844 (patch)
treec39027c24f0597991064cf6df3020fb22907f324 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/main.cpp
parentfb90b51e63059cafabbd5aedba533c9c9ba512b9 (diff)
downloadbcm5719-llvm-1ef925f0bdb8223c73e9aad36b6c2338f5bb9844.tar.gz
bcm5719-llvm-1ef925f0bdb8223c73e9aad36b6c2338f5bb9844.zip
Support: correct AArch64 TargetParser implementation
The architecture enumeration is shared across ARM and AArch64. However, the data is not. The code incorrectly would index into the array using the architecture index which was offset by the ARMv7 architecture enumeration. We do not have a marker for indicating the architectural family to which the enumeration belongs so we cannot be clever about offsetting the index (at least it is not immediately apparent to me). Instead, fall back to the tried-and-true method of slowly iterating the array (its not a large array, so the impact of this is not too high). Because of the incorrect indexing, if we were lucky, we would crash, but usually we would return an invalid StringRef. We did not have any tests for the AArch64 target parser previously;. Extend the previous tests I had added for ARM to cover AArch64 for ensuring that we return expected StringRefs. Take the opportunity to change some iterator types to references. This work is needed to support parsing `.arch name` directives in the AArch64 target asm parser. llvm-svn: 272145
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud