]> granicus.if.org Git - llvm/commitdiff
Simplify. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 24 Jun 2016 22:19:54 +0000 (22:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 24 Jun 2016 22:19:54 +0000 (22:19 +0000)
Also delete out of date comment. This code was always returning .data
since r253436.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273739 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLoweringObjectFile.cpp

index fd4936e1904bd4e4eb36aa684201e378c4c372c4..c291f82a612848cede925c7eafa88633e055b06a 100644 (file)
@@ -223,16 +223,7 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
     }
   }
 
-  // Okay, this isn't a constant.  If the initializer for the global is going
-  // to require a runtime relocation by the dynamic linker, put it into a more
-  // specific section to improve startup time of the app.  This coalesces these
-  // globals together onto fewer pages, improving the locality of the dynamic
-  // linker.
-  if (ReloModel == Reloc::Static)
-    return SectionKind::getData();
-
-  if (C->needsRelocation())
-    return SectionKind::getData();
+  // Okay, this isn't a constant.
   return SectionKind::getData();
 }