[all-commits] [llvm/llvm-project] e1f998: Move getenv for AS_SECURE_LOG_FILE to clang

Ben Langmuir via All-commits all-commits at lists.llvm.org
Fri Oct 28 16:08:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e1f998302276cf227de6c6029ea25b2dbb84f3d8
      https://github.com/llvm/llvm-project/commit/e1f998302276cf227de6c6029ea25b2dbb84f3d8
  Author: Ben Langmuir <blangmuir at apple.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/CodeGen/as-secure-log-file.c
    A clang/test/Driver/AS_SECURE_LOG_FILE.s
    A clang/test/Misc/cc1as-as-secure-log-file.s
    M clang/tools/driver/cc1as_main.cpp
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCTargetOptions.h
    M llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCParser/DarwinAsmParser.cpp
    M llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
    M llvm/test/MC/AsmParser/secure_log_unique.s

  Log Message:
  -----------
  Move getenv for AS_SECURE_LOG_FILE to clang

Avoid calling getenv in the MC layer and let the clang driver do it so
that it is reflected in the command-line as an -mllvm option.

rdar://101558354

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




More information about the All-commits mailing list