diff options
author | Jordan Rose <jordan_rose@apple.com> | 2014-06-17 02:15:40 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2014-06-17 02:15:40 +0000 |
commit | 4e23baa9454b3826b2dc291fb4ac683bf32a19de (patch) | |
tree | a562329cb008d8d0b9c067baba52de060cb84d07 /include/llvm/Support | |
parent | ecb1c3aa8c574243f461a62b9e5976f1961cd476 (diff) | |
download | llvm-4e23baa9454b3826b2dc291fb4ac683bf32a19de.tar.gz llvm-4e23baa9454b3826b2dc291fb4ac683bf32a19de.tar.bz2 llvm-4e23baa9454b3826b2dc291fb4ac683bf32a19de.tar.xz |
Add an overload for SourceMgr::PrintMessage that takes an existing diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index aee4744a59..30eccd99ac 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -157,6 +157,13 @@ public: ArrayRef<SMFixIt> FixIts = None, bool ShowColors = true) const; + /// Emits a manually-constructed diagnostic to the given output stream. + /// + /// \param ShowColors Display colored messages if output is a terminal and + /// the default error handler is used. + void PrintMessage(raw_ostream &OS, const SMDiagnostic &Diagnostic, + bool ShowColors = true) const; + /// Return an SMDiagnostic at the specified location with the specified /// string. /// |