forked from OSchip/llvm-project
Make FileManager::getFileSystemOptions consistent with CompilerInstance::getFileSystemOpts
and CompilerInvocation::getFileSystemOpts by renaming it to getFileSystemOpts, marking the const-returning access method const and adding a non-const version, making the function prototypes identical to CompilerInstance::getFileSystemOpts. llvm-svn: 246026
This commit is contained in:
parent
653592d7ce
commit
8dec46cf5a
|
@ -218,7 +218,8 @@ public:
|
|||
bool CacheFailure = true);
|
||||
|
||||
/// \brief Returns the current file system options
|
||||
const FileSystemOptions &getFileSystemOptions() { return FileSystemOpts; }
|
||||
FileSystemOptions &getFileSystemOpts() { return FileSystemOpts; }
|
||||
const FileSystemOptions &getFileSystemOpts() const { return FileSystemOpts; }
|
||||
|
||||
IntrusiveRefCntPtr<vfs::FileSystem> getVirtualFileSystem() const {
|
||||
return FS;
|
||||
|
|
|
@ -1326,8 +1326,8 @@ void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context,
|
|||
|
||||
// File system options.
|
||||
Record.clear();
|
||||
const FileSystemOptions &FSOpts
|
||||
= Context.getSourceManager().getFileManager().getFileSystemOptions();
|
||||
const FileSystemOptions &FSOpts =
|
||||
Context.getSourceManager().getFileManager().getFileSystemOpts();
|
||||
AddString(FSOpts.WorkingDir, Record);
|
||||
Stream.EmitRecord(FILE_SYSTEM_OPTIONS, Record);
|
||||
|
||||
|
|
Loading…
Reference in New Issue