SuccessChanges

Summary

  1. [SafeStack] Use proper API to get stack guard (details)
  2. [NFCI] Move DEBUG_TYPE definition below #includes (details)
Commit 056733d0195b28fb1c5a7952b2adc10013edf19c by pzheng
[SafeStack] Use proper API to get stack guard

Using the proper API automatically sets `__stack_chk_guard` to `dso_local` if
`Reloc::Static`. This wasn't strictly necessary until recently when dso_local was
no longer implied by `TargetMachine::shouldAssumeDSOLocal` for
`__stack_chk_guard`. By using the proper API, we can avoid generating unnecessary
GOT relocations.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102646
The file was modifiedllvm/lib/CodeGen/SafeStack.cpp
The file was modifiedllvm/test/Transforms/SafeStack/X86/abi_ssp.ll
The file was modifiedllvm/test/Transforms/SafeStack/X86/ssp.ll
Commit 71acce68daf4987529bf08d81a9c5d396536d7c4 by chenmindong1
[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
The file was modifiedllvm/lib/Target/Hexagon/HexagonBranchRelaxation.cpp
The file was modifiedllvm/utils/TableGen/DFAPacketizerEmitter.cpp
The file was modifiedllvm/lib/Target/ARC/ARCBranchFinalize.cpp
The file was modifiedllvm/lib/Target/M68k/M68kRegisterInfo.cpp
The file was modifiedllvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
The file was modifiedllvm/lib/Analysis/AssumeBundleQueries.cpp
The file was modifiedllvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp
The file was modifiedllvm/utils/TableGen/DFAEmitter.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp
The file was modifiedllvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCShuffler.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LoopDataPrefetch.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
The file was modifiedllvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
The file was modifiedllvm/lib/Target/AVR/MCTargetDesc/AVRMCELFStreamer.cpp
The file was modifiedllvm/lib/Target/Lanai/Disassembler/LanaiDisassembler.h
The file was modifiedllvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonSplitDouble.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonGenMux.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonConstPropagation.cpp
The file was modifiedllvm/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
The file was modifiedllvm/lib/Transforms/Scalar/Float2Int.cpp