[llvm-commits] [llvm-gcc-4.2] r131599 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Eric Christopher
echristo at apple.com
Wed May 18 16:24:33 PDT 2011
Author: echristo
Date: Wed May 18 18:24:32 2011
New Revision: 131599
URL: http://llvm.org/viewvc/llvm-project?rev=131599&view=rev
Log:
Translate reg_names if necessary, otherwise preserve the register
name that the user provided.
Fixes part of rdar://9088139
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.h?rev=131599&r1=131598&r2=131599&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.h Wed May 18 18:24:32 2011
@@ -3600,12 +3600,13 @@
/* LLVM_GET_REG_NAME - The registers known to llvm as "r10", "r11", and "r12"
may have different names in GCC. Register "r12" is called "ip", and on
non-Darwin OSs, "r10" is "sl" and "r11" is "fp". Translate those names,
- and use the default register names for everything else. */
+ and use incoming register name if it exists otherwise since reg_names doesn't
+ distinguish between the q and d registers. */
#define LLVM_GET_REG_NAME(REG_NAME, REG_NUM) \
((REG_NUM) == 10 ? "r10" \
: (REG_NUM) == 11 ? "r11" \
: (REG_NUM) == 12 ? "r12" \
- : reg_names[REG_NUM])
+ : (REG_NAME ? REG_NAME : reg_names[REG_NUM]))
#endif /* ENABLE_LLVM */
/* LLVM LOCAL end */
More information about the llvm-commits
mailing list