ModuleInterface: refactor out a utility to extract compiler flags from a module interface file. NFC

This commit is contained in:
Xi Ge
2021-05-02 22:41:39 -07:00
parent 57a893bdb3
commit 3d6662f382
5 changed files with 18 additions and 12 deletions

View File

@@ -69,11 +69,6 @@ llvm::Regex swift::getSwiftInterfaceFormatVersionRegex() {
": ([0-9\\.]+)$", llvm::Regex::Newline);
}
llvm::Regex swift::getSwiftInterfaceModuleFlagsRegex() {
return llvm::Regex("^// " SWIFT_MODULE_FLAGS_KEY ":(.*)$",
llvm::Regex::Newline);
}
llvm::Regex swift::getSwiftInterfaceCompilerVersionRegex() {
return llvm::Regex("^// " SWIFT_COMPILER_VERSION_KEY
": (.+)$", llvm::Regex::Newline);