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
This commit is contained in:
Eric Christopher
2012-10-30 21:36:43 +00:00
parent 70dace3052
commit 203e6f60a8

View File

@@ -341,7 +341,7 @@ DWARFDebugInfoEntryMinimal::extract(const DWARFCompileUnit *cu,
else else
debug_info_data.getU64(offset_ptr); debug_info_data.getU64(offset_ptr);
break; break;
default: default:
*offset_ptr = offset; *offset_ptr = offset;
return false; return false;
@@ -411,9 +411,10 @@ DWARFDebugInfoEntryMinimal::getAttributeValue(const DWARFCompileUnit *cu,
const char* const char*
DWARFDebugInfoEntryMinimal::getAttributeValueAsString( DWARFDebugInfoEntryMinimal::getAttributeValueAsString(
const DWARFCompileUnit* cu, const DWARFCompileUnit* cu,
const uint16_t attr, const uint16_t attr,
const char* fail_value) const { const char* fail_value)
const {
DWARFFormValue form_value; DWARFFormValue form_value;
if (getAttributeValue(cu, attr, form_value)) { if (getAttributeValue(cu, attr, form_value)) {
DataExtractor stringExtractor(cu->getContext().getStringSection(), DataExtractor stringExtractor(cu->getContext().getStringSection(),
@@ -425,9 +426,9 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsString(
uint64_t uint64_t
DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsigned( DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsigned(
const DWARFCompileUnit* cu, const DWARFCompileUnit* cu,
const uint16_t attr, const uint16_t attr,
uint64_t fail_value) const { uint64_t fail_value) const {
DWARFFormValue form_value; DWARFFormValue form_value;
if (getAttributeValue(cu, attr, form_value)) if (getAttributeValue(cu, attr, form_value))
return form_value.getUnsigned(); return form_value.getUnsigned();
@@ -436,9 +437,9 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsigned(
int64_t int64_t
DWARFDebugInfoEntryMinimal::getAttributeValueAsSigned( DWARFDebugInfoEntryMinimal::getAttributeValueAsSigned(
const DWARFCompileUnit* cu, const DWARFCompileUnit* cu,
const uint16_t attr, const uint16_t attr,
int64_t fail_value) const { int64_t fail_value) const {
DWARFFormValue form_value; DWARFFormValue form_value;
if (getAttributeValue(cu, attr, form_value)) if (getAttributeValue(cu, attr, form_value))
return form_value.getSigned(); return form_value.getSigned();
@@ -447,9 +448,10 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsSigned(
uint64_t uint64_t
DWARFDebugInfoEntryMinimal::getAttributeValueAsReference( DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(
const DWARFCompileUnit* cu, const DWARFCompileUnit* cu,
const uint16_t attr, const uint16_t attr,
uint64_t fail_value) const { uint64_t fail_value)
const {
DWARFFormValue form_value; DWARFFormValue form_value;
if (getAttributeValue(cu, attr, form_value)) if (getAttributeValue(cu, attr, form_value))
return form_value.getReference(cu); return form_value.getReference(cu);
@@ -457,7 +459,8 @@ DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(
} }
bool DWARFDebugInfoEntryMinimal::getLowAndHighPC(const DWARFCompileUnit *CU, bool DWARFDebugInfoEntryMinimal::getLowAndHighPC(const DWARFCompileUnit *CU,
uint64_t &LowPC, uint64_t &HighPC) const { uint64_t &LowPC,
uint64_t &HighPC) const {
HighPC = -1ULL; HighPC = -1ULL;
LowPC = getAttributeValueAsUnsigned(CU, DW_AT_low_pc, -1ULL); LowPC = getAttributeValueAsUnsigned(CU, DW_AT_low_pc, -1ULL);
if (LowPC != -1ULL) if (LowPC != -1ULL)
@@ -488,7 +491,9 @@ DWARFDebugInfoEntryMinimal::buildAddressRangeTable(const DWARFCompileUnit *CU,
bool bool
DWARFDebugInfoEntryMinimal::addressRangeContainsAddress( DWARFDebugInfoEntryMinimal::addressRangeContainsAddress(
const DWARFCompileUnit *CU, const uint64_t Address) const { const DWARFCompileUnit *CU,
const uint64_t Address)
const {
if (isNULL()) if (isNULL())
return false; return false;
uint64_t LowPC, HighPC; uint64_t LowPC, HighPC;
@@ -505,8 +510,8 @@ DWARFDebugInfoEntryMinimal::addressRangeContainsAddress(
} }
const char* const char*
DWARFDebugInfoEntryMinimal::getSubroutineName( DWARFDebugInfoEntryMinimal::getSubroutineName(const DWARFCompileUnit *CU)
const DWARFCompileUnit *CU) const { const {
if (!isSubroutineDIE()) if (!isSubroutineDIE())
return 0; return 0;
// Try to get mangled name if possible. // Try to get mangled name if possible.
@@ -540,9 +545,10 @@ DWARFDebugInfoEntryMinimal::getSubroutineName(
return 0; return 0;
} }
void DWARFDebugInfoEntryMinimal::getCallerFrame( void DWARFDebugInfoEntryMinimal::getCallerFrame(const DWARFCompileUnit *CU,
const DWARFCompileUnit *CU, uint32_t &CallFile, uint32_t &CallLine, uint32_t &CallFile,
uint32_t &CallColumn) const { uint32_t &CallLine,
uint32_t &CallColumn) const {
CallFile = getAttributeValueAsUnsigned(CU, DW_AT_call_file, 0); CallFile = getAttributeValueAsUnsigned(CU, DW_AT_call_file, 0);
CallLine = getAttributeValueAsUnsigned(CU, DW_AT_call_line, 0); CallLine = getAttributeValueAsUnsigned(CU, DW_AT_call_line, 0);
CallColumn = getAttributeValueAsUnsigned(CU, DW_AT_call_column, 0); CallColumn = getAttributeValueAsUnsigned(CU, DW_AT_call_column, 0);
@@ -550,7 +556,9 @@ void DWARFDebugInfoEntryMinimal::getCallerFrame(
DWARFDebugInfoEntryMinimal::InlinedChain DWARFDebugInfoEntryMinimal::InlinedChain
DWARFDebugInfoEntryMinimal::getInlinedChainForAddress( DWARFDebugInfoEntryMinimal::getInlinedChainForAddress(
const DWARFCompileUnit *CU, const uint64_t Address) const { const DWARFCompileUnit *CU,
const uint64_t Address)
const {
DWARFDebugInfoEntryMinimal::InlinedChain InlinedChain; DWARFDebugInfoEntryMinimal::InlinedChain InlinedChain;
if (isNULL()) if (isNULL())
return InlinedChain; return InlinedChain;