[llvm-commits] [PATCH] [DebugInfo] Generate address ranges for compile units even if .debug_aranges is present.

Alexey Samsonov samsonov at google.com
Fri Nov 16 00:39:30 PST 2012


  r168144, thanks!


================
Comment at: lib/DebugInfo/DWARFDebugAranges.cpp:97
@@ +96,3 @@
+        uint32_t CUOffset = cu->getOffset();
+        if (ParsedCUOffsets.count(CUOffset) == 0) {
+          cu->buildAddressRangeTable(this, true);
----------------
Benjamin Kramer wrote:
> Nit: You can avoid looking up the value in the set twice with
> ##if (!ParsedOffsets.insert(CUOffset).second)##
Done.


http://llvm-reviews.chandlerc.com/D116

BRANCH
  svn

ARCANIST PROJECT
  llvm



More information about the llvm-commits mailing list