aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-22 16:00:58 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-22 16:00:58 +0000
commita6895d8a8f8868abe61201bd7228dce750e67a3b (patch)
tree9bb830136c91ceed832a3e8a566c9767b5f0bf61 /clang/lib/Frontend/CompilerInstance.cpp
parent7f1e2a5c03aa365a0e0fbb74394cab5e462355cb (diff)
downloadllvm-a6895d8a8f8868abe61201bd7228dce750e67a3b.zip
llvm-a6895d8a8f8868abe61201bd7228dce750e67a3b.tar.gz
llvm-a6895d8a8f8868abe61201bd7228dce750e67a3b.tar.bz2
Rename ASTReader::PerFileData to serialization::Module, pulling it out
of ASTReader so it can become its own full-fledged class (eventually). No functionality change. llvm-svn: 135767
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index f427f4ec..5882f73 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -295,8 +295,9 @@ CompilerInstance::createPCHExternalASTSource(llvm::StringRef Path,
Reader->setDeserializationListener(
static_cast<ASTDeserializationListener *>(DeserializationListener));
- switch (Reader->ReadAST(Path,
- Preamble ? ASTReader::Preamble : ASTReader::PCH)) {
+ switch (Reader->ReadAST(Path,
+ Preamble ? serialization::MK_Preamble
+ : serialization::MK_PCH)) {
case ASTReader::Success:
// Set the predefines buffer as suggested by the PCH reader. Typically, the
// predefines buffer will be empty.