llvm-project/llvm/test/MC/AsmParser/secure_log_unique.s
Ben Langmuir e1f9983022 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
2022-10-28 16:08:04 -07:00

10 lines
267 B
ArmAsm

// RUN: rm -f %t
// RUN: llvm-mc -as-secure-log-file %t -triple x86_64-apple-darwin %s
// RUN: llvm-mc -as-secure-log-file %t -triple x86_64-apple-darwin %s
// RUN: FileCheck --input-file=%t %s
.secure_log_unique "foobar"
// CHECK: "foobar"
// CHECK-NEXT: "foobar"