
Change MemoryBufferCache to InMemoryModuleCache, moving it from Basic to Serialization. Another patch will start using it to manage module build more explicitly, but this is split out because it's mostly mechanical. Because of the move to Serialization we can no longer abuse the Preprocessor to forward it to the ASTReader. Besides the rename and file move, that means Preprocessor::Preprocessor has one fewer parameter and ASTReader::ASTReader has one more. llvm-svn: 355777
16 lines
774 B
Matlab
16 lines
774 B
Matlab
// RUN: rm -rf %t.cache
|
|
// RUN: echo "@import CoreText;" > %t.m
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \
|
|
// RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \
|
|
// RUN: -fsyntax-only
|
|
// RUN: %clang_cc1 -DMISMATCH -Werror -fdisable-module-hash \
|
|
// RUN: -fmodules-cache-path=%t.cache -fmodules -fimplicit-module-maps \
|
|
// RUN: -I%S/Inputs/outofdate-rebuild %t.m -fsyntax-only
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t.cache \
|
|
// RUN: -fmodules -fimplicit-module-maps -I%S/Inputs/outofdate-rebuild %s \
|
|
// RUN: -fsyntax-only
|
|
|
|
// This testcase reproduces a use-after-free in when ModuleManager removes an
|
|
// entry from the ModuleCache without notifying its parent ASTReader.
|
|
@import Cocoa;
|