diff options
author | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-08-01 09:58:03 +0000 |
---|---|---|
committer | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-08-01 09:58:03 +0000 |
commit | 07ceadda2524582147ebac69d2dd22c876df4693 (patch) | |
tree | 792c2b51744aacad0672119a5db2ae991b626b4c /lld/include | |
parent | 8a40cedfe695869408412c018799d08a6ffc006c (diff) | |
download | bcm5719-llvm-07ceadda2524582147ebac69d2dd22c876df4693.tar.gz bcm5719-llvm-07ceadda2524582147ebac69d2dd22c876df4693.zip |
[ELF] With --vs-diagnostics, print a separate message for each location of a duplicate symbol.
We extract and print the source location in the message header so that
Visual Studio is able to parse it and jump there. As duplicate symbols
are defined in several locations, it is more convenient to have separate
error messages, which allows a user to easily access all the locations.
Differential Revision: https://reviews.llvm.org/D65213
llvm-svn: 367536
Diffstat (limited to 'lld/include')
-rw-r--r-- | lld/include/lld/Common/ErrorHandler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/include/lld/Common/ErrorHandler.h b/lld/include/lld/Common/ErrorHandler.h index 7126a7bf410..52e22001f05 100644 --- a/lld/include/lld/Common/ErrorHandler.h +++ b/lld/include/lld/Common/ErrorHandler.h @@ -103,6 +103,8 @@ public: private: void printHeader(StringRef s, raw_ostream::Colors c, const Twine &msg); + void printErrorMsg(const Twine &msg); + void printError(const Twine &msg); }; /// Returns the default error handler. |