From adbbd0cd58791190c344f933498bcf4f6e55150a Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Fri, 12 Sep 2014 14:10:13 +0200 Subject: [PATCH] No need to be more const correct than getCI()->getSema()! --- interpreter/cling/include/cling/Interpreter/Interpreter.h | 3 +-- interpreter/cling/lib/Interpreter/Interpreter.cpp | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/interpreter/cling/include/cling/Interpreter/Interpreter.h b/interpreter/cling/include/cling/Interpreter/Interpreter.h index 6a0084b..710a655 100644 --- a/interpreter/cling/include/cling/Interpreter/Interpreter.h +++ b/interpreter/cling/include/cling/Interpreter/Interpreter.h @@ -546,8 +546,7 @@ namespace cling { void enableRawInput(bool raw = true) { m_RawInputEnabled = raw; } clang::CompilerInstance* getCI() const; - const clang::Sema& getSema() const; - clang::Sema& getSema(); + clang::Sema& getSema() const; llvm::ExecutionEngine* getExecutionEngine() const; //FIXME: This must be in InterpreterCallbacks. diff --git a/interpreter/cling/lib/Interpreter/Interpreter.cpp b/interpreter/cling/lib/Interpreter/Interpreter.cpp index 475682e..6612a9a 100644 --- a/interpreter/cling/lib/Interpreter/Interpreter.cpp +++ b/interpreter/cling/lib/Interpreter/Interpreter.cpp @@ -471,11 +471,7 @@ namespace cling { return m_IncrParser->getCI(); } - const Sema& Interpreter::getSema() const { - return getCI()->getSema(); - } - - Sema& Interpreter::getSema() { + Sema& Interpreter::getSema() const { return getCI()->getSema(); } -- 1.8.2