diff options
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 06dcf0a..3a9d5fa 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -142,7 +142,7 @@ StringRef CodeViewDebug::getFullFilepath(const DIFile *File) { // If this is a Unix-style path, just use it as is. Don't try to canonicalize // it textually because one of the path components could be a symlink. - if (Dir.startswith("/") || Filename.startswith("/")) { + if (Dir.starts_with("/") || Filename.starts_with("/")) { if (llvm::sys::path::is_absolute(Filename, llvm::sys::path::Style::posix)) return Filename; Filepath = std::string(Dir); @@ -910,10 +910,10 @@ static std::string flattenCommandLine(ArrayRef<std::string> Args, i++; // Skip this argument and next one. continue; } - if (Arg.startswith("-object-file-name") || Arg == MainFilename) + if (Arg.starts_with("-object-file-name") || Arg == MainFilename) continue; // Skip fmessage-length for reproduciability. - if (Arg.startswith("-fmessage-length")) + if (Arg.starts_with("-fmessage-length")) continue; if (PrintedOneArg) OS << " "; @@ -2583,7 +2583,7 @@ CodeViewDebug::lowerRecordFieldList(const DICompositeType *Ty) { // Virtual function pointer member. if ((Member->getFlags() & DINode::FlagArtificial) && - Member->getName().startswith("_vptr$")) { + Member->getName().starts_with("_vptr$")) { VFPtrRecord VFPR(getTypeIndex(Member->getBaseType())); ContinuationBuilder.writeMemberType(VFPR); MemberCount++; |