Fix thinko: put stuff with both global and local relocations into data.rel{.ro}, not .local

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68036 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index 3d24c02..6bf7fd6 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/lib/Target/ELFTargetAsmInfo.cpp
@@ -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;