[llvm-commits] [llvm] r68036 - /llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp

Anton Korobeynikov asl at math.spbu.ru
Mon Mar 30 10:37:44 PDT 2009


Author: asl
Date: Mon Mar 30 12:37:43 2009
New Revision: 68036

URL: http://llvm.org/viewvc/llvm-project?rev=68036&view=rev
Log:
Fix thinko: put stuff with both global and local relocations into data.rel{.ro}, not .local

Modified:
    llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp

Modified: llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp?rev=68036&r1=68035&r2=68036&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ELFTargetAsmInfo.cpp Mon Mar 30 12:37:43 2009
@@ -58,11 +58,11 @@
     bool isConstant = GVar->isConstant();
     unsigned Reloc = RelocBehaviour();
     if (Reloc != Reloc::None && C->ContainsRelocations(Reloc))
-      return (C->ContainsRelocations(Reloc::Local) ?
+      return (C->ContainsRelocations(Reloc::Global) ?
               (isConstant ?
-               SectionKind::DataRelROLocal : SectionKind::DataRelLocal) :
+               SectionKind::DataRelRO : SectionKind::DataRel) :
               (isConstant ?
-               SectionKind::DataRelRO : SectionKind::DataRel));
+               SectionKind::DataRelROLocal : SectionKind::DataRelLocal));
   }
 
   return Kind;





More information about the llvm-commits mailing list