This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe1f998302276: Move getenv for AS_SECURE_LOG_FILE to clang
(authored by benlangmuir).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTIO
MaskRay accepted this revision.
MaskRay added inline comments.
Herald added a subscriber: StephenFan.
Comment at: llvm/lib/MC/MCContext.cpp:77
AutoReset(DoAutoReset), TargetOptions(TargetOpts) {
- SecureLogFile = AsSecureLogFileName;
+ SecureLogFile = TargetOptions ? Tar
benlangmuir added inline comments.
Comment at: llvm/lib/MC/MCContext.cpp:77
AutoReset(DoAutoReset), TargetOptions(TargetOpts) {
- SecureLogFile = AsSecureLogFileName;
+ SecureLogFile = TargetOptions ? TargetOptions->AsSecureLogFile : "";
benlangmuir wr
benlangmuir added inline comments.
Comment at: llvm/lib/MC/MCContext.cpp:77
AutoReset(DoAutoReset), TargetOptions(TargetOpts) {
- SecureLogFile = AsSecureLogFileName;
+ SecureLogFile = TargetOptions ? TargetOptions->AsSecureLogFile : "";
MaskRay wrote:
benlangmuir updated this revision to Diff 471592.
benlangmuir added a comment.
- --target=, remove -o per review
- Use "log_file" as path to try to avoid Windows path issue in driver test
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136888/new/
https://reviews.llvm.org/D136888
Files:
steven_wu accepted this revision.
steven_wu added a comment.
This revision is now accepted and ready to land.
LGTM except the comments from @MaskRay
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136888/new/
https://reviews.llvm.org/D136888
__
MaskRay added inline comments.
Comment at: clang/test/Driver/AS_SECURE_LOG_FILE.s:1
+// RUN: env AS_SECURE_LOG_FILE=%t %clang -target x86_64-apple-darwin -c %s -o
%t.o -### 2>&1 | FileCheck %s -DLOG_FILE=%t
+// CHECK: "-cc1as"
`--target=` for new tests
remove u
benlangmuir updated this revision to Diff 471351.
benlangmuir added a comment.
Herald added a subscriber: ormris.
- Updated to use cc1 option in clang
- Moved the llvm-mc option to a central location so it can be used when
initialized MCTargetOptions
- Added tests to cover cc1 and cc1as since eac
benlangmuir added inline comments.
Comment at: llvm/lib/MC/MCContext.cpp:62
-static cl::opt
+static cl::opt
AsSecureLogFileName("as-secure-log-file-name",
steven_wu wrote:
> benlangmuir wrote:
> > Interestingly, `opt` doesn't have a parser; this code only work
steven_wu added a comment.
If we have to fix it, I slightly prefer just give it a proper option in
CodeGenOption and a `cc1` and `cc1as` flag.
Comment at: llvm/lib/MC/MCContext.cpp:62
-static cl::opt
+static cl::opt
AsSecureLogFileName("as-secure-log-file-name",
---
benlangmuir added inline comments.
Comment at: llvm/lib/MC/MCContext.cpp:62
-static cl::opt
+static cl::opt
AsSecureLogFileName("as-secure-log-file-name",
Interestingly, `opt` doesn't have a parser; this code only worked with
the default value before.
Repos
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 call
12 matches
Mail list logo