From 23a22cdedda691b5ed39f75bc1a846fd890f07fb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 5 Jun 2013 03:20:13 +0000 Subject: 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 --- include/llvm/Object/YAML.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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; + } }; } -- cgit v1.1