summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2011-10-12 21:38:39 +0000
committerKevin Enderby <enderby@apple.com>2011-10-12 21:38:39 +0000
commitacbaecd4c8e4d19207e63624dcd9e01947b51757 (patch)
treee993557087dba178c23b400fcce5dd8128e6d314 /include
parent7007e4c5564f32fe4f06765a9740218039e7b492 (diff)
downloadllvm-acbaecd4c8e4d19207e63624dcd9e01947b51757.tar.gz
llvm-acbaecd4c8e4d19207e63624dcd9e01947b51757.tar.bz2
llvm-acbaecd4c8e4d19207e63624dcd9e01947b51757.tar.xz
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')
-rw-r--r--include/llvm/Support/SourceMgr.h8
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;
};