Remove unused function IncrementalParser::Parse().

This commit is contained in:
Axel Naumann 2016-07-22 15:55:31 +02:00 committed by sftnight
parent 431e6e6815
commit 762942581e
2 changed files with 0 additions and 20 deletions

View File

@ -662,14 +662,6 @@ namespace cling {
return PRT;
}
IncrementalParser::ParseResultTransaction
IncrementalParser::Parse(llvm::StringRef input,
const CompilationOptions& Opts) {
Transaction* CurT = beginTransaction(Opts);
ParseInternal(input);
return endTransaction(CurT);
}
// Add the input to the memory buffer, parse it, and add it to the AST.
IncrementalParser::EParseResult
IncrementalParser::ParseInternal(llvm::StringRef input) {

View File

@ -192,18 +192,6 @@ namespace cling {
///
ParseResultTransaction Compile(llvm::StringRef input, const CompilationOptions& Opts);
///\brief Parses the given input without calling the custom consumers and
/// code generation.
///
/// I.e changes to the decls in the transaction commiting it will cause
/// different executable code.
///
///\param[in] input - The code to parse.
///\param[in] Opts - The compilation options to use.
///\returns The transaction corresponding to the input.
///
ParseResultTransaction Parse(llvm::StringRef input, const CompilationOptions& Opts);
void printTransactionStructure() const;
///\brief Adds a UsedAttr to all decls in the transaction.