mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix style
This commit is contained in:
parent
a3ebbea3a0
commit
66eb5402b0
@ -168,20 +168,20 @@ struct CountingMMapper final : public llvm::SectionMemoryManager::MemoryMapper
|
||||
|
||||
llvm::sys::MemoryBlock allocateMappedMemory(llvm::SectionMemoryManager::AllocationPurpose /*purpose*/,
|
||||
size_t num_bytes,
|
||||
const llvm::sys::MemoryBlock *const near_block,
|
||||
const llvm::sys::MemoryBlock * const near_block,
|
||||
unsigned flags,
|
||||
std::error_code &EC) override
|
||||
std::error_code & EC) override
|
||||
{
|
||||
allocated_memory += num_bytes;
|
||||
return llvm::sys::Memory::allocateMappedMemory(num_bytes, near_block, flags, EC);
|
||||
}
|
||||
|
||||
std::error_code protectMappedMemory(const llvm::sys::MemoryBlock &block, unsigned flags) override
|
||||
std::error_code protectMappedMemory(const llvm::sys::MemoryBlock & block, unsigned flags) override
|
||||
{
|
||||
return llvm::sys::Memory::protectMappedMemory(block, flags);
|
||||
}
|
||||
|
||||
std::error_code releaseMappedMemory(llvm::sys::MemoryBlock &block) override
|
||||
std::error_code releaseMappedMemory(llvm::sys::MemoryBlock & block) override
|
||||
{
|
||||
allocated_memory -= block.size();
|
||||
return llvm::sys::Memory::releaseMappedMemory(block);
|
||||
|
Loading…
Reference in New Issue
Block a user