diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-24 22:19:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-24 22:19:54 +0000 |
commit | a686f1270574db7d9e230edeb9a6416a45dab2d8 (patch) | |
tree | 325adea4828f66c6e9e40ccb8f9afc1f661346e8 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | 995d6cc8f9f246e244f086cbb68ec1b4304eb9e3 (diff) | |
download | llvm-a686f1270574db7d9e230edeb9a6416a45dab2d8.zip llvm-a686f1270574db7d9e230edeb9a6416a45dab2d8.tar.gz llvm-a686f1270574db7d9e230edeb9a6416a45dab2d8.tar.bz2 |
Simplify. NFC.
Also delete out of date comment. This code was always returning .data
since r253436.
llvm-svn: 273739
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index fd4936e..c291f82 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/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(); } |