[RISCV][NFC] Minor cleanup in RISCVInstrInfo::getOutliningType
authorKito Cheng <kito.cheng@sifive.com>
Wed, 24 Aug 2022 15:39:17 +0000 (23:39 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 24 Aug 2022 15:42:34 +0000 (23:42 +0800)
commit8e8a62006ecae016cfc345c2ec97fb3574b76d61
tree2dc1ac971402a107f9767a184d2fb9e7d447c8a3
parent43913514634cbdc33e3dcd88231c3819c7b37615
[RISCV][NFC] Minor cleanup in RISCVInstrInfo::getOutliningType

The only use of TM is checking result of TargetMachine::getFunctionSections,
check that directly instead of introdce a local variable.
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp