[all-commits] [llvm/llvm-project] f7479b: [NFC][TableGen] Simplify DirectiveEmitter using ra...

Rahul Joshi via All-commits all-commits at lists.llvm.org
Mon Sep 9 18:24:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7479b5ff43261a20258743da5fa583a0c729564
      https://github.com/llvm/llvm-project/commit/f7479b5ff43261a20258743da5fa583a0c729564
  Author: Rahul Joshi <rjoshi at nvidia.com>
  Date:   2024-09-09 (Mon, 09 Sep 2024)

  Changed paths:
    M llvm/include/llvm/TableGen/DirectiveEmitter.h
    M llvm/utils/TableGen/DirectiveEmitter.cpp

  Log Message:
  -----------
  [NFC][TableGen] Simplify DirectiveEmitter using range for loops (#107909)

Make constructors that take const Record * implicit, allowing us to
simplify some range based loops to use that class instance as the loop
variable.

Change remaining constructor calls to use () instead of {} to construct
objects.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list