diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2014-08-22 06:05:21 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2014-08-22 06:05:21 +0000 |
commit | 987f1864caeb3b685e03d78c7316b97c506b649f (patch) | |
tree | 296cf883168550c66c87af1a4588cd53dd262dc6 /llvm/tools/llvm-cov/CodeCoverage.cpp | |
parent | 118da50a2aa6eb6464cf39e81b165f171fa13802 (diff) | |
download | llvm-987f1864caeb3b685e03d78c7316b97c506b649f.zip llvm-987f1864caeb3b685e03d78c7316b97c506b649f.tar.gz llvm-987f1864caeb3b685e03d78c7316b97c506b649f.tar.bz2 |
[AArch64, inline-asm] Improve diagnostic that is printed when the size of a
variable that has regiser constraint "r" is not 64-bit.
General register operands are output using 64-bit "x" register names, regardless
of the size of the variable, unless the asm operand is prefixed with the "%w"
modifier. This surprises and confuses many users who aren't familiar with
aarch64 inline assembly rules.
With this commit, a note and fixit hint are printed which tell the users that
they need modifier "%w" in order to output a "w" register instead of an "x"
register.
<rdar://problem/12764785>
llvm-svn: 216260
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions