Do not expose ICF class from the file.
authorRui Ueyama <ruiu@google.com>
Sun, 20 Nov 2016 02:39:59 +0000 (02:39 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 20 Nov 2016 02:39:59 +0000 (02:39 +0000)
commitbd1f0630a8f6d0ac7df9da1a08d7c247ceb9674a
treeaeea046b3d844fcad53a66a6cb3c1efed88e4a6c
parentb14fc390dc2fbaf2da2b4869fd4f5c97fa93e528
Do not expose ICF class from the file.

Also this patch uses file-scope functions instead of class member function.

Now that ICF class is not visible from outside, InputSection class
can no longer be "friend" of it. So I removed the friend relation
and just make it expose the features to public.

llvm-svn: 287480
lld/ELF/ICF.cpp
lld/ELF/InputSection.h