Remove unnecessary parsing preparation

This commit is contained in:
Philippe Canal 2014-09-11 20:58:07 -05:00 committed by sftnight
parent 8c8e99618f
commit 8592056883

@ -944,8 +944,6 @@ namespace cling {
llvm::SmallVector<Expr*, 4> GivenArgs;
ParserStateRAII ResetParserState(P);
Interpreter::PushTransactionRAII pushedT(Interp);
return findFunction(foundDC, SS,
funcName, GivenArgs, objectIsConst,
@ -1189,9 +1187,6 @@ namespace cling {
}
}
ParserStateRAII ResetParserState(P);
prepareForParsing("", llvm::StringRef("func.prototype.file"), diagOnOff);
Interpreter::PushTransactionRAII pushedT(m_Interpreter);
return findFunction(foundDC, SS,
funcName, GivenArgs, objectIsConst,
@ -1336,9 +1331,6 @@ namespace cling {
}
}
ParserStateRAII ResetParserState(P);
prepareForParsing("", llvm::StringRef("func.prototype.file"), diagOnOff);
Interpreter::PushTransactionRAII pushedT(m_Interpreter);
return findFunction(foundDC, SS,
funcName, GivenArgs, objectIsConst,