Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions llvm/utils/lit/lit/ShUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ def lex_arg_quoted(self, delim):
c = self.eat()
if c == delim:
return str
# LLDB uses "$" at the start of global variable names; it should
# not be escaped nor dropped.
elif c == "\\" and self.look() == "$":
c = self.eat()
str += c
elif c == "\\" and delim == '"':
# Inside a '"' quoted string, '\\' only escapes the quote
# character and backslash, otherwise it is preserved.
Expand Down