diff options
author | Kevin Enderby <enderby@apple.com> | 2011-10-12 21:38:39 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2011-10-12 21:38:39 +0000 |
commit | acbaecd4c8e4d19207e63624dcd9e01947b51757 (patch) | |
tree | e993557087dba178c23b400fcce5dd8128e6d314 /include/llvm/Support/SourceMgr.h | |
parent | 7007e4c5564f32fe4f06765a9740218039e7b492 (diff) |
Finish supporting cpp #file/line comments in assembler for error messages. So
for cpp pre-processed assembly we give correct filename and line numbers when
reporting errors in assembly files when using clang and -integrated-as on .s
files. rdar://8998895
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index 030db8f4e3..92ec891699 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -138,8 +138,12 @@ public: const Twine &Msg, const char *Type, bool ShowLine = true) const; - -private: + /// PrintIncludeStack - Prints the names of included files and the line of the + /// file they were included from. A diagnostic handler can use this before + /// printing its custom formatted message. + /// + /// @param IncludeLoc - The line of the include. + /// @param OS the raw_ostream to print on. void PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const; }; |