forked from OSchip/llvm-project
[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:
parent
f55ed88936
commit
c9696322bd
|
@ -1878,7 +1878,7 @@ public:
|
||||||
MCSymbol *getLSDASymbol(const FragmentNum F) {
|
MCSymbol *getLSDASymbol(const FragmentNum F) {
|
||||||
if (F.get() < LSDASymbols.size() && LSDASymbols[F.get()] != nullptr)
|
if (F.get() < LSDASymbols.size() && LSDASymbols[F.get()] != nullptr)
|
||||||
return LSDASymbols[F.get()];
|
return LSDASymbols[F.get()];
|
||||||
if (llvm::empty(getCallSites(F)))
|
if (getCallSites(F).empty())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
if (F.get() >= LSDASymbols.size())
|
if (F.get() >= LSDASymbols.size())
|
||||||
|
|
|
@ -886,7 +886,7 @@ void BinaryEmitter::emitCFIInstruction(const MCCFIInstruction &Inst) const {
|
||||||
void BinaryEmitter::emitLSDA(BinaryFunction &BF, const FunctionFragment &FF) {
|
void BinaryEmitter::emitLSDA(BinaryFunction &BF, const FunctionFragment &FF) {
|
||||||
const BinaryFunction::CallSitesRange Sites =
|
const BinaryFunction::CallSitesRange Sites =
|
||||||
BF.getCallSites(FF.getFragmentNum());
|
BF.getCallSites(FF.getFragmentNum());
|
||||||
if (llvm::empty(Sites))
|
if (Sites.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Calculate callsite table size. Size of each callsite entry is:
|
// Calculate callsite table size. Size of each callsite entry is:
|
||||||
|
|
Loading…
Reference in New Issue