[all-commits] [llvm/llvm-project] 71acce: [NFCI] Move DEBUG_TYPE definition below #includes

ChenMd via All-commits all-commits at lists.llvm.org
Sun May 30 02:32:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71acce68daf4987529bf08d81a9c5d396536d7c4
      https://github.com/llvm/llvm-project/commit/71acce68daf4987529bf08d81a9c5d396536d7c4
  Author: Mindong Chen <chenmindong1 at huawei.com>
  Date:   2021-05-30 (Sun, 30 May 2021)

  Changed paths:
    M llvm/lib/Analysis/AssumeBundleQueries.cpp
    M llvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
    M llvm/lib/Target/ARC/ARCBranchFinalize.cpp
    M llvm/lib/Target/AVR/MCTargetDesc/AVRMCELFStreamer.cpp
    M llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
    M llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
    M llvm/lib/Target/Hexagon/HexagonBranchRelaxation.cpp
    M llvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
    M llvm/lib/Target/Hexagon/HexagonGenMux.cpp
    M llvm/lib/Target/Hexagon/HexagonSplitDouble.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCShuffler.cpp
    M llvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
    M llvm/lib/Target/Lanai/Disassembler/LanaiDisassembler.h
    M llvm/lib/Target/M68k/M68kRegisterInfo.cpp
    M llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
    M llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
    M llvm/lib/Transforms/Scalar/Float2Int.cpp
    M llvm/lib/Transforms/Scalar/LoopDataPrefetch.cpp
    M llvm/utils/TableGen/DFAEmitter.cpp
    M llvm/utils/TableGen/DFAPacketizerEmitter.cpp

  Log Message:
  -----------
  [NFCI] Move DEBUG_TYPE definition below #includes

When you try to define a new DEBUG_TYPE in a header file, DEBUG_TYPE
definition defined around the #includes in files include it could
result in redefinition warnings even compile errors.

Reviewed By: tejohnson

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




More information about the All-commits mailing list