diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-16 10:48:29 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-16 10:48:29 +0000 |
commit | 04a0426cc283fe6a03f16612e0f172c3c97a1102 (patch) | |
tree | ad3137e505d12f3d62cc9895a0505fafebad649c /include | |
parent | c32a8c9073e5aafe9b4c41dddd416d378216758f (diff) | |
download | external_llvm-04a0426cc283fe6a03f16612e0f172c3c97a1102.zip external_llvm-04a0426cc283fe6a03f16612e0f172c3c97a1102.tar.gz external_llvm-04a0426cc283fe6a03f16612e0f172c3c97a1102.tar.bz2 |
PR11143: Save the old diagnostic handler and call it when munging diagnostics for #line directives.
This reenables proper inline asm diagnostics in clang
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index 4c0d992..58b8fab 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -82,6 +82,9 @@ public: DiagContext = Ctx; } + DiagHandlerTy getDiagHandler() const { return DiagHandler; } + void *getDiagContext() const { return DiagContext; } + const SrcBuffer &getBufferInfo(unsigned i) const { assert(i < Buffers.size() && "Invalid Buffer ID!"); return Buffers[i]; |