HomePhabricator

[lld] Don't create hints-section if Hint/Name Table is empty

Authored by ruiu on Oct 8 2019, 11:48 PM.

Description

[lld] Don't create hints-section if Hint/Name Table is empty

Fixes assert in addLinkerModuleCoffGroup() when using by-ordinal imports
only.

Patch by Stefan Schmidt.

Differential revision: https://reviews.llvm.org/D68352

llvm-svn: 374140