Skip to content

registerImplicitTypeID conflicts with dynlib on x86_64-pc-windows-gnullvm #168790

@SchrodingerZhu

Description

@SchrodingerZhu

LLVM_ALWAYS_EXPORT static TypeID registerImplicitTypeID(StringRef name);

Consider libX being a DLL built with MLIR.
Binary A links against both MLIR's libraries and libX.

With x86_64-pc-windows-gnullvm this leads to duplicated symbols even when libX is compiled with visibility hidden as registerImplicitTypeID is forcibly marked as exported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions