diff options
| author | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-08-06 10:49:40 +0000 |
|---|---|---|
| committer | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-08-06 10:49:40 +0000 |
| commit | f26a70a5e7b7b8715eadcb6dec3ff39a267fc666 (patch) | |
| tree | d178246aab19aded049ff79111d90654bdbfe497 /llvm/unittests | |
| parent | f5f35c5cd110e22c4b216ec1dc53255e32adc011 (diff) | |
| download | bcm5719-llvm-f26a70a5e7b7b8715eadcb6dec3ff39a267fc666.tar.gz bcm5719-llvm-f26a70a5e7b7b8715eadcb6dec3ff39a267fc666.zip | |
Switch LLVM to use 64-bit offsets (2/5)
This updates all libraries and tools in LLVM Core to use 64-bit offsets
which directly or indirectly come to DataExtractor.
Differential Revision: https://reviews.llvm.org/D65638
llvm-svn: 368014
Diffstat (limited to 'llvm/unittests')
| -rw-r--r-- | llvm/unittests/Support/DataExtractorTest.cpp | 2 | ||||
| -rw-r--r-- | llvm/unittests/XRay/FDRProducerConsumerTest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Support/DataExtractorTest.cpp b/llvm/unittests/Support/DataExtractorTest.cpp index 391b27178d6..4d63439621d 100644 --- a/llvm/unittests/Support/DataExtractorTest.cpp +++ b/llvm/unittests/Support/DataExtractorTest.cpp @@ -17,7 +17,7 @@ template <typename T> class DataExtractorTest : public ::testing::Test { }; // Test DataExtractor with both types which can be used for offsets. -typedef ::testing::Types<uint32_t, uint64_t> TestTypes; +typedef ::testing::Types</*uint32_t, */uint64_t> TestTypes; TYPED_TEST_CASE(DataExtractorTest, TestTypes); const char numberData[] = "\x80\x90\xFF\xFF\x80\x00\x00\x00"; diff --git a/llvm/unittests/XRay/FDRProducerConsumerTest.cpp b/llvm/unittests/XRay/FDRProducerConsumerTest.cpp index bbc15be0302..e1fa0e345d2 100644 --- a/llvm/unittests/XRay/FDRProducerConsumerTest.cpp +++ b/llvm/unittests/XRay/FDRProducerConsumerTest.cpp @@ -131,7 +131,7 @@ TYPED_TEST_P(RoundTripTest, RoundTripsSingleValue) { this->OS.flush(); DataExtractor DE(this->Data, sys::IsLittleEndianHost, 8); - uint32_t OffsetPtr = 0; + uint64_t OffsetPtr = 0; auto HeaderOrErr = readBinaryFormatHeader(DE, OffsetPtr); if (!HeaderOrErr) FAIL() << HeaderOrErr.takeError(); @@ -172,7 +172,7 @@ TYPED_TEST_P(RoundTripTestV5, RoundTripsSingleValue) { this->OS.flush(); DataExtractor DE(this->Data, sys::IsLittleEndianHost, 8); - uint32_t OffsetPtr = 0; + uint64_t OffsetPtr = 0; auto HeaderOrErr = readBinaryFormatHeader(DE, OffsetPtr); if (!HeaderOrErr) FAIL() << HeaderOrErr.takeError(); |

