Drop prelink support.
[oota-llvm.git] / lib / Target / PowerPC / PPCTargetObjectFile.cpp
index 9ee5db938b67b5658a3c63a0c7ae8a71dc892395..798bb9d6b89207b5e38fdfd98584f7ec5f7e2609 100644 (file)
@@ -42,9 +42,7 @@ MCSection *PPC64LinuxTargetObjectFile::SelectSectionForGlobal(
   if (Kind.isReadOnly()) {
     const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
 
-    if (GVar && GVar->isConstant() &&
-        (GVar->getInitializer()->getRelocationInfo() ==
-         Constant::GlobalRelocations))
+    if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation())
       Kind = SectionKind::getReadOnlyWithRel();
   }