diff options
author | Eric Christopher <echristo@gmail.com> | 2012-10-30 21:36:43 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2012-10-30 21:36:43 +0000 |
commit | 203e6f60a84096d7fbc0ded932a6636177580198 (patch) | |
tree | 6a4ceef5287e625ffd3d24058e146414874f4d12 /lib/DebugInfo | |
parent | 70dace3052984e843202ec98844a2a6636debb89 (diff) |
Reformat and 80-column this. It's not strictly conforming
yet, but it's better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFDebugInfoEntry.cpp | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/lib/DebugInfo/DWARFDebugInfoEntry.cpp index 1bfd126a12..ab67464453 100644 --- a/lib/DebugInfo/DWARFDebugInfoEntry.cpp +++ b/lib/DebugInfo/DWARFDebugInfoEntry.cpp @@ -341,7 +341,7 @@ DWARFDebugInfoEntryMinimal::extract(const DWARFCompileUnit *cu, else debug_info_data.getU64(offset_ptr); break; - + default: *offset_ptr = offset; return false; @@ -411,9 +411,10 @@ DWARFDebugInfoEntryMinimal::getAttributeValue(const DWARFCompileUnit *cu, const char* DWARFDebugInfoEntryMinimal::getAttributeValueAsString( - const DWARFCompileUnit* cu, - const uint16_t attr, - const char* fail_value) const { + const DWARFCompileUnit* cu, + const uint16_t attr, + const char* fail_value) + const { DWARFFormValue form_value; if (getAttributeValue(cu, attr, form_value)) { DataExtractor stringExtractor(cu->getContext().getStringSection(), @@ -425,9 +426,9 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsString( uint64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsigned( - const DWARFCompileUnit* cu, - const uint16_t attr, - uint64_t fail_value) const { + const DWARFCompileUnit* cu, + const uint16_t attr, + uint64_t fail_value) const { DWARFFormValue form_value; if (getAttributeValue(cu, attr, form_value)) return form_value.getUnsigned(); @@ -436,9 +437,9 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsigned( int64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsSigned( - const DWARFCompileUnit* cu, - const uint16_t attr, - int64_t fail_value) const { + const DWARFCompileUnit* cu, + const uint16_t attr, + int64_t fail_value) const { DWARFFormValue form_value; if (getAttributeValue(cu, attr, form_value)) return form_value.getSigned(); @@ -447,9 +448,10 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsSigned( uint64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsReference( - const DWARFCompileUnit* cu, - const uint16_t attr, - uint64_t fail_value) const { + const DWARFCompileUnit* cu, + const uint16_t attr, + uint64_t fail_value) + const { DWARFFormValue form_value; if (getAttributeValue(cu, attr, form_value)) return form_value.getReference(cu); @@ -457,7 +459,8 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsReference( } bool DWARFDebugInfoEntryMinimal::getLowAndHighPC(const DWARFCompileUnit *CU, - uint64_t &LowPC, uint64_t &HighPC) const { + uint64_t &LowPC, + uint64_t &HighPC) const { HighPC = -1ULL; LowPC = getAttributeValueAsUnsigned(CU, DW_AT_low_pc, -1ULL); if (LowPC != -1ULL) @@ -488,7 +491,9 @@ DWARFDebugInfoEntryMinimal::buildAddressRangeTable(const DWARFCompileUnit *CU, bool DWARFDebugInfoEntryMinimal::addressRangeContainsAddress( - const DWARFCompileUnit *CU, const uint64_t Address) const { + const DWARFCompileUnit *CU, + const uint64_t Address) + const { if (isNULL()) return false; uint64_t LowPC, HighPC; @@ -505,8 +510,8 @@ DWARFDebugInfoEntryMinimal::addressRangeContainsAddress( } const char* -DWARFDebugInfoEntryMinimal::getSubroutineName( - const DWARFCompileUnit *CU) const { +DWARFDebugInfoEntryMinimal::getSubroutineName(const DWARFCompileUnit *CU) + const { if (!isSubroutineDIE()) return 0; // Try to get mangled name if possible. @@ -540,9 +545,10 @@ DWARFDebugInfoEntryMinimal::getSubroutineName( return 0; } -void DWARFDebugInfoEntryMinimal::getCallerFrame( - const DWARFCompileUnit *CU, uint32_t &CallFile, uint32_t &CallLine, - uint32_t &CallColumn) const { +void DWARFDebugInfoEntryMinimal::getCallerFrame(const DWARFCompileUnit *CU, + uint32_t &CallFile, + uint32_t &CallLine, + uint32_t &CallColumn) const { CallFile = getAttributeValueAsUnsigned(CU, DW_AT_call_file, 0); CallLine = getAttributeValueAsUnsigned(CU, DW_AT_call_line, 0); CallColumn = getAttributeValueAsUnsigned(CU, DW_AT_call_column, 0); @@ -550,7 +556,9 @@ void DWARFDebugInfoEntryMinimal::getCallerFrame( DWARFDebugInfoEntryMinimal::InlinedChain DWARFDebugInfoEntryMinimal::getInlinedChainForAddress( - const DWARFCompileUnit *CU, const uint64_t Address) const { + const DWARFCompileUnit *CU, + const uint64_t Address) + const { DWARFDebugInfoEntryMinimal::InlinedChain InlinedChain; if (isNULL()) return InlinedChain; |