mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[NFC] Use hasSection instead of getSection().empty()
Use the optimized check hasSection() instead of calling getSection().empty(). Originally suggested in D101004, but was dropped in the commit.
This commit is contained in:
parent
d426ff687e
commit
c663b27364
@ -101,7 +101,7 @@ bool MachineFunctionSplitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
// since the split part may not be placed in a contiguous region. It may also
|
||||
// be more beneficial to augment the linker to ensure contiguous layout of
|
||||
// split functions within the same section as specified by the attribute.
|
||||
if (!MF.getFunction().getSection().empty() ||
|
||||
if (MF.getFunction().hasSection() ||
|
||||
MF.getFunction().hasFnAttribute("implicit-section-name"))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user