diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-02 23:08:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-02 23:08:13 +0000 |
commit | 0ffa08fce95227126afe577963ddbd3dc15bf727 (patch) | |
tree | a74754636cc687794c2d224169dec37702cc34be /include/llvm/Support/SourceMgr.h | |
parent | 13c6838b015930ab4ff878ea1cf5cb50f597b088 (diff) | |
download | external_llvm-0ffa08fce95227126afe577963ddbd3dc15bf727.zip external_llvm-0ffa08fce95227126afe577963ddbd3dc15bf727.tar.gz external_llvm-0ffa08fce95227126afe577963ddbd3dc15bf727.tar.bz2 |
switch the .ll parser to use SourceMgr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index 0260d2d..7c8a139 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -118,6 +118,16 @@ public: /// prefixed to the message. void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type) const; + + /// GetMessage - Return an SMDiagnostic at the specified location with the + /// specified string. + /// + /// @param Type - If non-null, the kind of message (e.g., "error") which is + /// prefixed to the message. + SMDiagnostic GetMessage(SMLoc Loc, + const std::string &Msg, const char *Type) const; + + private: void PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const; }; |