From 04fca67d6f4b314ba618714698b58dbfba3af005 Mon Sep 17 00:00:00 2001 From: Nick Kledzik Date: Thu, 14 Nov 2013 02:38:07 +0000 Subject: Add dyn_cast<> support to YAML I/O's IO class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194655 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/YAMLTraits.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Support/YAMLTraits.cpp') diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp index 415424e..b32ef40 100644 --- a/lib/Support/YAMLTraits.cpp +++ b/lib/Support/YAMLTraits.cpp @@ -59,7 +59,7 @@ void Input::setDiagHandler(SourceMgr::DiagHandlerTy Handler, void *Ctxt) { SrcMgr.setDiagHandler(Handler, Ctxt); } -bool Input::outputting() { +bool Input::outputting() const { return false; } @@ -382,7 +382,7 @@ Output::Output(raw_ostream &yout, void *context) Output::~Output() { } -bool Output::outputting() { +bool Output::outputting() const { return true; } -- cgit v1.1