There is another implementation of PCHReaderListener around. Update it to the new interface.

llvm-svn: 108377
This commit is contained in:
Sebastian Redl 2010-07-14 23:29:55 +00:00
parent eebe72199e
commit 8b41f30064
1 changed files with 5 additions and 3 deletions

View File

@ -74,11 +74,13 @@ public:
return false;
}
virtual bool ReadPredefinesBuffer(llvm::StringRef PCHPredef,
FileID PCHBufferID,
virtual bool ReadPredefinesBuffer(const PCHPredefinesBlocks &Buffers,
llvm::StringRef OriginalFileName,
std::string &SuggestedPredefines) {
Predefines = PCHPredef;
Predefines = Buffers[0].Data;
for (unsigned I = 1, N = Buffers.size(); I != N; ++I) {
Predefines += Buffers[I].Data;
}
return false;
}