[PATCH] D136888: Move getenv for AS_SECURE_LOG_FILE to clang

Ben Langmuir via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 27 14:40:14 PDT 2022


benlangmuir created this revision.
benlangmuir added a reviewer: steven_wu.
Herald added a subscriber: hiraditya.
Herald added a project: All.
benlangmuir requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, MaskRay.
Herald added projects: clang, LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136888

Files:
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/test/Driver/AS_SECURE_LOG_FILE.s
  llvm/include/llvm/MC/MCContext.h
  llvm/lib/MC/MCContext.cpp
  llvm/lib/MC/MCParser/DarwinAsmParser.cpp
  llvm/test/MC/AsmParser/secure_log_unique.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136888.471297.patch
Type: text/x-patch
Size: 4408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221027/6d42ef86/attachment.bin>


More information about the cfe-commits mailing list