mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-13 04:24:40 +00:00
[C++11] Use 'nullptr'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -267,12 +267,12 @@ TEST(JITMemoryManagerTest, TestManyStubs) {
|
||||
|
||||
// After allocating a bunch of stubs, we should have two.
|
||||
for (int I = 0; I < Iters; ++I)
|
||||
MemMgr->allocateStub(NULL, Size, 8);
|
||||
MemMgr->allocateStub(nullptr, Size, 8);
|
||||
EXPECT_EQ(2U, MemMgr->GetNumStubSlabs());
|
||||
|
||||
// And after much more, we should have three.
|
||||
for (int I = 0; I < Iters; ++I)
|
||||
MemMgr->allocateStub(NULL, Size, 8);
|
||||
MemMgr->allocateStub(nullptr, Size, 8);
|
||||
EXPECT_EQ(3U, MemMgr->GetNumStubSlabs());
|
||||
}
|
||||
|
||||
@ -286,10 +286,10 @@ TEST(JITMemoryManagerTest, AllocateSection) {
|
||||
uint8_t *data2 = MemMgr->allocateDataSection(256, 64, 4, StringRef(), false);
|
||||
uint8_t *code3 = MemMgr->allocateCodeSection(258, 64, 5, StringRef());
|
||||
|
||||
EXPECT_NE((uint8_t*)0, code1);
|
||||
EXPECT_NE((uint8_t*)0, code2);
|
||||
EXPECT_NE((uint8_t*)0, data1);
|
||||
EXPECT_NE((uint8_t*)0, data2);
|
||||
EXPECT_NE((uint8_t*)nullptr, code1);
|
||||
EXPECT_NE((uint8_t*)nullptr, code2);
|
||||
EXPECT_NE((uint8_t*)nullptr, data1);
|
||||
EXPECT_NE((uint8_t*)nullptr, data2);
|
||||
|
||||
// Check alignment
|
||||
EXPECT_EQ((uint64_t)code1 & 0xf, 0u);
|
||||
|
Reference in New Issue
Block a user