Update comments.
llvm-svn: 280548
diff --git a/lld/ELF/Strings.cpp b/lld/ELF/Strings.cpp
index 6fecc75..e14bcf8 100644
--- a/lld/ELF/Strings.cpp
+++ b/lld/ELF/Strings.cpp
@@ -27,6 +27,7 @@
return S.find_first_of("?*") != StringRef::npos;
}
+// Converts a glob pattern to a regular expression.
static std::string toRegex(StringRef S) {
if (S.find_first_of("[]") != StringRef::npos)
warning("unsupported wildcard: " + S);
@@ -47,7 +48,7 @@
return T;
}
-// Takes multiple glob patterns and converts them into regex object.
+// Converts multiple glob patterns to a regular expression.
Regex elf::compileGlobPatterns(ArrayRef<StringRef> V) {
std::string T = "^(" + toRegex(V[0]);
for (StringRef S : V.slice(1))