From 3cc072135db0aad622495e90a40b6eea5a7ae4c8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 24 Jun 2016 22:19:54 +0000 Subject: [PATCH] Simplify. NFC. 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 | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index fd4936e1904..c291f82a612 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -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(); } -- 2.50.1