[ELF] - Improve call graph pasing error reporting.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 10 Jul 2018 10:28:55 +0000 (10:28 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 10 Jul 2018 10:28:55 +0000 (10:28 +0000)
commitbc6702a42414f03ba2f83d4c1d417ca4d3b3bba7
tree6db12fa3c81625925508df0ff436d4d8f61ae2ce
parent20b92c4d0d5f6371592f613063eca4cd96a8cc29
[ELF] - Improve call graph pasing error reporting.

This adds a file name to the error message,
adds a missing test case and refactors code a bit.

llvm-svn: 336651
lld/ELF/Driver.cpp
lld/test/ELF/cgprofile-err.s [new file with mode: 0644]