commit | 523ef72166c036d70d0b65ed24746d65263f1102 | [log] [tgz] |
---|---|---|
author | Jim Stichnoth <stichnot@chromium.org> | Thu Sep 04 11:32:20 2014 -0700 |
committer | Jim Stichnoth <stichnot@chromium.org> | Thu Sep 04 11:32:20 2014 -0700 |
tree | 31fd8b748673405e0e762f9695845141840dc1ae | |
parent | dd7b846c2cc561ed8060428b6d77defa22e03fc0 [diff] |
Subzero: Work around another llvm-mc parser bug for relocatable symbols. There's already a hack that emits asm like: lea eax, myglobal instead of: mov eax, [myglobal] because of an llvm-mc parser bug. However, the lea hack still doesn't work if the symbol is a reserved word, e.g.: lea eax, flags The extra hack is to drop into AT&T syntax temporarily: .att_syntax leal flags, %eax .intel_syntax BUG= none R=jvoung@chromium.org Review URL: https://codereview.chromium.org/543803002