diff options
Diffstat (limited to 'source/Symbol/Function.cpp')
| -rw-r--r-- | source/Symbol/Function.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/source/Symbol/Function.cpp b/source/Symbol/Function.cpp index 9464cef0bc73..f642c186a19f 100644 --- a/source/Symbol/Function.cpp +++ b/source/Symbol/Function.cpp @@ -24,9 +24,8 @@ using namespace lldb; using namespace lldb_private; //---------------------------------------------------------------------- -// Basic function information is contained in the FunctionInfo class. -// It is designed to contain the name, linkage name, and declaration -// location. +// Basic function information is contained in the FunctionInfo class. It is +// designed to contain the name, linkage name, and declaration location. //---------------------------------------------------------------------- FunctionInfo::FunctionInfo(const char *name, const Declaration *decl_ptr) : m_name(name), m_declaration(decl_ptr) {} @@ -188,8 +187,7 @@ void Function::GetEndLineSourceInfo(FileSpec &source_file, uint32_t &line_no) { source_file.Clear(); // The -1 is kind of cheesy, but I want to get the last line entry for the - // given function, not the - // first entry of the next. + // given function, not the first entry of the next. Address scratch_addr(GetAddressRange().GetBaseAddress()); scratch_addr.SetOffset(scratch_addr.GetOffset() + GetAddressRange().GetByteSize() - 1); @@ -331,9 +329,8 @@ size_t Function::MemorySize() const { bool Function::GetIsOptimized() { bool result = false; - // Currently optimization is only indicted by the - // vendor extension DW_AT_APPLE_optimized which - // is set on a compile unit level. + // Currently optimization is only indicted by the vendor extension + // DW_AT_APPLE_optimized which is set on a compile unit level. if (m_comp_unit) { result = m_comp_unit->GetIsOptimized(); } @@ -441,11 +438,11 @@ uint32_t Function::GetPrologueByteSize() { } } - // If we didn't find the end of the prologue in the line tables, - // then just use the end address of the first line table entry + // If we didn't find the end of the prologue in the line tables, then + // just use the end address of the first line table entry if (prologue_end_file_addr == LLDB_INVALID_ADDRESS) { - // Check the first few instructions and look for one that has - // a line number that's different than the first entry. + // Check the first few instructions and look for one that has a line + // number that's different than the first entry. uint32_t last_line_entry_idx = first_line_entry_idx + 6; for (uint32_t idx = first_line_entry_idx + 1; idx < last_line_entry_idx; ++idx) { @@ -498,8 +495,8 @@ uint32_t Function::GetPrologueByteSize() { } } - // Verify that this prologue end file address in the function's - // address range just to be sure + // Verify that this prologue end file address in the function's address + // range just to be sure if (func_start_file_addr < prologue_end_file_addr && prologue_end_file_addr < func_end_file_addr) { m_prologue_byte_size = prologue_end_file_addr - func_start_file_addr; |
