Skip to content

Commit e742379

Browse files
committed
[TableGen] fix style in escapeDependencyFilename
1 parent b6183f5 commit e742379

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/TableGen/Main.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,15 @@ static std::string escapeDependencyFilename(StringRef Filename) {
9595
sys::path::native(Filename, NativePath);
9696

9797
for (unsigned I = 0, E = NativePath.size(); I != E; ++I) {
98-
if (NativePath[I] == '#') {
98+
if (NativePath[I] == '#')
9999
OS << '\\';
100-
} else if (NativePath[I] == ' ') {
100+
else if (NativePath[I] == ' ') {
101101
OS << '\\';
102102
unsigned J = I;
103-
while (J > 0 && NativePath[--J] == '\\') {
103+
while (J > 0 && NativePath[--J] == '\\')
104104
OS << '\\';
105-
}
106-
} else if (NativePath[I] == '$') {
105+
} else if (NativePath[I] == '$')
107106
OS << '$';
108-
}
109107
OS << NativePath[I];
110108
}
111109

0 commit comments

Comments
 (0)