diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 03:20:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-05 03:20:13 +0000 |
commit | 23a22cdedda691b5ed39f75bc1a846fd890f07fb (patch) | |
tree | 69801c2e214790c1a8a411249daef8511677e2f2 /include | |
parent | 0962b1683f242cd6274423c24f0059832284b1c8 (diff) | |
download | external_llvm-23a22cdedda691b5ed39f75bc1a846fd890f07fb.zip external_llvm-23a22cdedda691b5ed39f75bc1a846fd890f07fb.tar.gz external_llvm-23a22cdedda691b5ed39f75bc1a846fd890f07fb.tar.bz2 |
Don't print default values for NumberOfAuxSymbols and AuxiliaryData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/YAML.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Object/YAML.h b/include/llvm/Object/YAML.h index 44d387b..304454b 100644 --- a/include/llvm/Object/YAML.h +++ b/include/llvm/Object/YAML.h @@ -41,6 +41,13 @@ public: assert(isBinary); return Data; } + bool operator==(const BinaryRef &Ref) { + // Special case for default constructed BinaryRef. + if (Ref.Data.empty() && Data.empty()) + return true; + + return Ref.isBinary == isBinary && Ref.Data == Data; + } }; } |