[Lldb-commits] [PATCH] D109249: [lldb] Add Getdescription function for SBInstruction.

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 3 12:27:01 PDT 2021


JDevlieghere added inline comments.


================
Comment at: lldb/source/API/SBInstruction.cpp:260
+bool SBInstruction::GetDescription(lldb::SBStream &s, SBTarget target) {
+  LLDB_RECORD_METHOD(bool, SBInstruction, GetDescription,
+                     (lldb::SBStream &, lldb::SBTarget), s, target);
----------------
In addition to the `LLDB_RECORD_METHOD`, you also need the corresponding `LLDB_REGISTER_METHOD` macro. If you remove the macro, `lldb-instr` can generate both for you if you pass it the cpp file. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109249



More information about the lldb-commits mailing list