projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Normalize SourceMgr messages.
[oota-llvm.git]
/
include
/
llvm
/
Support
/
SourceMgr.h
diff --git
a/include/llvm/Support/SourceMgr.h
b/include/llvm/Support/SourceMgr.h
index 4170c8d6dc6495fdceea342055996d602e58f308..23044a8bd032b822c82d99b39954add0f6e6cb42 100644
(file)
--- a/
include/llvm/Support/SourceMgr.h
+++ b/
include/llvm/Support/SourceMgr.h
@@
-111,7
+111,10
@@
public:
/// PrintMessage - Emit a message about the specified location with the
/// specified string.
/// PrintMessage - Emit a message about the specified location with the
/// specified string.
- void PrintMessage(SMLoc Loc, const std::string &Msg) const;
+ ///
+ /// @param Type - If non-null, the kind of message (e.g., "error") which is
+ /// prefixed to the message.
+ void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const;
private:
void PrintIncludeStack(SMLoc IncludeLoc) const;
private:
void PrintIncludeStack(SMLoc IncludeLoc) const;