[all-commits] [llvm/llvm-project] 960660: [llvm] Use x.empty() instead of llvm::empty(x) (NFC)
kazutakahirata via All-commits
all-commits at lists.llvm.org
Mon Sep 12 13:34:52 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9606608474873da64a870ff40ef042869051feb3
https://github.com/llvm/llvm-project/commit/9606608474873da64a870ff40ef042869051feb3
Author: Kazu Hirata <kazu at google.com>
Date: 2022-09-12 (Mon, 12 Sep 2022)
Changed paths:
M llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
M llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
M llvm/lib/ExecutionEngine/JITLink/JITLink.cpp
M llvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
M llvm/lib/ExecutionEngine/Orc/DebuggerSupportPlugin.cpp
M llvm/lib/ExecutionEngine/Orc/Layer.cpp
M llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp
M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
M llvm/lib/Target/X86/X86FastISel.cpp
M llvm/lib/Transforms/Utils/LoopUtils.cpp
M llvm/tools/llvm-jitlink/llvm-jitlink-coff.cpp
M llvm/tools/llvm-jitlink/llvm-jitlink-elf.cpp
M llvm/tools/llvm-jitlink/llvm-jitlink-macho.cpp
M llvm/tools/llvm-jitlink/llvm-jitlink.cpp
Log Message:
-----------
[llvm] Use x.empty() instead of llvm::empty(x) (NFC)
I'm planning to deprecate and eventually remove llvm::empty.
I thought about replacing llvm::empty(x) with std::empty(x), but it
turns out that all uses can be converted to x.empty(). That is, no
use requires the ability of std::empty to accept C arrays and
std::initializer_list.
Differential Revision: https://reviews.llvm.org/D133677
More information about the All-commits
mailing list