mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 21:10:35 +00:00
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
This commit is contained in:
parent
8a380d8f16
commit
3cc072135d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user