HomePhabricator

[ELF] Suggest extern "C" when an undefined reference is mangled while the…

Authored by MaskRay on Tue, Oct 29, 3:28 PM.

Description

[ELF] Suggest extern "C" when an undefined reference is mangled while the definition is not

When missing an extern "C" declaration, an undefined reference may be
mangled while the definition is not. Suggest the missing
extern "C" and the base name.

Reviewed By: ruiu

Differential Revision: https://reviews.llvm.org/D69592