llvm.org GIT mirror llvm / 55e9a41
[llvm-objdump] Inverting logic to match the word "predicate". Returning true when we want it rather than when we want to discard it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243558 91177308-0d34-0410-b5e6-96231b3b80d8 Colin LeMahieu 5 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
201201
202202 private:
203203 void ScanPredicate() {
204 while (Iterator != End && Predicate(*Iterator)) {
204 while (Iterator != End && !Predicate(*Iterator)) {
205205 ++Iterator;
206206 }
207207 }
230230 SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O) {
231231 return SectionFilter([](llvm::object::SectionRef const &S) {
232232 if(FilterSections.empty())
233 return false;
233 return true;
234234 llvm::StringRef String;
235235 std::error_code error = S.getName(String);
236236 if (error)
237 return true;
237 return false;
238238 return std::find(FilterSections.begin(),
239239 FilterSections.end(),
240 String) == FilterSections.end();
240 String) != FilterSections.end();
241241 },
242242 O);
243243 }