[llvm-commits] [llvm] r167053 - /llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp
Eric Christopher
echristo at gmail.com
Tue Oct 30 14:36:43 PDT 2012
Author: echristo
Date: Tue Oct 30 16:36:43 2012
New Revision: 167053
URL: http://llvm.org/viewvc/llvm-project?rev=167053&view=rev
Log:
Reformat and 80-column this. It's not strictly conforming
yet, but it's better.
Modified:
llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp?rev=167053&r1=167052&r2=167053&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp Tue Oct 30 16:36:43 2012
@@ -341,7 +341,7 @@
else
debug_info_data.getU64(offset_ptr);
break;
-
+
default:
*offset_ptr = offset;
return false;
@@ -411,9 +411,10 @@
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 @@
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 @@
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 @@
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 @@
}
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 @@
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 @@
}
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 @@
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 @@
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;
More information about the llvm-commits
mailing list