mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
Use .empty() instead of .size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95871 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -907,7 +907,7 @@ void DwarfException::EmitExceptionTable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Emit the Catch TypeInfos.
|
// Emit the Catch TypeInfos.
|
||||||
if (TypeInfos.size() != 0) EOL("-- Catch TypeInfos --");
|
if (!TypeInfos.empty()) EOL("-- Catch TypeInfos --");
|
||||||
for (std::vector<GlobalVariable *>::const_reverse_iterator
|
for (std::vector<GlobalVariable *>::const_reverse_iterator
|
||||||
I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) {
|
I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) {
|
||||||
const GlobalVariable *GV = *I;
|
const GlobalVariable *GV = *I;
|
||||||
@@ -923,7 +923,7 @@ void DwarfException::EmitExceptionTable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Emit the Exception Specifications.
|
// Emit the Exception Specifications.
|
||||||
if (FilterIds.size() != 0) EOL("-- Filter IDs --");
|
if (!FilterIds.empty()) EOL("-- Filter IDs --");
|
||||||
for (std::vector<unsigned>::const_iterator
|
for (std::vector<unsigned>::const_iterator
|
||||||
I = FilterIds.begin(), E = FilterIds.end(); I < E; ++I) {
|
I = FilterIds.begin(), E = FilterIds.end(); I < E; ++I) {
|
||||||
unsigned TypeID = *I;
|
unsigned TypeID = *I;
|
||||||
|
Reference in New Issue
Block a user