Remove some dead code.

llvm-svn: 244530
This commit is contained in:
Richard Smith 2015-08-10 23:26:54 +00:00
parent b97c9ef4d0
commit 6d47d16ed6
2 changed files with 1 additions and 19 deletions

View File

@ -1056,8 +1056,6 @@ private:
/// \brief Reads the stored information about an input file.
InputFileInfo readInputFileInfo(ModuleFile &F, unsigned ID);
/// \brief A convenience method to read the filename from an input file.
std::string getInputFileName(ModuleFile &F, unsigned ID);
/// \brief Retrieve the file entry and 'overridden' bit for an input
/// file in the given module file.
@ -2088,12 +2086,8 @@ public:
SmallVector<std::pair<llvm::BitstreamCursor,
serialization::ModuleFile *>, 8> CommentsCursors;
//RIDErief Loads comments ranges.
/// \brief Loads comments ranges.
void ReadComments() override;
/// Return all input files for the given module file.
void getInputFiles(ModuleFile &F,
SmallVectorImpl<serialization::InputFile> &Files);
};
/// \brief Helper class that saves the current stream position and

View File

@ -1878,10 +1878,6 @@ ASTReader::readInputFileInfo(ModuleFile &F, unsigned ID) {
return R;
}
std::string ASTReader::getInputFileName(ModuleFile &F, unsigned int ID) {
return readInputFileInfo(F, ID).Filename;
}
InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
// If this ID is bogus, just return an empty input file.
if (ID == 0 || ID > F.InputFilesLoaded.size())
@ -8069,14 +8065,6 @@ void ASTReader::ReadComments() {
}
}
void ASTReader::getInputFiles(ModuleFile &F,
SmallVectorImpl<serialization::InputFile> &Files) {
for (unsigned I = 0, E = F.InputFilesLoaded.size(); I != E; ++I) {
unsigned ID = I+1;
Files.push_back(getInputFile(F, ID));
}
}
std::string ASTReader::getOwningModuleNameForDiagnostic(const Decl *D) {
// If we know the owning module, use it.
if (Module *M = D->getImportedOwningModule())