Skip to content

Commit 9f950be

Browse files
committed
Revert "Add headerFileInfor"
This reverts commit dcdc17e840ff29591f2c3ea261d4c6d3abfbd54a.
1 parent 9804e23 commit 9f950be

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

interpreter/cling/lib/Interpreter/IncrementalParser.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,6 @@ namespace cling {
856856
// Add the input to the memory buffer, parse it, and add it to the AST.
857857
IncrementalParser::EParseResult
858858
IncrementalParser::ParseInternal(llvm::StringRef input) {
859-
llvm::errs() << "ParseInternal: " << input << "\n";
860859
if (input.empty()) return IncrementalParser::kSuccess;
861860

862861
Sema& S = getCI()->getSema();
@@ -898,15 +897,9 @@ namespace cling {
898897
FileID FID;
899898
// Create FileEntry and FileID for the current buffer.
900899
// Enabling the completion point only works on FileEntries.
901-
time_t FakeModTime = std::time(nullptr);
902900
FileEntryRef FE =
903901
SM.getFileManager().getVirtualFileRef(source_name.str(), InputSize,
904-
FakeModTime /* mod time*/);
905-
// Force creation of HeaderFileInfo for the virtual file.
906-
// This ensures that when the virtual file is used as the includer,
907-
// Clang will find a valid HeaderFileInfo.
908-
m_CI->getPreprocessor().getHeaderSearchInfo().getFileInfo(FE);
909-
902+
0 /* mod time*/);
910903
SM.overrideFileContents(FE, std::move(MB));
911904
FID = SM.createFileID(FE, NewLoc, SrcMgr::C_User);
912905
if (CO.CodeCompletionOffset != -1) {
@@ -948,7 +941,6 @@ namespace cling {
948941
else if (Diags.getNumWarnings())
949942
return kSuccessWithWarnings;
950943

951-
llvm::errs() << "ParseInternal: done!\n";
952944
return kSuccess;
953945
}
954946

0 commit comments

Comments
 (0)