aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-05 03:20:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-05 03:20:13 +0000
commit23a22cdedda691b5ed39f75bc1a846fd890f07fb (patch)
tree69801c2e214790c1a8a411249daef8511677e2f2 /include
parent0962b1683f242cd6274423c24f0059832284b1c8 (diff)
downloadexternal_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.h7
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;
+ }
};
}