[PATCH] D150221: Add option -fkeep-static-variables to emit all static variables
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 31 21:27:39 PDT 2023
hubert.reinterpretcast added inline comments.
================
Comment at: clang/test/CodeGen/keep-static-variables.cpp:1
+// RUN: %clang_cc1 -fkeep-static-variables -emit-llvm %s -o - -triple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefixes=CHECK,CHECK-ELF
+// RUN: %clang_cc1 -fkeep-static-variables -emit-llvm %s -o - -triple=powerpc64-ibm-aix-xcoff | FileCheck %s --check-prefixes=CHECK,CHECK-NON-ELF
----------------
@qianzhen, a driver option was added. IMO, there should be tests (probably in another file) for the driver option too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150221/new/
https://reviews.llvm.org/D150221
More information about the cfe-commits
mailing list