mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ModuleInterface: refactor out a utility to extract compiler flags from a module interface file. NFC
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user