[llvm] Minimal unwinding information (DWARF CFI) checker (PR #145633)

AmirHossein PashaeeHir via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 10:51:58 PDT 2025


================
@@ -24,17 +24,22 @@
 
 namespace llvm {
 
+/// This class is an `MCStreamer` implementation that watches for machine
+/// instructions and CFI directives. It cuts the stream into function frames and
+/// channels them to `CFIFunctionFrameReceiver`. A function frame is the machine
+/// instructions and CFI directives that are between `.cfi_startproc` and
+/// `.cfi_endproc` directives.
 class CFIFunctionFrameStreamer : public MCStreamer {
 private:
   std::pair<unsigned, unsigned> updateDirectivesRange();
-  void updateAnalyzer();
+  void updateReceiver();
 
 public:
   CFIFunctionFrameStreamer(MCContext &Context,
-                           std::unique_ptr<CFIFunctionFrameReceiver> Analyzer)
+                           std::unique_ptr<CFIFunctionFrameReceiver> Receiver)
       : MCStreamer(Context), LastInstruction(std::nullopt),
-        Analyzer(std::move(Analyzer)), LastDirectiveIndex(0) {
-    assert(this->Analyzer && "Analyzer should not be null");
+        Receiver(std::move(Receiver)), LastDirectiveIndex(0) {
+    assert(this->Receiver && "Analyzer should not be null");
----------------
amsen20 wrote:

Fixed.

https://github.com/llvm/llvm-project/pull/145633


More information about the llvm-commits mailing list