[PATCH] D70444: dwarfdump --statistics: Use new location list api

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 10:06:40 PST 2019


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

Thanks!



================
Comment at: llvm/tools/llvm-dwarfdump/Statistics.cpp:247
+    if (Expected<std::vector<DWARFLocationExpression>> Loc =
+            Die.getLocations(dwarf::DW_AT_location)) {
+      HasLoc = true;
----------------
```
if (!Loc) {
  consumeError()
  return;
}

```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70444/new/

https://reviews.llvm.org/D70444





More information about the llvm-commits mailing list