[llvm-commits] [llvm] r122075 - /llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
Jim Grosbach
grosbach at apple.com
Fri Dec 17 10:39:10 PST 2010
Author: grosbach
Date: Fri Dec 17 12:39:10 2010
New Revision: 122075
URL: http://llvm.org/viewvc/llvm-project?rev=122075&view=rev
Log:
Handle 2 and 4 byte data blob fixup values for ARM.
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp?rev=122075&r1=122074&r2=122075&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp Fri Dec 17 12:39:10 2010
@@ -142,6 +142,8 @@
switch (Kind) {
default:
llvm_unreachable("Unknown fixup kind!");
+ case FK_Data_1:
+ case FK_Data_2:
case FK_Data_4:
return Value;
case ARM::fixup_arm_movt_hi16:
@@ -412,11 +414,13 @@
default:
llvm_unreachable("Unknown fixup kind!");
+ case FK_Data_1:
case ARM::fixup_arm_thumb_bcc:
case ARM::fixup_arm_thumb_cp:
case ARM::fixup_thumb_adr_pcrel_10:
return 1;
+ case FK_Data_2:
case ARM::fixup_arm_thumb_br:
case ARM::fixup_arm_thumb_cb:
return 2;
More information about the llvm-commits
mailing list