summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-02-11 10:37:57 +0000
committerBill Wendling <isanbard@gmail.com>2010-02-11 10:37:57 +0000
commit243e1f21db45e6f0deab9cff37fd398166d68c5f (patch)
treea0ceebaba10c2a3de607d914b9cb728ff686e84d /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
parentbe089fa86b8724cfee55c99393f2b32088996700 (diff)
downloadbcm5719-llvm-243e1f21db45e6f0deab9cff37fd398166d68c5f.tar.gz
bcm5719-llvm-243e1f21db45e6f0deab9cff37fd398166d68c5f.zip
Use .empty() instead of .size().
llvm-svn: 95871
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 8b1616ed098..22b1b1caa0e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud