[lld] 37f96cb - Revert "[lld-macho] Change bitfield types to be identical."

Vy Nguyen via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 2 13:58:45 PDT 2021


Author: Vy Nguyen
Date: 2021-11-02T16:57:51-04:00
New Revision: 37f96cb4789d21cda66dd2b4f31de0a8ccfcfc38

URL: https://github.com/llvm/llvm-project/commit/37f96cb4789d21cda66dd2b4f31de0a8ccfcfc38
DIFF: https://github.com/llvm/llvm-project/commit/37f96cb4789d21cda66dd2b4f31de0a8ccfcfc38.diff

LOG: Revert "[lld-macho] Change bitfield types to be identical."

This reverts commit ae31f9fbaddd57a3c1c63bfd7baf1511122a49f7.

Reason: bitfields can't be merged across parent/child classes anyway. So this change doesn't help.

Added: 
    

Modified: 
    lld/MachO/Symbols.h

Removed: 
    


################################################################################
diff  --git a/lld/MachO/Symbols.h b/lld/MachO/Symbols.h
index 62c595ec4184..54f1a3512728 100644
--- a/lld/MachO/Symbols.h
+++ b/lld/MachO/Symbols.h
@@ -103,10 +103,10 @@ class Symbol {
 
 public:
   // True if this symbol was referenced by a regular (non-bitcode) object.
-  uint8_t isUsedInRegularObj : 1;
+  bool isUsedInRegularObj : 1;
 
   // True if an undefined or dylib symbol is used from a live section.
-  uint8_t used : 1;
+  bool used : 1;
 };
 
 class Defined : public Symbol {


        


More information about the llvm-commits mailing list