summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-04-08 14:37:16 +0000
committerAlexey Samsonov <samsonov@google.com>2013-04-08 14:37:16 +0000
commitc03f2ee0ae5efa1a6aa4ac06cc4575a8fd0bd356 (patch)
tree317dca41b75244c805c57bc13230b9c30f1564cb /llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
parentb4eac2f81046feb6bf5b4ba6819f31f8f6424784 (diff)
downloadbcm5719-llvm-c03f2ee0ae5efa1a6aa4ac06cc4575a8fd0bd356.tar.gz
bcm5719-llvm-c03f2ee0ae5efa1a6aa4ac06cc4575a8fd0bd356.zip
DWARF parser: remove duplicated code and fix code style in DIE extractors.
llvm-svn: 179023
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.h')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugInfoEntry.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
index 9c1b2be0a71..9003591cbe1 100644
--- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
+++ b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.h
@@ -45,12 +45,17 @@ public:
uint32_t *offset_ptr, uint16_t attr, uint16_t form,
unsigned indent = 0) const;
- bool extractFast(const DWARFCompileUnit *cu, const uint8_t *fixed_form_sizes,
- uint32_t *offset_ptr);
+ /// Extracts a debug info entry, which is a child of a given compile unit,
+ /// starting at a given offset. If DIE can't be extracted, returns false and
+ /// doesn't change OffsetPtr.
+ bool extractFast(const DWARFCompileUnit *CU, const uint8_t *FixedFormSizes,
+ uint32_t *OffsetPtr);
/// Extract a debug info entry for a given compile unit from the
/// .debug_info and .debug_abbrev data starting at the given offset.
- bool extract(const DWARFCompileUnit *cu, uint32_t *offset_ptr);
+ /// If compile unit can't be parsed, returns false and doesn't change
+ /// OffsetPtr.
+ bool extract(const DWARFCompileUnit *CU, uint32_t *OffsetPtr);
uint32_t getTag() const { return AbbrevDecl ? AbbrevDecl->getTag() : 0; }
bool isNULL() const { return AbbrevDecl == 0; }
OpenPOWER on IntegriCloud