aboutsummaryrefslogtreecommitdiff
path: root/include/lld/Common
diff options
context:
space:
mode:
authorChris Jackson <snortotter@gmail.com>2019-07-17 14:54:02 +0000
committerChris Jackson <snortotter@gmail.com>2019-07-17 14:54:02 +0000
commit000acdecae21147e667841e29d348ac4c57cf811 (patch)
treead29f411d655960f9a0ad89502a17399372e98fc /include/lld/Common
parent3c312d33d3c589c75dd3e18a28b99a23f789b799 (diff)
[lld] Add Visual Studio compatible diagnostics
Summary: Add a --vs-diagnostics flag that alters the format of diagnostic output to enable source hyperlinks in Visual Studio. Differential Revision: https://reviews.llvm.org/D58484 Reviewed by: ruiu git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@366333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/lld/Common')
-rw-r--r--include/lld/Common/ErrorHandler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lld/Common/ErrorHandler.h b/include/lld/Common/ErrorHandler.h
index 3467fdc74..7126a7bf4 100644
--- a/include/lld/Common/ErrorHandler.h
+++ b/include/lld/Common/ErrorHandler.h
@@ -91,6 +91,7 @@ public:
bool exitEarly = true;
bool fatalWarnings = false;
bool verbose = false;
+ bool vsDiagnostics = false;
void error(const Twine &msg);
LLVM_ATTRIBUTE_NORETURN void fatal(const Twine &msg);
@@ -101,7 +102,7 @@ public:
std::unique_ptr<llvm::FileOutputBuffer> outputBuffer;
private:
- void print(StringRef s, raw_ostream::Colors c);
+ void printHeader(StringRef s, raw_ostream::Colors c, const Twine &msg);
};
/// Returns the default error handler.