[llvm] [TableGen] correctly escape dependency filenames (PR #160834)
Ruoyu Zhong via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 26 01:58:08 PDT 2025
================
@@ -83,6 +85,35 @@ static int reportError(const char *ProgName, Twine Msg) {
return 1;
}
+/// Escape a filename in the dependency file so that it is correctly
+/// interpreted by `make`. This is consistent with Clang, GCC, and lld.
+static TGLexer::DependenciesSetTy::value_type escapeDependencyFilename(
+ const TGLexer::DependenciesSetTy::value_type &Filename) {
----------------
ZhongRuoyu wrote:
Done in b6183f5990d5f3d29db0f09efecb3cf92a0ab368.
https://github.com/llvm/llvm-project/pull/160834
More information about the llvm-commits
mailing list