Remove union to fix build in c++03.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183041 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-05-31 20:35:58 +00:00
parent 05bc4a6f20
commit 0e07d1a93d

View File

@@ -40,10 +40,8 @@ namespace COFFYAML {
/// string. Using this avoid having to allocate temporary strings. /// string. Using this avoid having to allocate temporary strings.
/// FIXME: not COFF specific. /// FIXME: not COFF specific.
class BinaryRef { class BinaryRef {
union {
ArrayRef<uint8_t> BinaryData; ArrayRef<uint8_t> BinaryData;
StringRef HexData; StringRef HexData;
};
bool isBinary; bool isBinary;
public: public:
BinaryRef(ArrayRef<uint8_t> BinaryData) BinaryRef(ArrayRef<uint8_t> BinaryData)