forked from OSchip/llvm-project
[CodeGen] Use StringRef::contains (NFC)
This commit is contained in:
parent
f83a88a179
commit
32ce076d78
|
@ -70,8 +70,8 @@ std::string getFlagName(DISubprogram &SP, bool UseX86FastCall) {
|
|||
// relative posix path: posix
|
||||
sys::path::Style PathStyle =
|
||||
has_root_name(SP.getDirectory(), sys::path::Style::windows_backslash) ||
|
||||
SP.getDirectory().find("\\") != StringRef::npos ||
|
||||
SP.getFilename().find("\\") != StringRef::npos
|
||||
SP.getDirectory().contains("\\") ||
|
||||
SP.getFilename().contains("\\")
|
||||
? sys::path::Style::windows_backslash
|
||||
: sys::path::Style::posix;
|
||||
// Best effort path normalization. This is to guarantee an unique flag symbol
|
||||
|
|
Loading…
Reference in New Issue