mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[llvm-objdump] Inverting logic to match the word "predicate". Returning true when we want it rather than when we want to discard it.
llvm-svn: 243558
This commit is contained in:
parent
cfafccba0c
commit
022e50ae96
@ -202,7 +202,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void ScanPredicate() {
|
void ScanPredicate() {
|
||||||
while (Iterator != End && Predicate(*Iterator)) {
|
while (Iterator != End && !Predicate(*Iterator)) {
|
||||||
++Iterator;
|
++Iterator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -231,14 +231,14 @@ private:
|
|||||||
SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O) {
|
SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O) {
|
||||||
return SectionFilter([](llvm::object::SectionRef const &S) {
|
return SectionFilter([](llvm::object::SectionRef const &S) {
|
||||||
if(FilterSections.empty())
|
if(FilterSections.empty())
|
||||||
return false;
|
return true;
|
||||||
llvm::StringRef String;
|
llvm::StringRef String;
|
||||||
std::error_code error = S.getName(String);
|
std::error_code error = S.getName(String);
|
||||||
if (error)
|
if (error)
|
||||||
return true;
|
return false;
|
||||||
return std::find(FilterSections.begin(),
|
return std::find(FilterSections.begin(),
|
||||||
FilterSections.end(),
|
FilterSections.end(),
|
||||||
String) == FilterSections.end();
|
String) != FilterSections.end();
|
||||||
},
|
},
|
||||||
O);
|
O);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user