Skip to content

[lld-macho] Fix Defined size increase with -mms-bitfields #107545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lld/MachO/Symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "Target.h"

#include "llvm/Object/Archive.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/MathExtras.h"

namespace lld {
Expand Down Expand Up @@ -152,7 +153,8 @@ class Defined : public Symbol {
// Whether this symbol should appear in the output symbol table.
bool includeInSymtab : 1;
// The ICF folding kind of this symbol: None / Body / Thunk.
ICFFoldKind identicalCodeFoldingKind : 2;
LLVM_PREFERRED_TYPE(ICFFoldKind)
uint8_t identicalCodeFoldingKind : 2;
// Symbols marked referencedDynamically won't be removed from the output's
// symbol table by tools like strip. In theory, this could be set on arbitrary
// symbols in input object files. In practice, it's used solely for the
Expand Down
Loading