No need to be more const correct than getCI()->getSema()!

This commit is contained in:
Axel Naumann 2014-09-12 14:10:13 +02:00 committed by sftnight
parent 52bbebb238
commit 3b078ed887
2 changed files with 2 additions and 7 deletions

View File

@ -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.

View File

@ -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();
}