[AArch64] Fix libunwind build when using GNU assembler
authorRenato Golin <renato.golin@linaro.org>
Thu, 11 Feb 2016 21:22:57 +0000 (21:22 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 11 Feb 2016 21:22:57 +0000 (21:22 +0000)
commita6a92a4421831bfc41b5bb85cfbd3ae4fdba056c
treec806694aa3a34358be238bb9084545c25ca3251d
parent7bd6a225e816ec4776e6d242992dda178dd09a4b
[AArch64] Fix libunwind build when using GNU assembler

Use x29 and x30 for fp and lr respectively.

This does not change the code generation with integrated asm
but using x30 and x29 helps compile the code with gnu as. Currently gas
fails to assemble this code with errors as below.

Error: operand X should be an integer register.

Newer versions of binutils should be fixed, but enough exists in the wild
to make this change harmless and worthy.

Patch by Khem Raj.

llvm-svn: 260595
libunwind/src/UnwindRegistersRestore.S
libunwind/src/UnwindRegistersSave.S