diff options
author | Zachary Turner <zturner@google.com> | 2017-03-01 01:17:31 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-03-01 01:17:31 +0000 |
commit | b75c5c564cbe0d5bab6982264ce78501fd7da3a9 (patch) | |
tree | 948f2b5a5272b90e090fcc13d8f52b1aba4f8ce6 | |
parent | 28db7e65e5d377488e68a7aa7e914d2f5549a0b2 (diff) | |
download | bcm5719-llvm-b75c5c564cbe0d5bab6982264ce78501fd7da3a9.tar.gz bcm5719-llvm-b75c5c564cbe0d5bab6982264ce78501fd7da3a9.zip |
Move constexpr arrays out of class definition.
GCC Linker doesn't seem to like this.
llvm-svn: 296560
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp index 3e4df503ece..5c22a4afa92 100644 --- a/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/BinaryStreamTest.cpp @@ -124,10 +124,11 @@ private: BumpPtrAllocator Allocator; }; +constexpr endianness Endians[] = { big, little, native }; +constexpr uint32_t NumEndians = llvm::array_lengthof(Endians); +constexpr uint32_t NumStreams = 2 * NumEndians; + class BinaryStreamTest : public testing::Test { - static constexpr endianness Endians[] = {big, little, native}; - static constexpr uint32_t NumEndians = llvm::array_lengthof(Endians); - static constexpr uint32_t NumStreams = 2 * NumEndians; public: BinaryStreamTest() {} |