diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-02-11 10:37:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-02-11 10:37:57 +0000 |
commit | e9d10a6c398246fac376804143e868d6c20b6947 (patch) | |
tree | e9584669dff8076318cda22d7859c8413366f4a0 /lib | |
parent | ecfb3c3d665480e04c051b4b229607768612d28d (diff) | |
download | external_llvm-e9d10a6c398246fac376804143e868d6c20b6947.zip external_llvm-e9d10a6c398246fac376804143e868d6c20b6947.tar.gz external_llvm-e9d10a6c398246fac376804143e868d6c20b6947.tar.bz2 |
Use .empty() instead of .size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 8b1616e..22b1b1c 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -907,7 +907,7 @@ void DwarfException::EmitExceptionTable() { } // Emit the Catch TypeInfos. - if (TypeInfos.size() != 0) EOL("-- Catch TypeInfos --"); + if (!TypeInfos.empty()) EOL("-- Catch TypeInfos --"); for (std::vector<GlobalVariable *>::const_reverse_iterator I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) { const GlobalVariable *GV = *I; @@ -923,7 +923,7 @@ void DwarfException::EmitExceptionTable() { } // Emit the Exception Specifications. - if (FilterIds.size() != 0) EOL("-- Filter IDs --"); + if (!FilterIds.empty()) EOL("-- Filter IDs --"); for (std::vector<unsigned>::const_iterator I = FilterIds.begin(), E = FilterIds.end(); I < E; ++I) { unsigned TypeID = *I; |