llvm-6502/lib/MC
Alexander Kornienko b4c6267f7c Replace size method call of containers to empty method where appropriate
This patch was generated by a clang tidy checker that is being open sourced.
The documentation of that checker is the following:

/// The emptiness of a container should be checked using the empty method
/// instead of the size method. It is not guaranteed that size is a
/// constant-time function, and it is generally more efficient and also shows
/// clearer intent to use empty. Furthermore some containers may implement the
/// empty method but not implement the size method. Using empty whenever
/// possible makes it easier to switch to another container in the future.

Patch by Gábor Horváth!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226161 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-15 11:41:30 +00:00
..
MCDisassembler Grammar and spelling. 2015-01-13 00:21:14 +00:00
MCParser Replace size method call of containers to empty method where appropriate 2015-01-15 11:41:30 +00:00
CMakeLists.txt
ConstantPools.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
ELFObjectWriter.cpp Revert "Add r224985 back with two fixes." 2015-01-14 19:07:23 +00:00
LLVMBuild.txt
MachObjectWriter.cpp Revert "Add r224985 back with two fixes." 2015-01-14 19:07:23 +00:00
Makefile
MCAsmBackend.cpp
MCAsmInfo.cpp Recommit r224935 with a fix for the ObjC++/AArch64 bug that that revision 2015-01-09 18:55:42 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp Revert "Add r224985 back with two fixes." 2015-01-14 19:07:23 +00:00
MCAsmInfoELF.cpp Allow target to specify prefix for labels 2014-12-04 00:06:57 +00:00
MCAsmStreamer.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
MCAssembler.cpp Revert "Add r224985 back with two fixes." 2015-01-14 19:07:23 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCContext.cpp Add the llvm.frameallocate and llvm.recoverframeallocation intrinsics 2015-01-13 00:48:10 +00:00
MCDwarf.cpp
MCELF.cpp
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp
MCExpr.cpp ARM: add support for segment base relocations (SBREL) 2015-01-11 04:39:18 +00:00
MCInst.cpp
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Replace size method call of containers to empty method where appropriate 2015-01-15 11:41:30 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp Commit back the correct bits of r222760 (was r222538). 2014-11-27 17:13:56 +00:00
MCObjectStreamer.cpp Clean up static analyzer warnings. 2014-12-12 21:48:03 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCSection.cpp
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp
MCSubtargetInfo.cpp
MCSymbol.cpp
MCSymbolizer.cpp
MCTargetOptions.cpp Migrate ABIName to MCTargetOptions so that it can be shared between 2015-01-14 00:50:31 +00:00
MCValue.cpp
MCWin64EH.cpp
MCWinEH.cpp Fix Windows unwind info for functions in sections other than .text 2014-12-22 22:10:08 +00:00
StringTableBuilder.cpp
SubtargetFeature.cpp
WinCOFFObjectWriter.cpp Revert "Add r224985 back with two fixes." 2015-01-14 19:07:23 +00:00
WinCOFFStreamer.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
YAML.cpp