[llvm-commits] [llvm] r166051 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp

Michael Liao michael.liao at intel.com
Tue Oct 16 12:49:51 PDT 2012


Author: hliao
Date: Tue Oct 16 14:49:51 2012
New Revision: 166051

URL: http://llvm.org/viewvc/llvm-project?rev=166051&view=rev
Log:
Check .rela instead of ELF64 for the compensation vaue resetting


Modified:
    llvm/trunk/lib/MC/ELFObjectWriter.cpp

Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=166051&r1=166050&r2=166051&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Tue Oct 16 14:49:51 2012
@@ -733,8 +733,7 @@
       Index = -1;
     }
     Addend = Value;
-    // Compensate for the addend on i386.
-    if (is64Bit())
+    if (hasRelocationAddend())
       Value = 0;
   }
 





More information about the llvm-commits mailing list