[PATCH] D35797: [ELF] - Implement --warn-once.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 07:28:15 PDT 2017


> --- ELF/Symbols.h
> +++ ELF/Symbols.h
> @@ -206,6 +206,9 @@
>    static bool classof(const SymbolBody *S) {
>      return S->kind() == UndefinedKind;
>    }
> +
> +  // Used for error reporting. True if symbol was reported.
> +  unsigned Reported : 1;
>  };

This changes sizeof(Undefined), no? Can that be avoided?

Cheers,
Rafael


More information about the llvm-commits mailing list