[llvm] r273739 - Simplify. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 15:19:55 PDT 2016
Author: rafael
Date: Fri Jun 24 17:19:54 2016
New Revision: 273739
URL: http://llvm.org/viewvc/llvm-project?rev=273739&view=rev
Log:
Simplify. NFC.
Also delete out of date comment. This code was always returning .data
since r253436.
Modified:
llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=273739&r1=273738&r2=273739&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Fri Jun 24 17:19:54 2016
@@ -223,16 +223,7 @@ SectionKind TargetLoweringObjectFile::ge
}
}
- // 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();
}
More information about the llvm-commits
mailing list