[PATCH] D57157: [DEBUG_INFO][NVPTX] Generate DW_AT_address_class to get the values in debugger.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 5 11:01:57 PST 2019


aprantl added inline comments.


================
Comment at: include/llvm/IR/DebugInfoMetadata.h:2516
+  /// Space>.
+  static const DIExpression *extractAddressClass(const DIExpression *Expr,
+                                                 unsigned &AddrClass);
----------------
I understand that you copied the interface from the function above, but could you please make it

`Optional<unsigned> getAddressClass() const;`

instead?

We should also change extractIfOffset this way...


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57157





More information about the llvm-commits mailing list