TraceInstructionDumper::DumpInstructions was becoming too big, so I'm
refactoring it into smaller functions. I also made some static methods proper
instance methods to simplify calls. Other minor improvements are also done.
Details
Details
- Reviewers
jj10306 - Commits
- rG35e60f5de180: [NFC][trace] simplify the instruction dumper
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
two very minor comments, but looks good - I'm sure you already have, but be sure to run the dumper unittest test to ensure the output didn't change unexpectedly as a result some minor formatting mistake in this diff 🙂
lldb/include/lldb/Target/TraceInstructionDumper.h | ||
---|---|---|
26 | It shouldn't be an issue now because this struct is never stored any where, but in the future we should be aware that if this struct is ever stored "long term" (ie in another class), we should instead use ExececutionContextRef /// exist during a function that requires the objects. ExecutionContext /// objects should NOT be used for long term storage since they will keep /// objects alive with extra shared pointer references to these objects | |
lldb/source/Target/TraceInstructionDumper.cpp | ||
199 | should this be a static function? |
It shouldn't be an issue now because this struct is never stored any where, but in the future we should be aware that if this struct is ever stored "long term" (ie in another class), we should instead use ExececutionContextRef
From the documentation in ExecutionContext.h