diff options
| author | Colin LeMahieu <colinl@codeaurora.org> | 2015-07-29 19:21:13 +0000 | 
|---|---|---|
| committer | Colin LeMahieu <colinl@codeaurora.org> | 2015-07-29 19:21:13 +0000 | 
| commit | da1723f1942cfab05252af2ae45e6b9cd0bb53ef (patch) | |
| tree | db63671fd966ffc2bdb3b9cd2421c1e07d863539 /llvm | |
| parent | 308915ade233f7edbad7edec70fe61b1bc98564c (diff) | |
| download | bcm5719-llvm-da1723f1942cfab05252af2ae45e6b9cd0bb53ef.tar.gz bcm5719-llvm-da1723f1942cfab05252af2ae45e6b9cd0bb53ef.zip  | |
[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
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 97243cb8016..da2e29fc808 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -202,7 +202,7 @@ public:  private:    void ScanPredicate() { -    while (Iterator != End && Predicate(*Iterator)) { +    while (Iterator != End && !Predicate(*Iterator)) {        ++Iterator;      }    } @@ -231,14 +231,14 @@ private:  SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O) {    return SectionFilter([](llvm::object::SectionRef const &S) {                           if(FilterSections.empty()) -                           return false; +                           return true;                           llvm::StringRef String;                           std::error_code error = S.getName(String);                           if (error) -                           return true; +                           return false;                           return std::find(FilterSections.begin(),                                            FilterSections.end(), -                                          String) == FilterSections.end(); +                                          String) != FilterSections.end();                         },                         O);  }  | 

