[cfe-commits] r108377 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Wed Jul 14 16:29:55 PDT 2010
Author: cornedbee
Date: Wed Jul 14 18:29:55 2010
New Revision: 108377
URL: http://llvm.org/viewvc/llvm-project?rev=108377&view=rev
Log:
There is another implementation of PCHReaderListener around. Update it to the new interface.
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=108377&r1=108376&r2=108377&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Wed Jul 14 18:29:55 2010
@@ -74,11 +74,13 @@
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;
}
More information about the cfe-commits
mailing list