[BOLT] Use x.empty() instead of llvm::empty(x) (NFC)

I'm planning to deprecate and eventually remove llvm::empty.

Note that no use of llvm::empty requires the ability of llvm::empty to
determine the emptiness from begin/end only.
This commit is contained in:
Kazu Hirata 2022-09-18 11:01:56 -07:00
parent f55ed88936
commit c9696322bd
2 changed files with 2 additions and 2 deletions

View File

@ -1878,7 +1878,7 @@ public:
MCSymbol *getLSDASymbol(const FragmentNum F) {
if (F.get() < LSDASymbols.size() && LSDASymbols[F.get()] != nullptr)
return LSDASymbols[F.get()];
if (llvm::empty(getCallSites(F)))
if (getCallSites(F).empty())
return nullptr;
if (F.get() >= LSDASymbols.size())

View File

@ -886,7 +886,7 @@ void BinaryEmitter::emitCFIInstruction(const MCCFIInstruction &Inst) const {
void BinaryEmitter::emitLSDA(BinaryFunction &BF, const FunctionFragment &FF) {
const BinaryFunction::CallSitesRange Sites =
BF.getCallSites(FF.getFragmentNum());
if (llvm::empty(Sites))
if (Sites.empty())
return;
// Calculate callsite table size. Size of each callsite entry is: