diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-31 20:35:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-31 20:35:58 +0000 |
commit | 0e07d1a93d0fcfed0b309474778a76f828d670ce (patch) | |
tree | 4ea0fcec6f06084723334a57367bd7897c924593 /include | |
parent | 05bc4a6f20fb4bad971dc6ebb86b9ee29307bd3d (diff) | |
download | external_llvm-0e07d1a93d0fcfed0b309474778a76f828d670ce.zip external_llvm-0e07d1a93d0fcfed0b309474778a76f828d670ce.tar.gz external_llvm-0e07d1a93d0fcfed0b309474778a76f828d670ce.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/COFFYaml.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Object/COFFYaml.h b/include/llvm/Object/COFFYaml.h index f4732e2..25c4601 100644 --- a/include/llvm/Object/COFFYaml.h +++ b/include/llvm/Object/COFFYaml.h @@ -40,10 +40,8 @@ namespace COFFYAML { /// string. Using this avoid having to allocate temporary strings. /// FIXME: not COFF specific. class BinaryRef { - union { - ArrayRef<uint8_t> BinaryData; - StringRef HexData; - }; + ArrayRef<uint8_t> BinaryData; + StringRef HexData; bool isBinary; public: BinaryRef(ArrayRef<uint8_t> BinaryData) |