[all-commits] [llvm/llvm-project] 988b2a: [llvm] Don't include Optional.h (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Wed Dec 7 20:49:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 988b2a51a39ecdb649114b19047616ff631506ec
      https://github.com/llvm/llvm-project/commit/988b2a51a39ecdb649114b19047616ff631506ec
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h
    M llvm/include/llvm/Analysis/ObjCARCAnalysisUtils.h
    M llvm/include/llvm/Analysis/TargetLibraryInfo.h
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCDisassembler/MCDisassembler.h
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/include/llvm/MC/TargetRegistry.h
    M llvm/include/llvm/ObjectYAML/COFFYAML.h
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/include/llvm/Remarks/Remark.h
    M llvm/include/llvm/Support/InstructionCost.h
    M llvm/include/llvm/Target/CodeGenCWrappers.h
    M llvm/lib/CodeGen/BasicBlockSections.cpp
    M llvm/tools/dsymutil/DebugMap.cpp

  Log Message:
  -----------
  [llvm] Don't include Optional.h (NFC)

These source files no longer use Optional<T>.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716




More information about the All-commits mailing list