summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-10-16 10:48:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-10-16 10:48:29 +0000
commit04a0426cc283fe6a03f16612e0f172c3c97a1102 (patch)
treead3137e505d12f3d62cc9895a0505fafebad649c /include
parentc32a8c9073e5aafe9b4c41dddd416d378216758f (diff)
downloadllvm-04a0426cc283fe6a03f16612e0f172c3c97a1102.tar.gz
llvm-04a0426cc283fe6a03f16612e0f172c3c97a1102.tar.bz2
llvm-04a0426cc283fe6a03f16612e0f172c3c97a1102.tar.xz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h
index 4c0d9927fa..58b8fab524 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];