[all-commits] [llvm/llvm-project] 8039d2: [NFC] Derive from PassInfoMixin for no-op/printing...

aeubanks via All-commits all-commits at lists.llvm.org
Thu Jul 9 16:58:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8039d2c3bf14585ef37dc9343bf393ecad9aead9
      https://github.com/llvm/llvm-project/commit/8039d2c3bf14585ef37dc9343bf393ecad9aead9
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M llvm/include/llvm/IR/IRPrintingPasses.h
    M llvm/lib/IR/LegacyPassManager.cpp
    M llvm/lib/Passes/PassBuilder.cpp

  Log Message:
  -----------
  [NFC] Derive from PassInfoMixin for no-op/printing passes

PassInfoMixin should be used for all NPM passes, rater than a custom
`name()`.

This caused ambiguous references in LegacyPassManager.cpp, so had to
remove "using namespace llvm::legacy" and move some things around.

The passes had to be moved to the llvm namespace, or else they would get
printed as "(anonymous namespace)::FooPass".

Reviewed By: ychen, asbirlea

Differential Revision: https://reviews.llvm.org/D83498




More information about the All-commits mailing list