Front-end option `-print-stats` can be used to print statistics around the compilation process. But clang with this options will crash when input is IR file. This patch fixes the crash by checking preprocessor presence before invoking it.
HeaderSearch
HeaderSearchOptions
SourceManager::getFileEntryRefForID()
ModuleCache
FileEntryRef
FileManager::getCanonicalName()