[llvm] [NFC]Use one-bit for bool in GlobalResolution struct (PR #106183)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 22:15:40 PDT 2024
https://github.com/minglotus-6 created https://github.com/llvm/llvm-project/pull/106183
None
>From 75feead8d2e165044518b6022553c27215f5b437 Mon Sep 17 00:00:00 2001
From: mingmingl <mingmingl at google.com>
Date: Mon, 26 Aug 2024 22:12:10 -0700
Subject: [PATCH] [NFC]Use one-bit for bool in GlobalResolution struct
---
llvm/include/llvm/LTO/LTO.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h
index 30eda34cd7ba54..ca98d9b8c95dc3 100644
--- a/llvm/include/llvm/LTO/LTO.h
+++ b/llvm/include/llvm/LTO/LTO.h
@@ -362,16 +362,16 @@ class LTO {
/// Keep track if the symbol is visible outside of a module with a summary
/// (i.e. in either a regular object or a regular LTO module without a
/// summary).
- bool VisibleOutsideSummary = false;
+ unsigned VisibleOutsideSummary : 1 {false};
/// The symbol was exported dynamically, and therefore could be referenced
/// by a shared library not visible to the linker.
- bool ExportDynamic = false;
+ unsigned ExportDynamic : 1 {false};
- bool UnnamedAddr = true;
+ unsigned UnnamedAddr : 1 {true};
/// True if module contains the prevailing definition.
- bool Prevailing = false;
+ unsigned Prevailing : 1 {false};
/// Returns true if module contains the prevailing definition and symbol is
/// an IR symbol. For example when module-level inline asm block is used,
More information about the llvm-commits
mailing list