Fix build after LLVM memory management API changes.
llvm-svn: 191806
This commit is contained in:
parent
44e066c72a
commit
bfcff68516
|
@ -287,7 +287,8 @@ private:
|
|||
/// Allocated space.
|
||||
//------------------------------------------------------------------
|
||||
virtual uint8_t *allocateCodeSection(uintptr_t Size, unsigned Alignment,
|
||||
unsigned SectionID);
|
||||
unsigned SectionID,
|
||||
llvm::StringRef SectionName);
|
||||
|
||||
//------------------------------------------------------------------
|
||||
/// Allocate space for data, and add it to the m_spaceBlocks map
|
||||
|
@ -308,7 +309,9 @@ private:
|
|||
/// Allocated space.
|
||||
//------------------------------------------------------------------
|
||||
virtual uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
|
||||
unsigned SectionID, bool IsReadOnly);
|
||||
unsigned SectionID,
|
||||
llvm::StringRef SectionName,
|
||||
bool IsReadOnly);
|
||||
|
||||
//------------------------------------------------------------------
|
||||
/// Allocate space for a global variable, and add it to the
|
||||
|
|
|
@ -490,11 +490,12 @@ IRExecutionUnit::MemoryManager::allocateSpace(intptr_t Size, unsigned Alignment)
|
|||
uint8_t *
|
||||
IRExecutionUnit::MemoryManager::allocateCodeSection(uintptr_t Size,
|
||||
unsigned Alignment,
|
||||
unsigned SectionID)
|
||||
unsigned SectionID,
|
||||
llvm::StringRef SectionName)
|
||||
{
|
||||
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
|
||||
|
||||
uint8_t *return_value = m_default_mm_ap->allocateCodeSection(Size, Alignment, SectionID);
|
||||
uint8_t *return_value = m_default_mm_ap->allocateCodeSection(Size, Alignment, SectionID, SectionName);
|
||||
|
||||
m_parent.m_records.push_back(AllocationRecord((uintptr_t)return_value,
|
||||
lldb::ePermissionsReadable | lldb::ePermissionsExecutable,
|
||||
|
@ -515,11 +516,12 @@ uint8_t *
|
|||
IRExecutionUnit::MemoryManager::allocateDataSection(uintptr_t Size,
|
||||
unsigned Alignment,
|
||||
unsigned SectionID,
|
||||
llvm::StringRef SectionName,
|
||||
bool IsReadOnly)
|
||||
{
|
||||
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
|
||||
|
||||
uint8_t *return_value = m_default_mm_ap->allocateDataSection(Size, Alignment, SectionID, IsReadOnly);
|
||||
uint8_t *return_value = m_default_mm_ap->allocateDataSection(Size, Alignment, SectionID, SectionName, IsReadOnly);
|
||||
|
||||
m_parent.m_records.push_back(AllocationRecord((uintptr_t)return_value,
|
||||
lldb::ePermissionsReadable | lldb::ePermissionsWritable,
|
||||
|
|
Loading…
Reference in New Issue