|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp 683 (("__anon_expr" + Twine(ExprCount)).str(), std::vector<std::string>());
1159 ExitOnErr(TheJIT->lookup(("__anon_expr" + Twine(ExprCount)).str()));
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp 683 ("__anon_expr" + Twine(ExprCount)).str(), std::vector<std::string>());
1159 ExitOnErr(TheJIT->lookup(("__anon_expr" + Twine(ExprCount)).str()));
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp 1105 F->setName(F->getName() + Suffix);
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp 1129 F->setName(F->getName() + Suffix);
include/llvm/Analysis/BlockFrequencyInfoImpl.h 569 auto MachineName = "BB" + Twine(BB->getNumber());
571 return (MachineName + "[" + BB->getName() + "]").str();
571 return (MachineName + "[" + BB->getName() + "]").str();
571 return (MachineName + "[" + BB->getName() + "]").str();
include/llvm/Analysis/CFGPrinter.h 174 return ("label=\"W:" + Twine(Weight->getZExtValue()) + "\"").str();
174 return ("label=\"W:" + Twine(Weight->getZExtValue()) + "\"").str();
include/llvm/CodeGen/MachineScheduler.h 684 Available(ID, Name+".A"), Pending(ID << LogMaxQID, Name+".P") {
684 Available(ID, Name+".A"), Pending(ID << LogMaxQID, Name+".P") {
include/llvm/IR/IRBuilder.h 2493 Name + ".splatinsert");
2497 return CreateShuffleVector(V, Undef, Zeros, Name + ".splat");
2514 V = CreateLShr(V, ShAmt, Name + ".shift");
2519 V = CreateTrunc(V, ExtractedTy, Name + ".trunc");
include/llvm/MC/MCSymbolMachO.h 122 report_fatal_error("invalid 'common' alignment '" +
123 Twine(Align) + "' for '" + getName() + "'",
123 Twine(Align) + "' for '" + getName() + "'",
123 Twine(Align) + "' for '" + getName() + "'",
include/llvm/Object/ELF.h 195 return createError("invalid e_phentsize: " +
200 return createError("program headers are longer than binary of size " +
201 Twine(getBufSize()) + ": e_phoff = 0x" +
201 Twine(getBufSize()) + ": e_phoff = 0x" +
202 Twine::utohexstr(getHeader()->e_phoff) +
203 ", e_phnum = " + Twine(getHeader()->e_phnum) +
203 ", e_phnum = " + Twine(getHeader()->e_phnum) +
204 ", e_phentsize = " + Twine(getHeader()->e_phentsize));
221 Err = createError("PT_NOTE header has invalid offset (0x" +
222 Twine::utohexstr(Phdr.p_offset) + ") or size (0x" +
222 Twine::utohexstr(Phdr.p_offset) + ") or size (0x" +
223 Twine::utohexstr(Phdr.p_filesz) + ")");
241 " has invalid offset (0x" +
242 Twine::utohexstr(Shdr.sh_offset) + ") or size (0x" +
242 Twine::utohexstr(Shdr.sh_offset) + ") or size (0x" +
243 Twine::utohexstr(Shdr.sh_size) + ")");
313 return createError("invalid section index: " + Twine(Index));
326 "extended symbol index (" + Twine(Index) +
326 "extended symbol index (" + Twine(Index) +
327 ") is past the end of the SHT_SYMTAB_SHNDX section of size " +
385 ": invalid symbol index (" + Twine(Index) + ")");
385 ": invalid symbol index (" + Twine(Index) + ")");
395 " has an invalid sh_entsize: " + Twine(Sec->sh_entsize));
402 " has an invalid sh_size (" + Twine(Size) +
402 " has an invalid sh_size (" + Twine(Size) +
403 ") which is not a multiple of its sh_entsize (" +
404 Twine(Sec->sh_entsize) + ")");
408 " has a sh_offset (0x" + Twine::utohexstr(Offset) +
408 " has a sh_offset (0x" + Twine::utohexstr(Offset) +
409 ") + sh_size (0x" + Twine(Size) +
409 ") + sh_size (0x" + Twine(Size) +
488 return createError("section header string table index " + Twine(Index) +
488 return createError("section header string table index " + Twine(Index) +
498 return createError("invalid buffer: the size (" + Twine(Object.size()) +
498 return createError("invalid buffer: the size (" + Twine(Object.size()) +
499 ") is smaller than an ELF header (" +
500 Twine(sizeof(Elf_Ehdr)) + ")");
511 return createError("invalid e_shentsize in ELF header: " +
518 "section header table goes past the end of the file: e_shoff = 0x" +
535 "section's sh_size field (" +
536 Twine(NumSections) + ")");
541 "invalid section header table offset (e_shoff = 0x" +
542 Twine::utohexstr(SectionTableOffset) +
544 "header's sh_size field (0x" +
545 Twine::utohexstr(NumSections) + ")");
569 " has invalid sh_entsize: expected " + Twine(sizeof(T)) +
569 " has invalid sh_entsize: expected " + Twine(sizeof(T)) +
570 ", but got " + Twine(Section->sh_entsize));
574 getSecIndexForError(this, Section) + " data at 0x" +
575 Twine::utohexstr(Pos) +
596 ": expected SHT_STRTAB, but got " +
641 SymTable.sh_type) +
646 return createError("SHT_SYMTAB_SHNDX has " + Twine(V.size()) +
646 return createError("SHT_SYMTAB_SHNDX has " + Twine(V.size()) +
647 " entries, but the symbol table associated has " +
698 " has an invalid sh_name (0x" +
699 Twine::utohexstr(Offset) +
include/llvm/Support/CommandLine.h 806 return O.error("Cannot find option named '" + ArgVal + "'!");
include/llvm/Transforms/IPO/DeadArgumentElimination.h 63 return (Twine(IsArg ? "Argument #" : "Return value #") + Twine(Idx) +
63 return (Twine(IsArg ? "Argument #" : "Return value #") + Twine(Idx) +
64 " of function " + F->getName())
lib/Analysis/CFGPrinter.cpp 98 (CFGDotFilenamePrefix + "." + F.getName() + ".dot").str();
98 (CFGDotFilenamePrefix + "." + F.getName() + ".dot").str();
lib/Analysis/DDG.cpp 144 : DependenceGraphInfo(Twine(L.getHeader()->getParent()->getName() + "." +
lib/Analysis/ModuleSummaryAnalysis.cpp 818 report_fatal_error(Twine("Failed to open dot file ") +
819 ModuleSummaryDotFile + ": " + EC.message() + "\n");
819 ModuleSummaryDotFile + ": " + EC.message() + "\n");
819 ModuleSummaryDotFile + ": " + EC.message() + "\n");
lib/Analysis/RegionPrinter.cpp 237 Twine(GraphName) + " for '" + F->getName() + "' function");
237 Twine(GraphName) + " for '" + F->getName() + "' function");
237 Twine(GraphName) + " for '" + F->getName() + "' function");
lib/Analysis/ScalarEvolutionExpander.cpp 1071 Builder.CreateSub(PN, StepV, Twine(IVName) + ".iv.next") :
1072 Builder.CreateAdd(PN, StepV, Twine(IVName) + ".iv.next");
1297 Twine(IVName) + ".iv");
lib/AsmParser/LLParser.cpp 192 "use of undefined type '%" + Twine(NT.first) + "'");
192 "use of undefined type '%" + Twine(NT.first) + "'");
198 "use of undefined type named '" + I->getKey() + "'");
212 "use of undefined value '@" +
213 Twine(ForwardRefValIDs.begin()->first) + "'");
217 "use of undefined metadata '!" +
218 Twine(ForwardRefMDNodes.begin()->first) + "'");
277 "use of undefined summary '^" +
278 Twine(ForwardRefValueInfos.begin()->first) + "'");
282 "use of undefined summary '^" +
283 Twine(ForwardRefAliasees.begin()->first) + "'");
287 "use of undefined type id summary '^" +
288 Twine(ForwardRefTypeIds.begin()->first) + "'");
558 return Error(Lex.getLoc(), "variable expected to be numbered '%" +
559 Twine(VarID) + "'");
1390 Error(Loc, "'" + Name + "' is not a basic block");
1390 Error(Loc, "'" + Name + "' is not a basic block");
1392 Error(Loc, "'" + Name + "' defined with type '" +
1392 Error(Loc, "'" + Name + "' defined with type '" +
1392 Error(Loc, "'" + Name + "' defined with type '" +
1393 getTypeString(Val->getType()) + "' but expected '" +
1393 getTypeString(Val->getType()) + "' but expected '" +
1394 getTypeString(SuggestedTy) + "'");
1453 checkValidVariableType(Loc, "@" + Twine(ID), Ty, Val, IsCall));
2446 return TokError(Twine(Msg) + "non-musttail call");
2448 return TokError(Twine(Msg) + "musttail call in non-varargs function");
2589 return Error(TypeLoc, "argument expected to be numbered '%" +
2590 Twine(CurValID) + "'");
2622 return Error(TypeLoc, "argument expected to be numbered '%" +
2623 Twine(CurValID) + "'");
2866 "use of undefined value '%" +
2867 Twine(ForwardRefValIDs.begin()->first) + "'");
2924 return P.checkValidVariableType(Loc, "%" + Twine(ID), Ty, Val, IsCall);
2963 return P.Error(NameLoc, "instruction expected to be numbered '%" +
2964 Twine(NumberedVals.size()) + "'");
3025 P.Error(Loc, "label expected to be numbered '" +
3026 Twine(NumberedVals.size()) + "'");
3031 P.Error(Loc, "unable to create block numbered '" +
3032 Twine(NumberedVals.size()) + "'");
3161 "vector element #" + Twine(i) +
3161 "vector element #" + Twine(i) +
3162 " is not of type '" + getTypeString(Elts[0]->getType()));
3194 "array element #" + Twine(i) +
3194 "array element #" + Twine(i) +
3195 " is not of type '" + getTypeString(Elts[0]->getType()));
3951 return TokError("value for '" + Name + "' too large, limit is " +
3951 return TokError("value for '" + Name + "' too large, limit is " +
3978 return TokError("invalid DWARF tag" + Twine(" '") + Lex.getStrVal() + "'");
3978 return TokError("invalid DWARF tag" + Twine(" '") + Lex.getStrVal() + "'");
3978 return TokError("invalid DWARF tag" + Twine(" '") + Lex.getStrVal() + "'");
3998 "invalid DWARF macinfo type" + Twine(" '") + Lex.getStrVal() + "'");
3998 "invalid DWARF macinfo type" + Twine(" '") + Lex.getStrVal() + "'");
3998 "invalid DWARF macinfo type" + Twine(" '") + Lex.getStrVal() + "'");
4017 return TokError("invalid DWARF virtuality code" + Twine(" '") +
4017 return TokError("invalid DWARF virtuality code" + Twine(" '") +
4018 Lex.getStrVal() + "'");
4035 return TokError("invalid DWARF language" + Twine(" '") + Lex.getStrVal() +
4035 return TokError("invalid DWARF language" + Twine(" '") + Lex.getStrVal() +
4035 return TokError("invalid DWARF language" + Twine(" '") + Lex.getStrVal() +
4053 return TokError("invalid DWARF calling convention" + Twine(" '") + Lex.getStrVal() +
4053 return TokError("invalid DWARF calling convention" + Twine(" '") + Lex.getStrVal() +
4053 return TokError("invalid DWARF calling convention" + Twine(" '") + Lex.getStrVal() +
4071 return TokError("invalid emission kind" + Twine(" '") + Lex.getStrVal() +
4071 return TokError("invalid emission kind" + Twine(" '") + Lex.getStrVal() +
4071 return TokError("invalid emission kind" + Twine(" '") + Lex.getStrVal() +
4090 return TokError("invalid nameTable kind" + Twine(" '") + Lex.getStrVal() +
4090 return TokError("invalid nameTable kind" + Twine(" '") + Lex.getStrVal() +
4090 return TokError("invalid nameTable kind" + Twine(" '") + Lex.getStrVal() +
4109 return TokError("invalid DWARF type attribute encoding" + Twine(" '") +
4109 return TokError("invalid DWARF type attribute encoding" + Twine(" '") +
4110 Lex.getStrVal() + "'");
4138 return TokError(Twine("invalid debug info flag flag '") +
4139 Lex.getStrVal() + "'");
4178 return TokError(Twine("invalid subprogram debug info flag '") +
4179 Lex.getStrVal() + "'");
4205 return TokError("value for '" + Name + "' too small, limit is " +
4205 return TokError("value for '" + Name + "' too small, limit is " +
4208 return TokError("value for '" + Name + "' too large, limit is " +
4208 return TokError("value for '" + Name + "' too large, limit is " +
4237 return TokError("'" + Name + "' cannot be null");
4303 return Error(ValueLoc, "'" + Name + "' cannot be empty");
4327 "invalid checksum kind" + Twine(" '") + Lex.getStrVal() + "'");
4327 "invalid checksum kind" + Twine(" '") + Lex.getStrVal() + "'");
4327 "invalid checksum kind" + Twine(" '") + Lex.getStrVal() + "'");
4367 return TokError("field '" + Name + "' cannot be specified more than once");
4955 return TokError(Twine("invalid DWARF op '") + Lex.getStrVal() + "'");
4955 return TokError(Twine("invalid DWARF op '") + Lex.getStrVal() + "'");
4964 return TokError(Twine("invalid DWARF attribute encoding '") + Lex.getStrVal() + "'");
4964 return TokError(Twine("invalid DWARF attribute encoding '") + Lex.getStrVal() + "'");
4972 return TokError("element too large, limit is " + Twine(UINT64_MAX));
5235 return Error(ID.Loc, "element " + Twine(i) +
5235 return Error(ID.Loc, "element " + Twine(i) +
5361 return TokError("function expected to be numbered '%" +
5362 Twine(NumberedVals.size()) + "'");
5470 return Error(NameLoc, "type of definition and forward reference of '@" +
5471 Twine(NumberedVals.size()) + "' disagree: "
5472 "expected '" + getTypeString(PFT) + "' but was '" +
5472 "expected '" + getTypeString(PFT) + "' but was '" +
5472 "expected '" + getTypeString(PFT) + "' but was '" +
5473 getTypeString(Fn->getType()) + "'");
7133 AtomicRMWInst::getOperationName(Operation) +
7139 AtomicRMWInst::getOperationName(Operation) +
7145 AtomicRMWInst::getOperationName(Operation) +
7338 "wrong number of indexes, expected " + Twine(V->getNumUses()));
lib/Bitcode/Reader/BitcodeReader.cpp 215 Twine("Incompatible epoch: Bitcode '") + Twine(epoch) +
215 Twine("Incompatible epoch: Bitcode '") + Twine(epoch) +
216 "' vs current: '" + Twine(bitc::BITCODE_CURRENT_EPOCH) + "'");
216 "' vs current: '" + Twine(bitc::BITCODE_CURRENT_EPOCH) + "'");
1559 return error("Unknown attribute kind (" + Twine(Code) + ")");
1559 return error("Unknown attribute kind (" + Twine(Code) + ")");
5768 return error("Invalid summary version " + Twine(Version) +
5768 return error("Invalid summary version " + Twine(Version) +
lib/CodeGen/AsmPrinter/ARMException.cpp 111 Asm->OutStreamer->AddComment("TypeInfo " + Twine(Entry--));
129 Asm->OutStreamer->AddComment("FilterInfo " + Twine(Entry));
lib/CodeGen/AsmPrinter/AccelTable.cpp 256 Asm->OutStreamer->AddComment("Hash in Bucket " + Twine(BucketIdx));
273 Asm->OutStreamer->AddComment("Offset in Bucket " + Twine(i));
312 Asm->OutStreamer->AddComment("Bucket " + Twine(i));
427 Asm->OutStreamer->AddComment("Compilation unit " + Twine(CU.index()));
436 Asm->OutStreamer->AddComment("Bucket " + Twine(Bucket.index()));
447 Asm->OutStreamer->AddComment("String in Bucket " + Twine(Bucket.index()) +
447 Asm->OutStreamer->AddComment("String in Bucket " + Twine(Bucket.index()) +
448 ": " + String.getString());
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 491 report_fatal_error("symbol '" + Twine(GVSym->getName()) +
491 report_fatal_error("symbol '" + Twine(GVSym->getName()) +
582 OutContext.getOrCreateSymbol(GVSym->getName() + Twine("$tlv$init"));
754 report_fatal_error("'" + Twine(CurrentFnSym->getName()) +
754 report_fatal_error("'" + Twine(CurrentFnSym->getName()) +
757 report_fatal_error("'" + Twine(CurrentFnSym->getName()) +
757 report_fatal_error("'" + Twine(CurrentFnSym->getName()) +
2810 return OutContext.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
2811 "CPI" + Twine(getFunctionNumber()) + "_" +
2811 "CPI" + Twine(getFunctionNumber()) + "_" +
2811 "CPI" + Twine(getFunctionNumber()) + "_" +
2824 return OutContext.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
2825 Twine(getFunctionNumber()) + "_" +
2825 Twine(getFunctionNumber()) + "_" +
2826 Twine(UID) + "_set_" + Twine(MBBID));
2826 Twine(UID) + "_set_" + Twine(MBBID));
2880 AP.OutStreamer->AddComment(" in Loop: Header=BB" +
2881 Twine(AP.getFunctionNumber())+"_" +
2881 Twine(AP.getFunctionNumber())+"_" +
2882 Twine(Loop->getHeader()->getNumber())+
2883 " Depth="+Twine(Loop->getLoopDepth()));
2899 OS << "Loop Header: Depth=" + Twine(Loop->getLoopDepth()) << '\n';
2973 OutStreamer->emitRawComment(" %bb." + Twine(MBB.getNumber()) + ":",
2973 OutStreamer->emitRawComment(" %bb." + Twine(MBB.getNumber()) + ":",
3074 report_fatal_error("no GCMetadataPrinter registered for GC: " + Twine(Name));
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp 111 OutStreamer->AddComment(Twine(Desc) + " Encoding = " +
111 OutStreamer->AddComment(Twine(Desc) + " Encoding = " +
114 OutStreamer->AddComment(Twine("Encoding = ") + DecodeDWARFEncoding(Val));
255 OutStreamer->AddComment("Abbrev [" + Twine(Die.getAbbrevNumber()) + "] 0x" +
255 OutStreamer->AddComment("Abbrev [" + Twine(Die.getAbbrevNumber()) + "] 0x" +
255 OutStreamer->AddComment("Abbrev [" + Twine(Die.getAbbrevNumber()) + "] 0x" +
256 Twine::utohexstr(Die.getOffset()) + ":0x" +
256 Twine::utohexstr(Die.getOffset()) + ":0x" +
257 Twine::utohexstr(Die.getSize()) + " " +
257 Twine::utohexstr(Die.getSize()) + " " +
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp 219 " string: '" + Twine(AsmStr) + "'");
219 " string: '" + Twine(AsmStr) + "'");
233 report_fatal_error("Bad $ operand number in inline asm string: '" +
234 Twine(AsmStr) + "'");
238 report_fatal_error("Invalid $ operand number in inline asm string: '" +
239 Twine(AsmStr) + "'");
325 report_fatal_error("Nested variants found in inline asm string: '" +
326 Twine(AsmStr) + "'");
361 " string: '" + Twine(AsmStr) + "'");
361 " string: '" + Twine(AsmStr) + "'");
375 report_fatal_error("Bad $ operand number in inline asm string: '" +
376 Twine(AsmStr) + "'");
387 report_fatal_error("Bad ${:} expression in inline asm string: '" +
388 Twine(AsmStr) + "'");
395 report_fatal_error("Bad ${} expression in inline asm string: '" +
396 Twine(AsmStr) + "'");
401 report_fatal_error("Invalid $ operand number in inline asm string: '" +
402 Twine(AsmStr) + "'");
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp 200 Filepath = (Dir + "\\" + Filename).str();
869 OS.AddComment("Inlined function " + SP->getName() + " starts at " +
869 OS.AddComment("Inlined function " + SP->getName() + " starts at " +
870 SP->getFilename() + Twine(':') + Twine(SP->getLine()));
870 SP->getFilename() + Twine(':') + Twine(SP->getLine()));
949 OS.AddComment("Symbol subsection for " + Twine(FuncName));
1016 OS.AddComment("Symbol subsection for " + Twine(FuncName));
3046 OS.AddComment("Symbol subsection for " +
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp 1312 "_" + Twine(Btr.BitSize)).toStringRef(Str));
lib/CodeGen/AsmPrinter/DwarfDebug.cpp 174 Op, Comment ? Twine(Comment) + " " + dwarf::OperationEncodingString(Op)
174 Op, Comment ? Twine(Comment) + " " + dwarf::OperationEncodingString(Op)
2079 Asm->OutStreamer->AddComment("Length of Public " + Name + " Info");
2080 MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + Name + "_begin");
2081 MCSymbol *EndLabel = Asm->createTempSymbol("pub" + Name + "_end");
2106 Twine("Attributes: ") + dwarf::GDBIndexEntryKindString(Desc.Kind) +
2106 Twine("Attributes: ") + dwarf::GDBIndexEntryKindString(Desc.Kind) +
2107 ", " + dwarf::GDBIndexEntryLinkageString(Desc.Linkage));
lib/CodeGen/AsmPrinter/DwarfStringPool.cpp 106 Asm.OutStreamer->AddComment("string offset=" +
lib/CodeGen/AsmPrinter/EHStreamer.cpp 433 Asm->OutContext.getOrCreateSymbol(Twine("GCC_except_table")+
472 Asm->OutStreamer->AddComment(">> Call Site " + Twine(idx) + " <<");
472 Asm->OutStreamer->AddComment(">> Call Site " + Twine(idx) + " <<");
473 Asm->OutStreamer->AddComment(" On exception at call site "+Twine(idx));
484 Asm->OutStreamer->AddComment(" Action: " +
526 Asm->OutStreamer->AddComment(">> Call Site " + Twine(++Entry) + " <<");
526 Asm->OutStreamer->AddComment(">> Call Site " + Twine(++Entry) + " <<");
529 Asm->OutStreamer->AddComment(Twine(" Call between ") +
530 BeginLabel->getName() + " and " +
530 BeginLabel->getName() + " and " +
541 Asm->OutStreamer->AddComment(Twine(" jumps to ") +
554 Asm->OutStreamer->AddComment(" On action: " +
570 Asm->OutStreamer->AddComment(">> Action Record " + Twine(++Entry) + " <<");
570 Asm->OutStreamer->AddComment(">> Action Record " + Twine(++Entry) + " <<");
579 Asm->OutStreamer->AddComment(" Catch TypeInfo " +
582 Asm->OutStreamer->AddComment(" Filter TypeInfo " +
598 Asm->OutStreamer->AddComment(" Continue to action "+Twine(NextAction));
631 Asm->OutStreamer->AddComment("TypeInfo " + Twine(Entry--));
649 Asm->OutStreamer->AddComment("FilterInfo " + Twine(Entry));
lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp 145 report_fatal_error("Function '" + FI.getFunction().getName() +
147 "Frame size " +
148 Twine(FrameSize) + ">= 65536.\n"
149 "(" +
150 Twine(uintptr_t(&FI)) + ")");
153 AP.OutStreamer->AddComment("live roots for " +
161 report_fatal_error("Function '" + FI.getFunction().getName() +
163 "Live root count " +
164 Twine(LiveCount) + " >= 65536.");
lib/CodeGen/AsmPrinter/WinException.cpp 183 return Ctx.getOrCreateSymbol("?" + HandlerPrefix + "$" +
183 return Ctx.getOrCreateSymbol("?" + HandlerPrefix + "$" +
184 Twine(MBB->getNumber()) + "@?0?" +
184 Twine(MBB->getNumber()) + "@?0?" +
185 FuncLinkageName + "@4HA");
lib/CodeGen/CFIInstrInserter.cpp 60 report_fatal_error("Found " + Twine(ErrorNum) +
60 report_fatal_error("Found " + Twine(ErrorNum) +
lib/CodeGen/CallingConvLower.cpp 94 report_fatal_error("unable to allocate function argument #" + Twine(i));
121 report_fatal_error("unable to allocate function return #" + Twine(i));
lib/CodeGen/GCMetadata.cpp 171 report_fatal_error(std::string("unsupported GC: ") + Name);
lib/CodeGen/GlobalISel/IRTranslator.cpp 104 R << (" (in function: " + MF.getName() + ")").str();
lib/CodeGen/GlobalISel/Utils.cpp 186 R << (" (in function: " + MF.getName() + ")").str();
lib/CodeGen/IndirectBrExpandPass.cpp 182 Twine(IBr->getAddress()->getName()) + ".switch_cast", IBr);
lib/CodeGen/IntrinsicLowering.cpp 245 Callee->getName() + "'!");
248 Callee->getName()+"'!");
lib/CodeGen/MIRParser/MILexer.cpp 601 "use of unknown metadata keyword '" + StrVal + "'");
735 Twine("unexpected character '") + Twine(C.peek()) + "'");
735 Twine("unexpected character '") + Twine(C.peek()) + "'");
lib/CodeGen/MIRParser/MIParser.cpp 572 return error(Twine("expected ") + toString(TokenKind));
633 return error(Loc, Twine("basic block '") + Name +
633 return error(Loc, Twine("basic block '") + Name +
634 "' is not defined in the function '" +
635 MF.getName() + "'");
641 return error(Loc, Twine("redefinition of machine basic block with id #") +
1120 Twine("missing implicit register operand '") +
1121 printImplicitRegisterFlag(I) + " $" +
1121 printImplicitRegisterFlag(I) + " $" +
1122 getRegisterName(TRI, I.getReg()) + "'");
1176 return error(Twine("unknown machine instruction name '") + InstrName + "'");
1176 return error(Twine("unknown machine instruction name '") + InstrName + "'");
1185 return error(Twine("unknown register name '") + Name + "'");
1185 return error(Twine("unknown register name '") + Name + "'");
1245 return error(Loc, Twine("conflicting register classes, previously: ") +
1325 return error("duplicate '" + Token.stringValue() + "' register flag");
1338 return error(Twine("use of unknown subregister index '") + Name + "'");
1338 return error(Twine("use of unknown subregister index '") + Name + "'");
1367 Twine("use of invalid tied-def operand index '" +
1368 Twine(DefIdx) + "'; instruction has only ") +
1368 Twine(DefIdx) + "'; instruction has only ") +
1369 Twine(E) + " operands");
1374 Twine("use of invalid tied-def operand index '") +
1375 Twine(DefIdx) + "'; the operand #" + Twine(DefIdx) +
1375 Twine(DefIdx) + "'; the operand #" + Twine(DefIdx) +
1375 Twine(DefIdx) + "'; the operand #" + Twine(DefIdx) +
1381 Twine("the tied-def operand #") + Twine(DefIdx) +
1381 Twine("the tied-def operand #") + Twine(DefIdx) +
1660 return error(Twine("use of undefined machine basic block #") +
1666 return error(Twine("the name of machine basic block #") + Twine(Number) +
1666 return error(Twine("the name of machine basic block #") + Twine(Number) +
1667 " isn't '" + Token.stringValue() + "'");
1667 " isn't '" + Token.stringValue() + "'");
1687 return error(Twine("use of undefined stack object '%stack.") + Twine(ID) +
1687 return error(Twine("use of undefined stack object '%stack.") + Twine(ID) +
1694 return error(Twine("the name of the stack object '%stack.") + Twine(ID) +
1694 return error(Twine("the name of the stack object '%stack.") + Twine(ID) +
1695 "' isn't '" + Token.stringValue() + "'");
1695 "' isn't '" + Token.stringValue() + "'");
1716 return error(Twine("use of undefined fixed stack object '%fixed-stack.") +
1717 Twine(ID) + "'");
1737 return error(Twine("use of undefined global value '") + Token.range() +
1737 return error(Twine("use of undefined global value '") + Token.range() +
1746 return error(Twine("use of undefined global value '@") + Twine(GVIdx) +
1746 return error(Twine("use of undefined global value '@") + Twine(GVIdx) +
1775 return error("use of undefined constant '%const." + Twine(ID) + "'");
1775 return error("use of undefined constant '%const." + Twine(ID) + "'");
1790 return error("use of undefined jump table '%jump-table." + Twine(ID) + "'");
1790 return error("use of undefined jump table '%jump-table." + Twine(ID) + "'");
1821 return error(Twine("unknown subregister index '") + Name + "'");
1821 return error(Twine("unknown subregister index '") + Name + "'");
1839 return error(Loc, "use of undefined metadata '!" + Twine(ID) + "'");
1839 return error(Loc, "use of undefined metadata '!" + Twine(ID) + "'");
1868 return error(Twine("invalid DWARF op '") + Token.stringValue() + "'");
1868 return error(Twine("invalid DWARF op '") + Token.stringValue() + "'");
1877 return error("element too large, limit is " + Twine(UINT64_MAX));
1976 return error(Twine("invalid DILocation argument '") +
1977 Token.stringValue() + "'");
2154 return error(Twine("use of undefined IR block '") + Token.range() + "'");
2154 return error(Twine("use of undefined IR block '") + Token.range() + "'");
2163 return error(Twine("use of undefined IR block '%ir-block.") +
2164 Twine(SlotNumber) + "'");
2343 return error("use of undefined target index '" + Token.stringValue() + "'");
2514 return error("use of undefined target flag '" + Token.stringValue() +
2524 return error("use of undefined target flag '" + Token.stringValue() +
2551 return error("expected an integer literal after '" + Sign + "'");
2627 return error(Twine("use of undefined IR value '") + Token.range() + "'");
2627 return error(Twine("use of undefined IR value '") + Token.range() + "'");
2685 return error("use of undefined target MMO flag '" + Token.stringValue() +
2696 return error("duplicate '" + Token.stringValue() + "' memory operand flag");
2889 return error(Twine("expected '") + Word + "'");
2889 return error(Twine("expected '") + Word + "'");
lib/CodeGen/MIRParser/MIRParser.cpp 290 return error(Twine("function '") + FunctionName +
290 return error(Twine("function '") + FunctionName +
295 return error(Twine("redefinition of machine function '") + FunctionName +
295 return error(Twine("redefinition of machine function '") + FunctionName +
351 return error(Twine(MF.getName()) +
352 Twine(" call instruction block out of range.") +
353 " Unable to reference bb:" + Twine(MILoc.BlockNum));
356 return error(Twine(MF.getName()) +
357 Twine(" call instruction offset out of range.") +
358 " Unable to reference instruction at bb: " +
359 Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset));
359 Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset));
362 return error(Twine(MF.getName()) +
364 "instruction. Instruction at bb:") +
365 Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset) +
365 Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset) +
365 Twine(MILoc.BlockNum) + " at offset:" + Twine(MILoc.Offset) +
507 Twine("redefinition of virtual register '%") +
508 Twine(VReg.ID.Value) + "'");
524 Twine("use of undefined register class or register bank '") +
525 VReg.Class.Value + "'");
584 error(Twine("Cannot determine class/bank of virtual register ") +
585 Name + " in function '" + MF.getName() + "'");
585 Name + " in function '" + MF.getName() + "'");
585 Name + " in function '" + MF.getName() + "'");
682 Twine("redefinition of fixed stack object '%fixed-stack.") +
683 Twine(Object.ID.Value) + "'");
702 "' isn't defined in the function '" + F.getName() +
702 "' isn't defined in the function '" + F.getName() +
720 Twine("redefinition of stack object '%stack.") +
721 Twine(Object.ID.Value) + "'");
771 "expected a reference to a '" + TypeString +
832 Twine("redefinition of constant pool item '%const.") +
833 Twine(YamlConstant.ID.Value) + "'");
853 Twine("redefinition of jump table entry '%jump-table.") +
854 Twine(Entry.ID.Value) + "'");
lib/CodeGen/MIRPrinter.cpp 619 OS << (Twine("%ir-block.") + Twine(Slot)).str();
lib/CodeGen/MachineBasicBlock.cpp 65 CachedMCSymbol = Ctx.getOrCreateSymbol(Twine(Prefix) + "BB" +
65 CachedMCSymbol = Ctx.getOrCreateSymbol(Twine(Prefix) + "BB" +
66 Twine(MF->getFunctionNumber()) +
67 "_" + Twine(getNumber()));
271 Name += ("BB" + Twine(getNumber())).str();
315 OS << (Twine("%ir-block.") + Twine(Slot)).str();
lib/CodeGen/MachineFunction.cpp 530 return ("CFG for '" + F->getName() + "' function").str();
625 return Ctx.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
626 Twine(getFunctionNumber()) + "$pb");
lib/CodeGen/MachineOutliner.cpp 971 R << NV((Twine("OtherStartLoc") + Twine(i)).str(),
996 R << NV((Twine("StartLoc") + Twine(i)).str(),
1096 std::string FunctionName = ("OUTLINED_FUNCTION_" + Twine(Name)).str();
lib/CodeGen/MachineVerifier.cpp 312 report_fatal_error("Found "+Twine(FoundErrors)+" machine code errors.");
312 report_fatal_error("Found "+Twine(FoundErrors)+" machine code errors.");
333 report_fatal_error("Found "+Twine(FoundErrors)+" machine code errors.");
333 report_fatal_error("Found "+Twine(FoundErrors)+" machine code errors.");
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp 415 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx));
417 Builder.CreateAlignedLoad(EltTy, Ptr, AlignVal, "Load" + Twine(Idx));
419 Builder.CreateInsertElement(VResult, Load, Idx, "Res" + Twine(Idx));
448 Predicate = Builder.CreateExtractElement(Mask, Idx, "Mask" + Twine(Idx));
460 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx));
462 Builder.CreateAlignedLoad(EltTy, Ptr, AlignVal, "Load" + Twine(Idx));
464 Builder.CreateInsertElement(VResult, Load, Idx, "Res" + Twine(Idx));
540 Builder.CreateExtractElement(Src, Idx, "Elt" + Twine(Idx));
541 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx));
569 Predicate = Builder.CreateExtractElement(Mask, Idx, "Mask" + Twine(Idx));
581 Value *OneElt = Builder.CreateExtractElement(Src, Idx, "Elt" + Twine(Idx));
582 Value *Ptr = Builder.CreateExtractElement(Ptrs, Idx, "Ptr" + Twine(Idx));
627 Builder.CreateAlignedLoad(EltTy, NewPtr, 1, "Load" + Twine(Idx));
629 Builder.CreateInsertElement(VResult, Load, Idx, "Res" + Twine(Idx));
659 Predicate = Builder.CreateExtractElement(Mask, Idx, "Mask" + Twine(Idx));
736 Builder.CreateExtractElement(Src, Idx, "Elt" + Twine(Idx));
765 Predicate = Builder.CreateExtractElement(Mask, Idx, "Mask" + Twine(Idx));
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 6154 report_fatal_error("cannot lower memory intrinsic in address space " +
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 347 return Ctx.emitError(I, ErrMsg + AsmError);
8117 CS, "constraint '" + Twine(T.ConstraintCode) + "' expects an "
8117 CS, "constraint '" + Twine(T.ConstraintCode) + "' expects an "
8229 CS, "couldn't allocate output register for constraint '" +
8230 Twine(OpInfo.ConstraintCode) + "'");
8319 emitInlineAsmError(CS, "value out of range for constraint '" +
8320 Twine(OpInfo.ConstraintCode) + "'");
8324 emitInlineAsmError(CS, "invalid operand for inline asm constraint '" +
8325 Twine(OpInfo.ConstraintCode) + "'");
8368 "for constraint '" +
8369 Twine(OpInfo.ConstraintCode) + "'");
8375 emitInlineAsmError(CS, "couldn't allocate input reg for constraint '" +
8376 Twine(OpInfo.ConstraintCode) + "'");
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 706 R << (" (in function: " + MF.getName() + ")").str();
802 (MF->getName() + ":" + FuncInfo->MBB->getBasicBlock()->getName()).str();
lib/CodeGen/TargetLoweringBase.cpp 1701 report_fatal_error(Twine(UnsafeStackPtrVar) + " must have void* type");
1703 report_fatal_error(Twine(UnsafeStackPtrVar) + " must " +
1703 report_fatal_error(Twine(UnsafeStackPtrVar) + " must " +
1704 (UseTLS ? "" : "not ") + "be thread-local");
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 360 return getContext().getOrCreateSymbol(StringRef("DW.ref.") +
510 C->getName() + "' cannot be lowered.");
914 report_fatal_error("Invalid section specifier '" + Section + "': " +
914 report_fatal_error("Invalid section specifier '" + Section + "': " +
915 ErrorCode + ".");
933 report_fatal_error("MachO doesn't support COMDATs, '" + C->getName() +
951 report_fatal_error("Global variable '" + GO->getName() +
952 "' has an invalid section specifier '" +
953 GO->getSection() + "': " + ErrorCode + ".");
953 GO->getSection() + "': " + ErrorCode + ".");
953 GO->getSection() + "': " + ErrorCode + ".");
970 report_fatal_error("Global variable '" + GO->getName() +
1264 report_fatal_error("Associative COMDAT symbol '" + ComdatGVName +
1268 report_fatal_error("Associative COMDAT symbol '" + ComdatGVName +
1688 "SelectionKind::Any, '" + C->getName() + "' cannot be "
lib/CodeGen/TargetPassConfig.cpp 341 report_fatal_error(Twine('\"') + Twine(PassName) +
341 report_fatal_error(Twine('\"') + Twine(PassName) +
385 report_fatal_error(Twine(StartBeforeOptName) + Twine(" and ") +
385 report_fatal_error(Twine(StartBeforeOptName) + Twine(" and ") +
386 Twine(StartAfterOptName) + Twine(" specified!"));
388 report_fatal_error(Twine(StopBeforeOptName) + Twine(" and ") +
388 report_fatal_error(Twine(StopBeforeOptName) + Twine(" and ") +
389 Twine(StopAfterOptName) + Twine(" specified!"));
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp 131 emitComment(Comment + ": " + TypeNameStr);
131 emitComment(Comment + ": " + TypeNameStr);
lib/DebugInfo/CodeView/TypeRecordMapping.cpp 214 IO.emitRawComment(" " + getLeafTypeName(CVR.kind()) + " (0x" +
214 IO.emitRawComment(" " + getLeafTypeName(CVR.kind()) + " (0x" +
215 utohexstr(Index.getIndex()) + ")");
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp 177 DictScope NameScope(W, ("Name@0x" + Twine::utohexstr(NameOffset)).str());
183 ListScope DataScope(W, ("Data " + Twine(Data)).str());
218 DictScope AtomScope(W, ("Atom " + Twine(i++)).str());
233 ListScope BucketScope(W, ("Bucket " + Twine(Bucket)).str());
248 ListScope HashScope(W, ("Hash 0x" + Twine::utohexstr(Hash)).str());
408 DictScope AbbrevScope(W, ("Abbreviation 0x" + Twine::utohexstr(Code)).str());
665 DictScope EntryScope(W, ("Entry @ 0x" + Twine::utohexstr(EntryId)).str());
673 DictScope NameScope(W, ("Name " + Twine(NTE.getIndex())).str());
720 ListScope BucketScope(W, ("Bucket " + Twine(Bucket)).str());
741 DictScope UnitScope(W, ("Name Index @ 0x" + Twine::utohexstr(Base)).str());
lib/DebugInfo/DWARF/DWARFContext.cpp 1274 return make_error<StringError>(Reason + toString(std::move(E)),
1554 "failed to decompress '" + Name + "', ", std::move(Err)));
1690 createError("failed to compute relocation: " + Type + ", ",
lib/DebugInfo/DWARF/DWARFVerifier.cpp 464 ReportError("DW_AT_stmt_list offset is beyond .debug_line bounds: " +
508 ReportError("DIE with tag " + TagString(DieTag) + " has " +
508 ReportError("DIE with tag " + TagString(DieTag) + " has " +
509 AttributeString(Attr) +
511 "incompatible tag " +
519 ReportError("DIE has " + AttributeString(Attr) +
520 " with incompatible tag " + TagString(TypeDie.getTag()));
lib/ExecutionEngine/JITLink/EHFrameSupport.cpp 113 return make_error<JITLinkError>("Unrecognized substring e" +
114 Twine(NextChar) +
124 return make_error<JITLinkError>("Unrecognized character " +
125 Twine(NextChar) +
172 return make_error<JITLinkError>("Bad CIE version " + Twine(Version) +
172 return make_error<JITLinkError>("Bad CIE version " + Twine(Version) +
190 return make_error<JITLinkError>("Unsupported CIE code alignment factor " +
191 Twine(CodeAlignmentFactor) +
201 return make_error<JITLinkError>("Unsupported CIE data alignment factor " +
202 Twine(DataAlignmentFactor) +
226 "Unsupported LSDA pointer encoding " +
227 formatv("{0:x2}", LSDAPointerEncoding) + " in CIE at " +
227 formatv("{0:x2}", LSDAPointerEncoding) + " in CIE at " +
239 "encoding " +
240 formatv("{0:x2}", PersonalityPointerEncoding) + " in CIE at " +
240 formatv("{0:x2}", PersonalityPointerEncoding) + " in CIE at " +
254 "encoding " +
255 formatv("{0:x2}", FDEPointerEncoding) + " in CIE at " +
255 formatv("{0:x2}", FDEPointerEncoding) + " in CIE at " +
289 "FDE at " + formatv("{0:x16}", EHFrameAddress + RecordOffset) +
289 "FDE at " + formatv("{0:x16}", EHFrameAddress + RecordOffset) +
290 " points to non-existant CIE at " +
309 return make_error<JITLinkError>("FDE PC-begin " +
310 formatv("{0:x16}", PCBegin) +
315 "FDE PC-begin " + formatv("{0:x16}", PCBegin) +
315 "FDE PC-begin " + formatv("{0:x16}", PCBegin) +
316 " does not point to start of symbol at " +
333 "Unexpected FDE augmentation data size (expected " +
334 Twine(PointerSize) + ", got " + Twine(AugmentationDataSize) +
334 Twine(PointerSize) + ", got " + Twine(AugmentationDataSize) +
334 Twine(PointerSize) + ", got " + Twine(AugmentationDataSize) +
335 ") for FDE at " + formatv("{0:x16}", EHFrameAddress + RecordOffset));
346 return make_error<JITLinkError>("FDE LSDA " + formatv("{0:x16}", LSDA) +
346 return make_error<JITLinkError>("FDE LSDA " + formatv("{0:x16}", LSDA) +
351 "FDE LSDA " + formatv("{0:x16}", LSDA) +
351 "FDE LSDA " + formatv("{0:x16}", LSDA) +
352 " does not point to start of symbol at " +
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp 192 "Address range for section " + Cur.GraphSection->getName() +
194 Cur.Address + Cur.Size) +
195 "overlaps " +
313 return make_error<JITLinkError>("Anonymous common symbol at index " +
322 "index " +
329 return make_error<JITLinkError>("Anonymous absolute symbol at index " +
340 "Unupported N_PBUD symbol " +
341 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
341 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
342 " at index " + Twine(KV.first));
345 "Unupported N_INDR symbol " +
346 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
346 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
347 " at index " + Twine(KV.first));
350 "Unrecognized symbol type " + Twine(NSym.Type & MachO::N_TYPE) +
350 "Unrecognized symbol type " + Twine(NSym.Type & MachO::N_TYPE) +
351 " for symbol " +
352 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
352 (NSym.Name ? ("\"" + *NSym.Name + "\"") : Twine("<anon>")) +
353 " at index " + Twine(KV.first));
418 "First symbol in " + NSec.GraphSection->getName() + " is alt-entry");
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h 180 return make_error<JITLinkError>("No section recorded for index " +
193 return make_error<JITLinkError>("No symbol at index " +
214 return make_error<JITLinkError>("No symbol covering address " +
lib/ExecutionEngine/JITLink/MachO_arm64.cpp 98 "Unsupported arm64 relocation: address=" +
99 formatv("{0:x8}", RI.r_address) +
100 ", symbolnum=" + formatv("{0:x6}", RI.r_symbolnum) +
100 ", symbolnum=" + formatv("{0:x6}", RI.r_symbolnum) +
101 ", kind=" + formatv("{0:x1}", RI.r_type) +
101 ", kind=" + formatv("{0:x1}", RI.r_type) +
102 ", pc_rel=" + (RI.r_pcrel ? "true" : "false") +
102 ", pc_rel=" + (RI.r_pcrel ? "true" : "false") +
103 ", extern=" + (RI.r_extern ? "true" : "false") +
103 ", extern=" + (RI.r_extern ? "true" : "false") +
104 ", length=" + formatv("{0:d}", RI.r_length));
257 return make_error<JITLinkError>("Unpaired Addend reloc at " +
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp 101 "Unsupported x86-64 relocation: address=" +
102 formatv("{0:x8}", RI.r_address) +
103 ", symbolnum=" + formatv("{0:x6}", RI.r_symbolnum) +
103 ", symbolnum=" + formatv("{0:x6}", RI.r_symbolnum) +
104 ", kind=" + formatv("{0:x1}", RI.r_type) +
104 ", kind=" + formatv("{0:x1}", RI.r_type) +
105 ", pc_rel=" + (RI.r_pcrel ? "true" : "false") +
105 ", pc_rel=" + (RI.r_pcrel ? "true" : "false") +
106 ", extern=" + (RI.r_extern ? "true" : "false") +
106 ", extern=" + (RI.r_extern ? "true" : "false") +
107 ", length=" + formatv("{0:d}", RI.r_length));
lib/ExecutionEngine/MCJIT/MCJIT.cpp 626 report_fatal_error("Program used external function '"+Name+
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp 59 M.setModuleIdentifier((M.getModuleIdentifier() + Suffix).str());
lib/ExecutionEngine/Orc/IndirectionUtils.cpp 264 GV.setName("__orc_anon." + Twine(NextId++));
266 GV.setName("__" + GV.getName().substr(1) + "." + Twine(NextId++));
266 GV.setName("__" + GV.getName().substr(1) + "." + Twine(NextId++));
268 GV.setName("__orc_lcl." + GV.getName() + "." + Twine(NextId++));
268 GV.setName("__orc_lcl." + GV.getName() + "." + Twine(NextId++));
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h 274 std::string NewCtorName = ("__ORCstatic_ctor." + Twine(CtorId++)).str();
281 std::string NewDtorName = ("__ORCstatic_dtor." + Twine(DtorId++)).str();
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 1110 report_fatal_error("Program used external function '" + Name +
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp 231 EvalResult(("Cannot decode unknown symbol '" + Symbol + "'").str()),
253 EvalResult(("Couldn't decode instruction at '" + Symbol + "'").str()),
299 EvalResult(("Cannot decode unknown symbol '" + Symbol + "'").str()),
311 EvalResult(("Couldn't decode instruction at '" + Symbol + "'").str()),
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h 154 return make_error<RuntimeDyldError>(("MachO ARM relocation type " +
155 Twine(RelType) +
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOI386.h 52 "type: " + Twine(RelType)).str());
61 return make_error<RuntimeDyldError>(("MachO I386 relocation type " +
62 Twine(RelType) +
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOX86_64.h 66 return make_error<RuntimeDyldError>(("MachO X86_64 relocation type " +
67 Twine(RelType) +
lib/IR/Attributes.cpp 467 Result += (Twine('"') + getKindAsString() + Twine('"')).str();
467 Result += (Twine('"') + getKindAsString() + Twine('"')).str();
lib/IR/AutoUpgrade.cpp 533 "llvm." + Name + ".p0i8", F->getParent());
4096 C, (Twine("llvm.loop.vectorize.") + OldTag.drop_front(OldPrefix.size()))
4154 std::string Res = (Groups[1] + AddrSpaces + Groups[3]).toStringRef(Buf).str();
4154 std::string Res = (Groups[1] + AddrSpaces + Groups[3]).toStringRef(Buf).str();
lib/IR/DiagnosticInfo.cpp 160 return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str();
160 return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str();
160 return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str();
218 Val = (Loc->getFilename() + ":" + Twine(Loc.getLine()) + ":" +
218 Val = (Loc->getFilename() + ":" + Twine(Loc.getLine()) + ":" +
218 Val = (Loc->getFilename() + ":" + Twine(Loc.getLine()) + ":" +
lib/IR/LegacyPassManager.cpp 789 dbgs(), ("*** IR Dump Before " + P->getPassName() + " ***").str());
798 dbgs(), ("*** IR Dump After " + P->getPassName() + " ***").str());
lib/IR/Mangler.cpp 130 getNameWithPrefixImpl(OS, "__unnamed_" + Twine(ID), DL, PrefixTy);
lib/IR/Verifier.cpp 1825 CheckFailed("'allocsize' " + Name + " argument is out of bounds", V);
1830 CheckFailed("'allocsize' " + Name +
3527 AtomicRMWInst::getOperationName(Op) +
3532 AtomicRMWInst::getOperationName(Op) +
3537 AtomicRMWInst::getOperationName(Op) +
4920 "invalid llvm.dbg." + Kind + " intrinsic address/value", &DII, MD);
4922 "invalid llvm.dbg." + Kind + " intrinsic variable", &DII,
4925 "invalid llvm.dbg." + Kind + " intrinsic expression", &DII,
4939 AssertDI(Loc, "llvm.dbg." + Kind + " intrinsic requires a !dbg attachment",
4947 AssertDI(VarSP == LocSP, "mismatched subprogram between llvm.dbg." + Kind +
4960 "invalid llvm.dbg." + Kind + " intrinsic variable", &DLI,
4974 Assert(Loc, "llvm.dbg." + Kind + " intrinsic requires a !dbg attachment",
4982 AssertDI(LabelSP == LocSP, "mismatched subprogram between llvm.dbg." + Kind +
lib/LTO/Caching.cpp 67 report_fatal_error(Twine("Failed to open cache file ") + EntryPath +
67 report_fatal_error(Twine("Failed to open cache file ") + EntryPath +
68 ": " + EC.message() + "\n");
68 ": " + EC.message() + "\n");
95 report_fatal_error(Twine("Failed to open new cache file ") +
96 TempFile.TmpName + ": " +
96 TempFile.TmpName + ": " +
97 MBOrErr.getError().message() + "\n");
125 report_fatal_error(Twine("Failed to rename temporary file ") +
126 TempFile.TmpName + " to " + EntryPath + ": " +
126 TempFile.TmpName + " to " + EntryPath + ": " +
126 TempFile.TmpName + " to " + EntryPath + ": " +
126 TempFile.TmpName + " to " + EntryPath + ": " +
127 toString(std::move(E)) + "\n");
lib/LTO/LTOBackend.cpp 338 report_fatal_error("Failed to open " + DwoFile + ": " + EC.message());
338 report_fatal_error("Failed to open " + DwoFile + ": " + EC.message());
lib/LTO/LTOCodeGenerator.cpp 277 emitError((Twine("could not write object file: ") + Filename + ": " +
277 emitError((Twine("could not write object file: ") + Filename + ": " +
277 emitError((Twine("could not write object file: ") + Filename + ": " +
395 (Twine("Linker asked to preserve available_externally global: '") +
396 GV.getName() + "'").str());
398 return emitWarning((Twine("Linker asked to preserve internal global: '") +
399 GV.getName() + "'").str());
lib/LTO/ThinLTOCodeGenerator.cpp 92 std::string SaveTempPath = (TempDir + llvm::Twine(count) + Suffix).str();
92 std::string SaveTempPath = (TempDir + llvm::Twine(count) + Suffix).str();
96 report_fatal_error(Twine("Failed to open ") + SaveTempPath +
96 report_fatal_error(Twine("Failed to open ") + SaveTempPath +
780 report_fatal_error(Twine("Failed to open ") + OutputName +
780 report_fatal_error(Twine("Failed to open ") + OutputName +
864 Twine(count) + "." + ArchName + ".thinlto.o");
864 Twine(count) + "." + ArchName + ".thinlto.o");
864 Twine(count) + "." + ArchName + ".thinlto.o");
889 report_fatal_error("Can't open output '" + OutputPath + "'\n");
944 report_fatal_error(Twine("Failed to open ") + SaveTempPath +
944 report_fatal_error(Twine("Failed to open ") + SaveTempPath +
lib/LineEditor/LineEditor.cpp 26 sys::path::append(Path, "." + ProgName + "-history");
lib/Linker/IRMover.cpp 873 "Linking globals named '" + SrcGV->getName() +
1267 return stringErr("linking module flags '" + ID->getString() +
1268 "': IDs have conflicting override values in '" +
1269 SrcM->getModuleIdentifier() + "' and '" +
1269 SrcM->getModuleIdentifier() + "' and '" +
1270 DstM.getModuleIdentifier() + "'");
1280 return stringErr("linking module flags '" + ID->getString() +
1281 "': IDs have conflicting behaviors in '" +
1282 SrcM->getModuleIdentifier() + "' and '" +
1282 SrcM->getModuleIdentifier() + "' and '" +
1283 DstM.getModuleIdentifier() + "'");
1300 return stringErr("linking module flags '" + ID->getString() +
1301 "': IDs have conflicting values in '" +
1302 SrcM->getModuleIdentifier() + "' and '" +
1302 SrcM->getModuleIdentifier() + "' and '" +
1303 DstM.getModuleIdentifier() + "'");
1362 return stringErr("linking module flags '" + Flag->getString() +
lib/Linker/LinkModules.cpp 137 return emitError("Linking COMDATs named '" + ComdatName +
144 "Linking COMDATs named '" + ComdatName +
171 return emitError("Linking COMDATs named '" + ComdatName +
181 return emitError("Linking COMDATs named '" + ComdatName +
198 return emitError("Linking COMDATs named '" + ComdatName +
205 return emitError("Linking COMDATs named '" + ComdatName +
324 return emitError("Linking globals named '" + Src.getName() +
lib/MC/ELFObjectWriter.cpp 1293 cast<MCSymbolELF>(Asm.getContext().getOrCreateSymbol(Prefix + Tail));
1310 Asm.getContext().reportError(SMLoc(), "versioned symbol " + AliasName +
1317 SMLoc(), llvm::Twine("multiple symbol versions defined for ") +
1459 Twine("symbol '") + SymB.getName() +
1459 Twine("symbol '") + SymB.getName() +
lib/MC/MCAssembler.cpp 366 OF.getLoc(), "invalid .org offset '" + Twine(TargetLocation) +
366 OF.getLoc(), "invalid .org offset '" + Twine(TargetLocation) +
367 "' (at offset '" + Twine(FragmentOffset) + "')");
367 "' (at offset '" + Twine(FragmentOffset) + "')");
486 report_fatal_error("unable to write NOP sequence of " +
487 Twine(DistanceToBoundary) + " bytes");
491 report_fatal_error("unable to write NOP sequence of " +
492 Twine(BundlePadding) + " bytes");
526 report_fatal_error("undefined .align directive, value size '" +
527 Twine(AF.getValueSize()) +
528 "' is not a divisor of padding size '" +
529 Twine(FragmentSize) + "'");
537 report_fatal_error("unable to write nop sequence of " +
538 Twine(Count) + " bytes");
617 report_fatal_error("unable to write nop sequence of " +
618 Twine(FragmentSize) + " bytes");
689 ELFSec->getSectionName() + "'");
lib/MC/MCCodeView.cpp 357 "Segment for file '" +
359 ->getContents()[Files[CurFileNum - 1].StringTableOffset]) +
lib/MC/MCContext.cpp 144 return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + FuncName +
144 return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + FuncName +
145 "$frame_escape_" + Twine(Idx));
149 return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + FuncName +
149 return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + FuncName +
154 return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + "__ehtable$" +
154 return getOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) + "__ehtable$" +
382 return getELFSection(Prefix + "." + Suffix, Type, Flags, EntrySize, Suffix);
382 return getELFSection(Prefix + "." + Suffix, Type, Flags, EntrySize, Suffix);
587 (Twine(Entry.second) + Path.substr(Entry.first.size())).str();
lib/MC/MCDwarf.cpp 582 std::make_pair((Directory + Twine('\0') + FileName).toStringRef(Buffer),
582 std::make_pair((Directory + Twine('\0') + FileName).toStringRef(Buffer),
lib/MC/MCELFStreamer.cpp 317 report_fatal_error("Symbol: " + Symbol->getName() +
471 SRE->getLoc(), Twine("Reference to undefined temporary symbol ") +
472 "`" + S->getName() + "`");
472 "`" + S->getName() + "`");
lib/MC/MCFragment.cpp 89 S.getName() + "'");
105 S.getName() + "'");
154 Expr->getLoc(), Twine("symbol '") + RefB->getSymbol().getName() +
154 Expr->getLoc(), Twine("symbol '") + RefB->getSymbol().getName() +
167 "Common symbol '" + ASym.getName() +
lib/MC/MCObjectStreamer.cpp 203 Loc, "value evaluated as " + Twine(AbsValue) + " is out of range.");
203 Loc, "value evaluated as " + Twine(AbsValue) + " is out of range.");
lib/MC/MCParser/AsmParser.cpp 953 printError(getTok().getLoc(), "unassigned file number: " +
954 Twine(Index) +
976 Sym->getName() + "' not defined");
1157 "invalid variant '" + Split.second + "'");
1201 return TokError("invalid variant '" + Split.second + "'");
1324 TokError("invalid variant on expression '" + getTok().getIdentifier() +
1428 return TokError("invalid variant '" + getTok().getIdentifier() + "'");
1432 return TokError("invalid modifier '" + getTok().getIdentifier() +
2038 return TokError(Twine(IDVal) +
2173 return TokError(Twine(IDVal) +
2722 return Error(IDLoc, "parameter named '" + FA.Name +
2723 "' does not exist for macro '" + M->Name + "'");
2723 "' does not exist for macro '" + M->Name + "'");
2749 "'" + M->Parameters[FAI].Name + "' in macro '" + M->Name + "'");
2749 "'" + M->Parameters[FAI].Name + "' in macro '" + M->Name + "'");
2749 "'" + M->Parameters[FAI].Name + "' in macro '" + M->Name + "'");
2900 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
2900 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
2994 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
2994 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3067 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3067 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3111 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3111 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3169 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3169 return addErrorSuffix(" in '" + Twine(IDVal) + "' directive");
3639 parseIntToken(FunctionId, "expected function id in '" + DirectiveName +
3648 parseIntToken(FileNumber, "expected integer in '" + DirectiveName +
3651 DirectiveName + "' directive") ||
3653 "unassigned file number in '" + DirectiveName + "' directive");
4347 return TokError("unexpected token in '" + Directive + "' directive");
4357 "unexpected token in '" + Directive + "' directive"))
4379 "Vararg parameter '" + Parameters.back().Name +
4389 return TokError("macro '" + Name + "' has multiple parameters"
4390 " named '" + Parameter.Name + "'");
4390 " named '" + Parameter.Name + "'");
4401 "'" + Parameter.Name + "' in macro '" + Name + "'");
4401 "'" + Parameter.Name + "' in macro '" + Name + "'");
4401 "'" + Parameter.Name + "' in macro '" + Name + "'");
4409 "for '" + Parameter.Name + "' in macro '" + Name + "'");
4409 "for '" + Parameter.Name + "' in macro '" + Name + "'");
4409 "for '" + Parameter.Name + "' in macro '" + Name + "'");
4409 "for '" + Parameter.Name + "' in macro '" + Name + "'");
4423 "'" + Parameter.Name + "' in macro '" + Name + "'");
4423 "'" + Parameter.Name + "' in macro '" + Name + "'");
4423 "'" + Parameter.Name + "' in macro '" + Name + "'");
4457 return TokError("unexpected token in '" + EndToken.getIdentifier() +
4476 return Error(DirectiveLoc, "macro '" + Name + "' is already defined");
4596 "unexpected token in '" + Directive + "' directive"))
4600 return TokError("unexpected '" + Directive + "' in file, "
4618 return TokError("unexpected token in '" + Directive + "' directive");
4629 return TokError("unexpected '" + Directive + "' in file, "
4646 return Error(DirectiveLoc, "macro '" + Name + "' is not defined");
4723 return addErrorSuffix("in '" + Twine(IDVal) + "' directive");
4723 return addErrorSuffix("in '" + Twine(IDVal) + "' directive");
4725 return addErrorSuffix("in '" + Twine(IDVal) + "' directive");
4725 return addErrorSuffix("in '" + Twine(IDVal) + "' directive");
4742 Warning(NumValuesLoc, "'" + Twine(IDVal) + "' directive with negative repeat count has no effect");
4742 Warning(NumValuesLoc, "'" + Twine(IDVal) + "' directive with negative repeat count has no effect");
4747 "unexpected token in '" + Twine(IDVal) + "' directive"))
4747 "unexpected token in '" + Twine(IDVal) + "' directive"))
4769 "unexpected token in '" + Twine(IDVal) + "' directive"))
4769 "unexpected token in '" + Twine(IDVal) + "' directive"))
4784 Warning(NumValuesLoc, "'" + Twine(IDVal) + "' directive with negative repeat count has no effect");
4784 Warning(NumValuesLoc, "'" + Twine(IDVal) + "' directive with negative repeat count has no effect");
4789 "unexpected token in '" + Twine(IDVal) + "' directive"))
4789 "unexpected token in '" + Twine(IDVal) + "' directive"))
4797 "unexpected token in '" + Twine(IDVal) + "' directive"))
4797 "unexpected token in '" + Twine(IDVal) + "' directive"))
4816 Warning(NumValuesLoc, "'" + Twine(IDVal) + "' directive with negative repeat count has no effect");
4816 Warning(NumValuesLoc, "'" + Twine(IDVal) + "' directive with negative repeat count has no effect");
4821 "unexpected token in '" + Twine(IDVal) + "' directive"))
4821 "unexpected token in '" + Twine(IDVal) + "' directive"))
4966 return Error(Loc, ".abort '" + Str + "' detected. Assembly stopping.");
5567 return Error(CountLoc, "unexpected token in '" + Dir + "' directive");
5572 "unexpected token in '" + Dir + "' directive"))
6048 return Parser.Error(EqualLoc, "Recursive use of '" + Name + "'");
6055 return Parser.Error(EqualLoc, "redefinition of '" + Name + "'");
6057 return Parser.Error(EqualLoc, "invalid assignment to '" + Name + "'");
6061 Name + "'");
lib/MC/MCParser/COFFAsmParser.cpp 572 return TokError(Twine("unrecognized COMDAT type '" + TypeId + "'"));
594 return Error(Loc, Twine("section '") + Current->getSectionName() +
594 return Error(Loc, Twine("section '") + Current->getSectionName() +
lib/MC/MCParser/DarwinAsmParser.cpp 612 return TokError("expected string in '" + Twine(IDVal) + "' directive");
612 return TokError("expected string in '" + Twine(IDVal) + "' directive");
624 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
624 return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
715 getParser().Warning(Loc, "section \"" + Section + "\" is deprecated",
717 getParser().Note(Loc, "change section name to \"" + NonCoalSection +
784 return Error(IDLoc, Twine("can't open secure log file: ") +
785 SecureLogFile + " (" + EC.message() + ")");
785 SecureLogFile + " (" + EC.message() + ")");
785 SecureLogFile + " (" + EC.message() + ")");
1017 return TokError(Twine("invalid ") + VersionName +
1017 return TokError(Twine("invalid ") + VersionName +
1021 return TokError(Twine("invalid ") + VersionName + " major version number");
1021 return TokError(Twine("invalid ") + VersionName + " major version number");
1025 return TokError(Twine(VersionName) +
1030 return TokError(Twine("invalid ") + VersionName +
1030 return TokError(Twine("invalid ") + VersionName +
1034 return TokError(Twine("invalid ") + VersionName + " minor version number");
1034 return TokError(Twine("invalid ") + VersionName + " minor version number");
1046 return TokError(Twine("invalid ") + ComponentName +
1046 return TokError(Twine("invalid ") + ComponentName +
1050 return TokError(Twine("invalid ") + ComponentName + " version number");
1050 return TokError(Twine("invalid ") + ComponentName + " version number");
1097 Warning(Loc, Twine(Directive) +
1098 (Arg.empty() ? Twine() : Twine(' ') + Arg) +
1098 (Arg.empty() ? Twine() : Twine(' ') + Arg) +
1099 " used while targeting " + Target.getOSName());
1136 return addErrorSuffix(Twine(" in '") + Directive + "' directive");
1136 return addErrorSuffix(Twine(" in '") + Directive + "' directive");
lib/MC/MCParser/WasmAsmParser.cpp 71 return Parser->Error(Tok.getLoc(), Msg + Tok.getString());
lib/MC/MCRegisterInfo.cpp 120 report_fatal_error("unknown codeview register " + (RegNum < getNumRegs()
lib/MC/MCSectionELF.cpp 160 report_fatal_error("unsupported type 0x" + Twine::utohexstr(Type) +
160 report_fatal_error("unsupported type 0x" + Twine::utohexstr(Type) +
161 " for section " + getSectionName());
lib/MC/MCStreamer.cpp 252 Context.getOrCreateSymbol(Prefix + "line_table_start" + Twine(CUID)));
788 (MainCFISecCOFF->getSectionName() + "$" +
lib/MC/MCWinCOFFStreamer.cpp 151 Error("storage class value '" + Twine(StorageClass) +
151 Error("storage class value '" + Twine(StorageClass) +
167 Error("type value '" + Twine(Type) + "' out of range");
167 Error("type value '" + Twine(Type) + "' out of range");
lib/MC/MachObjectWriter.cpp 98 S.getName() + "'");
103 Target.getSymA()->getSymbol().getName() + "'");
106 Target.getSymB()->getSymbol().getName() + "'");
496 report_fatal_error("indirect symbol '" + Symbol.getName() +
lib/MC/WasmObjectWriter.cpp 450 Twine("symbol '") + SymB.getName() +
450 Twine("symbol '") + SymB.getName() +
1264 report_fatal_error("section name and begin symbol should match: " +
lib/MC/WinCOFFObjectWriter.cpp 373 std::string WeakName = (".weak." + MCSym.getName() + ".default").str();
706 Twine("symbol '") + A.getName() +
706 Twine("symbol '") + A.getName() +
712 Twine("assembler label '") + A.getName() +
712 Twine("assembler label '") + A.getName() +
731 Twine("symbol '") + B->getName() +
731 Twine("symbol '") + B->getName() +
1017 SMLoc(), Twine("cannot make section ") + MCSec.getSectionName() +
1017 SMLoc(), Twine("cannot make section ") + MCSec.getSectionName() +
1018 Twine(" associative with sectionless symbol ") +
lib/Object/Archive.cpp 70 *Err = malformedError(Msg + "at offset " + Twine(Offset));
72 *Err = malformedError(Msg + "for " + NameOrErr.get());
90 *Err = malformedError(Msg + "at offset " + Twine(Offset));
92 *Err = malformedError(Msg + "for " + NameOrErr.get());
108 "header at offset " + Twine(Offset));
137 "for archive member header at offset " +
165 "archive member header at offset " +
173 return malformedError("long name offset " + Twine(StringOffset) + " past "
173 return malformedError("long name offset " + Twine(StringOffset) + " past "
175 "header at offset " + Twine(ArchiveOffset));
184 return malformedError("string table at long name offset " +
185 Twine(StringOffset) + "not terminated");
203 "archive member header at offset " +
209 return malformedError("long name length: " + Twine(NameLength) +
209 return malformedError("long name length: " + Twine(NameLength) +
211 "for archive member header at offset " +
239 "member header at offset " + Twine(Offset));
257 "archive member header at offset " + Twine(Offset));
277 "archive member header at offset " + Twine(Offset));
297 "archive member header at offset " + Twine(Offset));
316 "archive member header at offset " + Twine(Offset));
386 "archive member header at offset " +
476 return malformedError(Msg + "at offset " + Twine(Offset));
478 return malformedError(Msg + NameOrErr.get());
lib/Object/ArchiveWriter.cpp 170 printWithSpacePadding(Out, Twine(Name) + "/", 16);
182 printWithSpacePadding(Out, Twine("#1/") + Twine(NameWithPadding), 16);
lib/Object/COFFImportFile.cpp 122 StringRef(Twine(S + ": replacing '" + From +
122 StringRef(Twine(S + ": replacing '" + From +
123 "' with '" + To + "' failed").str()), object_error::parse_failed);
123 "' with '" + To + "' failed").str()), object_error::parse_failed);
126 return (Twine(S.substr(0, Pos)) + To + S.substr(Pos + From.size())).str();
126 return (Twine(S.substr(0, Pos)) + To + S.substr(Pos + From.size())).str();
151 NullThunkSymbolName(("\x7f" + Library + "_NULL_THUNK_DATA").str()) {}
562 writeStringTable(Buffer, {(Prefix + Sym).str(),
563 (Prefix + Weak).str()});
lib/Object/ELF.cpp 575 return createError("virtual address is not in any segment: 0x" +
581 return createError("virtual address is not in any segment: 0x" +
lib/Object/MachOObjectFile.cpp 61 return make_error<GenericBinaryError>("truncated or malformed object (" +
62 Msg + ")",
187 return malformedError("load command " + Twine(LoadCommandIndex) +
187 return malformedError("load command " + Twine(LoadCommandIndex) +
190 return malformedError("load command " + Twine(LoadCommandIndex) +
190 return malformedError("load command " + Twine(LoadCommandIndex) +
214 return malformedError("load command " + Twine(LoadCommandIndex + 1) +
214 return malformedError("load command " + Twine(LoadCommandIndex + 1) +
251 return malformedError(Twine(Name) + " at offset " + Twine(Offset) +
251 return malformedError(Twine(Name) + " at offset " + Twine(Offset) +
251 return malformedError(Twine(Name) + " at offset " + Twine(Offset) +
252 " with a size of " + Twine(Size) + ", overlaps " +
252 " with a size of " + Twine(Size) + ", overlaps " +
252 " with a size of " + Twine(Size) + ", overlaps " +
253 E.Name + " at offset " + Twine(E.Offset) + " with "
253 E.Name + " at offset " + Twine(E.Offset) + " with "
253 E.Name + " at offset " + Twine(E.Offset) + " with "
254 "a size of " + Twine(E.Size));
280 return malformedError("load command " + Twine(LoadCommandIndex) +
280 return malformedError("load command " + Twine(LoadCommandIndex) +
281 " " + CmdName + " cmdsize too small");
281 " " + CmdName + " cmdsize too small");
288 return malformedError("load command " + Twine(LoadCommandIndex) +
288 return malformedError("load command " + Twine(LoadCommandIndex) +
289 " inconsistent cmdsize in " + CmdName +
289 " inconsistent cmdsize in " + CmdName +
303 return malformedError("offset field of section " + Twine(J) + " in " +
303 return malformedError("offset field of section " + Twine(J) + " in " +
303 return malformedError("offset field of section " + Twine(J) + " in " +
304 CmdName + " command " + Twine(LoadCommandIndex) +
304 CmdName + " command " + Twine(LoadCommandIndex) +
304 CmdName + " command " + Twine(LoadCommandIndex) +
311 return malformedError("offset field of section " + Twine(J) + " in " +
311 return malformedError("offset field of section " + Twine(J) + " in " +
311 return malformedError("offset field of section " + Twine(J) + " in " +
312 CmdName + " command " + Twine(LoadCommandIndex) +
312 CmdName + " command " + Twine(LoadCommandIndex) +
312 CmdName + " command " + Twine(LoadCommandIndex) +
321 return malformedError("offset field plus size field of section " +
322 Twine(J) + " in " + CmdName + " command " +
322 Twine(J) + " in " + CmdName + " command " +
322 Twine(J) + " in " + CmdName + " command " +
322 Twine(J) + " in " + CmdName + " command " +
323 Twine(LoadCommandIndex) +
330 return malformedError("size field of section " +
331 Twine(J) + " in " + CmdName + " command " +
331 Twine(J) + " in " + CmdName + " command " +
331 Twine(J) + " in " + CmdName + " command " +
331 Twine(J) + " in " + CmdName + " command " +
332 Twine(LoadCommandIndex) +
337 return malformedError("addr field of section " + Twine(J) + " in " +
337 return malformedError("addr field of section " + Twine(J) + " in " +
337 return malformedError("addr field of section " + Twine(J) + " in " +
338 CmdName + " command " + Twine(LoadCommandIndex) +
338 CmdName + " command " + Twine(LoadCommandIndex) +
338 CmdName + " command " + Twine(LoadCommandIndex) +
345 return malformedError("addr field plus size of section " + Twine(J) +
345 return malformedError("addr field plus size of section " + Twine(J) +
346 " in " + CmdName + " command " +
346 " in " + CmdName + " command " +
346 " in " + CmdName + " command " +
347 Twine(LoadCommandIndex) +
358 return malformedError("reloff field of section " + Twine(J) + " in " +
358 return malformedError("reloff field of section " + Twine(J) + " in " +
358 return malformedError("reloff field of section " + Twine(J) + " in " +
359 CmdName + " command " + Twine(LoadCommandIndex) +
359 CmdName + " command " + Twine(LoadCommandIndex) +
359 CmdName + " command " + Twine(LoadCommandIndex) +
366 "struct relocation_info) of section " +
367 Twine(J) + " in " + CmdName + " command " +
367 Twine(J) + " in " + CmdName + " command " +
367 Twine(J) + " in " + CmdName + " command " +
367 Twine(J) + " in " + CmdName + " command " +
368 Twine(LoadCommandIndex) +
377 return malformedError("load command " + Twine(LoadCommandIndex) +
377 return malformedError("load command " + Twine(LoadCommandIndex) +
378 " fileoff field in " + CmdName +
378 " fileoff field in " + CmdName +
383 return malformedError("load command " + Twine(LoadCommandIndex) +
383 return malformedError("load command " + Twine(LoadCommandIndex) +
384 " fileoff field plus filesize field in " +
385 CmdName + " extends past the end of the file");
387 return malformedError("load command " + Twine(LoadCommandIndex) +
387 return malformedError("load command " + Twine(LoadCommandIndex) +
388 " filesize field in " + CmdName +
388 " filesize field in " + CmdName +
403 return malformedError("load command " + Twine(LoadCommandIndex) +
403 return malformedError("load command " + Twine(LoadCommandIndex) +
412 return malformedError("LC_SYMTAB command " + Twine(LoadCommandIndex) +
412 return malformedError("LC_SYMTAB command " + Twine(LoadCommandIndex) +
416 return malformedError("symoff field of LC_SYMTAB command " +
417 Twine(LoadCommandIndex) + " extends past the end "
431 return malformedError("symoff field plus nsyms field times sizeof(" +
432 Twine(struct_nlist_name) + ") of LC_SYMTAB command " +
432 Twine(struct_nlist_name) + ") of LC_SYMTAB command " +
433 Twine(LoadCommandIndex) + " extends past the end "
439 return malformedError("stroff field of LC_SYMTAB command " +
440 Twine(LoadCommandIndex) + " extends past the end "
446 "command " + Twine(LoadCommandIndex) + " extends "
446 "command " + Twine(LoadCommandIndex) + " extends "
461 return malformedError("load command " + Twine(LoadCommandIndex) +
461 return malformedError("load command " + Twine(LoadCommandIndex) +
471 return malformedError("LC_DYSYMTAB command " + Twine(LoadCommandIndex) +
471 return malformedError("LC_DYSYMTAB command " + Twine(LoadCommandIndex) +
475 return malformedError("tocoff field of LC_DYSYMTAB command " +
476 Twine(LoadCommandIndex) + " extends past the end of "
483 "dylib_table_of_contents) of LC_DYSYMTAB command " +
484 Twine(LoadCommandIndex) + " extends past the end of "
492 return malformedError("modtaboff field of LC_DYSYMTAB command " +
493 Twine(LoadCommandIndex) + " extends past the end of "
508 return malformedError("modtaboff field plus nmodtab field times sizeof(" +
509 Twine(struct_dylib_module_name) + ") of LC_DYSYMTAB "
510 "command " + Twine(LoadCommandIndex) + " extends "
510 "command " + Twine(LoadCommandIndex) + " extends "
517 return malformedError("extrefsymoff field of LC_DYSYMTAB command " +
518 Twine(LoadCommandIndex) + " extends past the end of "
526 "command " + Twine(LoadCommandIndex) + " extends "
526 "command " + Twine(LoadCommandIndex) + " extends "
534 return malformedError("indirectsymoff field of LC_DYSYMTAB command " +
535 Twine(LoadCommandIndex) + " extends past the end of "
542 "sizeof(uint32_t) of LC_DYSYMTAB command " +
543 Twine(LoadCommandIndex) + " extends past the end of "
551 return malformedError("extreloff field of LC_DYSYMTAB command " +
552 Twine(LoadCommandIndex) + " extends past the end of "
559 "(struct relocation_info) of LC_DYSYMTAB command " +
560 Twine(LoadCommandIndex) + " extends past the end of "
568 return malformedError("locreloff field of LC_DYSYMTAB command " +
569 Twine(LoadCommandIndex) + " extends past the end of "
576 "(struct relocation_info) of LC_DYSYMTAB command " +
577 Twine(LoadCommandIndex) + " extends past the end of "
595 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
595 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
595 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
596 CmdName + " cmdsize too small");
598 return malformedError("more than one " + Twine(CmdName) + " command");
598 return malformedError("more than one " + Twine(CmdName) + " command");
605 return malformedError(Twine(CmdName) + " command " +
605 return malformedError(Twine(CmdName) + " command " +
606 Twine(LoadCommandIndex) + " has incorrect cmdsize");
609 return malformedError("dataoff field of " + Twine(CmdName) + " command " +
609 return malformedError("dataoff field of " + Twine(CmdName) + " command " +
609 return malformedError("dataoff field of " + Twine(CmdName) + " command " +
610 Twine(LoadCommandIndex) + " extends past the end of "
615 return malformedError("dataoff field plus datasize field of " +
616 Twine(CmdName) + " command " +
616 Twine(CmdName) + " command " +
617 Twine(LoadCommandIndex) + " extends past the end of "
632 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
632 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
632 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
633 CmdName + " cmdsize too small");
643 return malformedError(Twine(CmdName) + " command " +
643 return malformedError(Twine(CmdName) + " command " +
644 Twine(LoadCommandIndex) + " has incorrect cmdsize");
647 return malformedError("rebase_off field of " + Twine(CmdName) +
647 return malformedError("rebase_off field of " + Twine(CmdName) +
648 " command " + Twine(LoadCommandIndex) + " extends "
648 " command " + Twine(LoadCommandIndex) + " extends "
653 return malformedError("rebase_off field plus rebase_size field of " +
654 Twine(CmdName) + " command " +
654 Twine(CmdName) + " command " +
655 Twine(LoadCommandIndex) + " extends past the end of "
662 return malformedError("bind_off field of " + Twine(CmdName) +
662 return malformedError("bind_off field of " + Twine(CmdName) +
663 " command " + Twine(LoadCommandIndex) + " extends "
663 " command " + Twine(LoadCommandIndex) + " extends "
668 return malformedError("bind_off field plus bind_size field of " +
669 Twine(CmdName) + " command " +
669 Twine(CmdName) + " command " +
670 Twine(LoadCommandIndex) + " extends past the end of "
677 return malformedError("weak_bind_off field of " + Twine(CmdName) +
677 return malformedError("weak_bind_off field of " + Twine(CmdName) +
678 " command " + Twine(LoadCommandIndex) + " extends "
678 " command " + Twine(LoadCommandIndex) + " extends "
683 return malformedError("weak_bind_off field plus weak_bind_size field of " +
684 Twine(CmdName) + " command " +
684 Twine(CmdName) + " command " +
685 Twine(LoadCommandIndex) + " extends past the end of "
692 return malformedError("lazy_bind_off field of " + Twine(CmdName) +
692 return malformedError("lazy_bind_off field of " + Twine(CmdName) +
693 " command " + Twine(LoadCommandIndex) + " extends "
693 " command " + Twine(LoadCommandIndex) + " extends "
698 return malformedError("lazy_bind_off field plus lazy_bind_size field of " +
699 Twine(CmdName) + " command " +
699 Twine(CmdName) + " command " +
700 Twine(LoadCommandIndex) + " extends past the end of "
707 return malformedError("export_off field of " + Twine(CmdName) +
707 return malformedError("export_off field of " + Twine(CmdName) +
708 " command " + Twine(LoadCommandIndex) + " extends "
708 " command " + Twine(LoadCommandIndex) + " extends "
713 return malformedError("export_off field plus export_size field of " +
714 Twine(CmdName) + " command " +
714 Twine(CmdName) + " command " +
715 Twine(LoadCommandIndex) + " extends past the end of "
729 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
729 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
729 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
730 CmdName + " cmdsize too small");
736 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
736 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
736 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
737 CmdName + " name.offset field too small, not past "
740 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
740 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
740 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
741 CmdName + " name.offset field extends past the end "
751 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
751 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
751 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
752 CmdName + " library name extends past the end of the "
778 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
778 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
778 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
779 CmdName + " cmdsize too small");
785 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
785 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
785 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
786 CmdName + " name.offset field too small, not past "
789 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
789 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
789 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
790 CmdName + " name.offset field extends past the end "
800 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
800 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
800 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
801 CmdName + " dyld name extends past the end of the "
811 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
811 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
811 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
812 CmdName + " has incorrect cmdsize");
826 return malformedError("load command " + Twine(LoadCommandIndex) +
826 return malformedError("load command " + Twine(LoadCommandIndex) +
834 return malformedError("offset field of LC_NOTE command " +
835 Twine(LoadCommandIndex) + " extends "
840 return malformedError("size field plus offset field of LC_NOTE command " +
841 Twine(LoadCommandIndex) + " extends past the end of "
862 return malformedError("load command " + Twine(LoadCommandIndex) +
862 return malformedError("load command " + Twine(LoadCommandIndex) +
877 return malformedError("load command " + Twine(LoadCommandIndex) +
877 return malformedError("load command " + Twine(LoadCommandIndex) +
884 return malformedError("load command " + Twine(LoadCommandIndex) +
884 return malformedError("load command " + Twine(LoadCommandIndex) +
888 return malformedError("load command " + Twine(LoadCommandIndex) +
888 return malformedError("load command " + Twine(LoadCommandIndex) +
899 return malformedError("load command " + Twine(LoadCommandIndex) +
899 return malformedError("load command " + Twine(LoadCommandIndex) +
915 return malformedError("cryptoff field of " + Twine(CmdName) +
915 return malformedError("cryptoff field of " + Twine(CmdName) +
916 " command " + Twine(LoadCommandIndex) + " extends "
916 " command " + Twine(LoadCommandIndex) + " extends "
921 return malformedError("cryptoff field plus cryptsize field of " +
922 Twine(CmdName) + " command " +
922 Twine(CmdName) + " command " +
923 Twine(LoadCommandIndex) + " extends past the end of "
933 return malformedError("load command " + Twine(LoadCommandIndex) +
933 return malformedError("load command " + Twine(LoadCommandIndex) +
954 return malformedError("load command " + Twine(LoadCommandIndex) +
954 return malformedError("load command " + Twine(LoadCommandIndex) +
955 " LC_LINKER_OPTION string #" + Twine(i) +
955 " LC_LINKER_OPTION string #" + Twine(i) +
963 return malformedError("load command " + Twine(LoadCommandIndex) +
963 return malformedError("load command " + Twine(LoadCommandIndex) +
964 " LC_LINKER_OPTION string count " + Twine(L.count) +
964 " LC_LINKER_OPTION string count " + Twine(L.count) +
975 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
975 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
975 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
976 CmdName + " " + PathFieldName + ".offset field too "
976 CmdName + " " + PathFieldName + ".offset field too "
976 CmdName + " " + PathFieldName + ".offset field too "
977 "small, not past the end of the " + CmdStructName);
979 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
979 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
979 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
980 CmdName + " " + PathFieldName + ".offset field "
980 CmdName + " " + PathFieldName + ".offset field "
980 CmdName + " " + PathFieldName + ".offset field "
990 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
990 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
990 return malformedError("load command " + Twine(LoadCommandIndex) + " " +
991 CmdName + " " + PathFieldName + " name extends past "
991 CmdName + " " + PathFieldName + " name extends past "
991 CmdName + " " + PathFieldName + " name extends past "
1001 return malformedError("load command " + Twine(LoadCommandIndex) +
1001 return malformedError("load command " + Twine(LoadCommandIndex) +
1002 CmdName + " cmdsize too small");
1014 return malformedError("load command " + Twine(LoadCommandIndex) +
1014 return malformedError("load command " + Twine(LoadCommandIndex) +
1015 "flavor in " + CmdName + " extends past end of "
1015 "flavor in " + CmdName + " extends past end of "
1024 return malformedError("load command " + Twine(LoadCommandIndex) +
1024 return malformedError("load command " + Twine(LoadCommandIndex) +
1025 " count in " + CmdName + " extends past end of "
1025 " count in " + CmdName + " extends past end of "
1036 return malformedError("load command " + Twine(LoadCommandIndex) +
1036 return malformedError("load command " + Twine(LoadCommandIndex) +
1038 "flavor number " + Twine(nflavor) + " which is "
1038 "flavor number " + Twine(nflavor) + " which is "
1039 "a x86_THREAD_STATE32 flavor in " + CmdName +
1039 "a x86_THREAD_STATE32 flavor in " + CmdName +
1042 return malformedError("load command " + Twine(LoadCommandIndex) +
1042 return malformedError("load command " + Twine(LoadCommandIndex) +
1044 "command in " + CmdName + " command");
1044 "command in " + CmdName + " command");
1047 return malformedError("load command " + Twine(LoadCommandIndex) +
1047 return malformedError("load command " + Twine(LoadCommandIndex) +
1048 " unknown flavor (" + Twine(flavor) + ") for "
1048 " unknown flavor (" + Twine(flavor) + ") for "
1049 "flavor number " + Twine(nflavor) + " in " +
1049 "flavor number " + Twine(nflavor) + " in " +
1049 "flavor number " + Twine(nflavor) + " in " +
1050 CmdName + " command");
1055 return malformedError("load command " + Twine(LoadCommandIndex) +
1055 return malformedError("load command " + Twine(LoadCommandIndex) +
1057 "flavor number " + Twine(nflavor) + " which is "
1057 "flavor number " + Twine(nflavor) + " which is "
1058 "a x86_THREAD_STATE flavor in " + CmdName +
1058 "a x86_THREAD_STATE flavor in " + CmdName +
1061 return malformedError("load command " + Twine(LoadCommandIndex) +
1061 return malformedError("load command " + Twine(LoadCommandIndex) +
1063 "command in " + CmdName + " command");
1063 "command in " + CmdName + " command");
1067 return malformedError("load command " + Twine(LoadCommandIndex) +
1067 return malformedError("load command " + Twine(LoadCommandIndex) +
1069 "flavor number " + Twine(nflavor) + " which is "
1069 "flavor number " + Twine(nflavor) + " which is "
1070 "a x86_FLOAT_STATE flavor in " + CmdName +
1070 "a x86_FLOAT_STATE flavor in " + CmdName +
1073 return malformedError("load command " + Twine(LoadCommandIndex) +
1073 return malformedError("load command " + Twine(LoadCommandIndex) +
1075 "command in " + CmdName + " command");
1075 "command in " + CmdName + " command");
1079 return malformedError("load command " + Twine(LoadCommandIndex) +
1079 return malformedError("load command " + Twine(LoadCommandIndex) +
1081 "flavor number " + Twine(nflavor) + " which is "
1081 "flavor number " + Twine(nflavor) + " which is "
1082 "a x86_EXCEPTION_STATE flavor in " + CmdName +
1082 "a x86_EXCEPTION_STATE flavor in " + CmdName +
1085 return malformedError("load command " + Twine(LoadCommandIndex) +
1085 return malformedError("load command " + Twine(LoadCommandIndex) +
1087 "command in " + CmdName + " command");
1087 "command in " + CmdName + " command");
1091 return malformedError("load command " + Twine(LoadCommandIndex) +
1091 return malformedError("load command " + Twine(LoadCommandIndex) +
1093 "flavor number " + Twine(nflavor) + " which is "
1093 "flavor number " + Twine(nflavor) + " which is "
1094 "a x86_THREAD_STATE64 flavor in " + CmdName +
1094 "a x86_THREAD_STATE64 flavor in " + CmdName +
1097 return malformedError("load command " + Twine(LoadCommandIndex) +
1097 return malformedError("load command " + Twine(LoadCommandIndex) +
1099 "command in " + CmdName + " command");
1099 "command in " + CmdName + " command");
1103 return malformedError("load command " + Twine(LoadCommandIndex) +
1103 return malformedError("load command " + Twine(LoadCommandIndex) +
1105 "flavor number " + Twine(nflavor) + " which is "
1105 "flavor number " + Twine(nflavor) + " which is "
1106 "a x86_EXCEPTION_STATE64 flavor in " + CmdName +
1106 "a x86_EXCEPTION_STATE64 flavor in " + CmdName +
1109 return malformedError("load command " + Twine(LoadCommandIndex) +
1109 return malformedError("load command " + Twine(LoadCommandIndex) +
1111 "command in " + CmdName + " command");
1111 "command in " + CmdName + " command");
1114 return malformedError("load command " + Twine(LoadCommandIndex) +
1114 return malformedError("load command " + Twine(LoadCommandIndex) +
1115 " unknown flavor (" + Twine(flavor) + ") for "
1115 " unknown flavor (" + Twine(flavor) + ") for "
1116 "flavor number " + Twine(nflavor) + " in " +
1116 "flavor number " + Twine(nflavor) + " in " +
1116 "flavor number " + Twine(nflavor) + " in " +
1117 CmdName + " command");
1122 return malformedError("load command " + Twine(LoadCommandIndex) +
1122 return malformedError("load command " + Twine(LoadCommandIndex) +
1124 "flavor number " + Twine(nflavor) + " which is "
1124 "flavor number " + Twine(nflavor) + " which is "
1125 "a ARM_THREAD_STATE flavor in " + CmdName +
1125 "a ARM_THREAD_STATE flavor in " + CmdName +
1128 return malformedError("load command " + Twine(LoadCommandIndex) +
1128 return malformedError("load command " + Twine(LoadCommandIndex) +
1130 "command in " + CmdName + " command");
1130 "command in " + CmdName + " command");
1133 return malformedError("load command " + Twine(LoadCommandIndex) +
1133 return malformedError("load command " + Twine(LoadCommandIndex) +
1134 " unknown flavor (" + Twine(flavor) + ") for "
1134 " unknown flavor (" + Twine(flavor) + ") for "
1135 "flavor number " + Twine(nflavor) + " in " +
1135 "flavor number " + Twine(nflavor) + " in " +
1135 "flavor number " + Twine(nflavor) + " in " +
1136 CmdName + " command");
1142 return malformedError("load command " + Twine(LoadCommandIndex) +
1142 return malformedError("load command " + Twine(LoadCommandIndex) +
1144 "flavor number " + Twine(nflavor) + " which is "
1144 "flavor number " + Twine(nflavor) + " which is "
1145 "a ARM_THREAD_STATE64 flavor in " + CmdName +
1145 "a ARM_THREAD_STATE64 flavor in " + CmdName +
1148 return malformedError("load command " + Twine(LoadCommandIndex) +
1148 return malformedError("load command " + Twine(LoadCommandIndex) +
1150 "command in " + CmdName + " command");
1150 "command in " + CmdName + " command");
1153 return malformedError("load command " + Twine(LoadCommandIndex) +
1153 return malformedError("load command " + Twine(LoadCommandIndex) +
1154 " unknown flavor (" + Twine(flavor) + ") for "
1154 " unknown flavor (" + Twine(flavor) + ") for "
1155 "flavor number " + Twine(nflavor) + " in " +
1155 "flavor number " + Twine(nflavor) + " in " +
1155 "flavor number " + Twine(nflavor) + " in " +
1156 CmdName + " command");
1161 return malformedError("load command " + Twine(LoadCommandIndex) +
1161 return malformedError("load command " + Twine(LoadCommandIndex) +
1163 "flavor number " + Twine(nflavor) + " which is "
1163 "flavor number " + Twine(nflavor) + " which is "
1164 "a PPC_THREAD_STATE flavor in " + CmdName +
1164 "a PPC_THREAD_STATE flavor in " + CmdName +
1167 return malformedError("load command " + Twine(LoadCommandIndex) +
1167 return malformedError("load command " + Twine(LoadCommandIndex) +
1169 "command in " + CmdName + " command");
1169 "command in " + CmdName + " command");
1172 return malformedError("load command " + Twine(LoadCommandIndex) +
1172 return malformedError("load command " + Twine(LoadCommandIndex) +
1173 " unknown flavor (" + Twine(flavor) + ") for "
1173 " unknown flavor (" + Twine(flavor) + ") for "
1174 "flavor number " + Twine(nflavor) + " in " +
1174 "flavor number " + Twine(nflavor) + " in " +
1174 "flavor number " + Twine(nflavor) + " in " +
1175 CmdName + " command");
1178 return malformedError("unknown cputype (" + Twine(cputype) + ") load "
1178 return malformedError("unknown cputype (" + Twine(cputype) + ") load "
1179 "command " + Twine(LoadCommandIndex) + " for " +
1179 "command " + Twine(LoadCommandIndex) + " for " +
1179 "command " + Twine(LoadCommandIndex) + " for " +
1180 CmdName + " command can't be checked");
1194 return malformedError("load command " + Twine(LoadCommandIndex) +
1194 return malformedError("load command " + Twine(LoadCommandIndex) +
1204 return malformedError("offset field of LC_TWOLEVEL_HINTS command " +
1205 Twine(LoadCommandIndex) + " extends past the end of "
1212 "twolevel_hint) field of LC_TWOLEVEL_HINTS command " +
1213 Twine(LoadCommandIndex) + " extends past the end of "
1279 Err = malformedError("universal header architecture: " +
1280 Twine(UniversalIndex) + "'s cputype does not match "
1318 Err = malformedError("load command " + Twine(I) + " cmdsize not a "
1318 Err = malformedError("load command " + Twine(I) + " cmdsize not a "
1325 Err = malformedError("load command " + Twine(I) + " cmdsize not a "
1325 Err = malformedError("load command " + Twine(I) + " cmdsize not a "
1379 Err = malformedError("LC_UUID command " + Twine(I) + " has incorrect "
1379 Err = malformedError("LC_UUID command " + Twine(I) + " has incorrect "
1459 Err = malformedError("LC_SOURCE_VERSION command " + Twine(I) +
1459 Err = malformedError("LC_SOURCE_VERSION command " + Twine(I) +
1470 Err = malformedError("LC_MAIN command " + Twine(I) +
1470 Err = malformedError("LC_MAIN command " + Twine(I) +
1481 Err = malformedError("LC_ENCRYPTION_INFO command " + Twine(I) +
1481 Err = malformedError("LC_ENCRYPTION_INFO command " + Twine(I) +
1492 Err = malformedError("LC_ENCRYPTION_INFO_64 command " + Twine(I) +
1492 Err = malformedError("LC_ENCRYPTION_INFO_64 command " + Twine(I) +
1506 Err = malformedError("load command " + Twine(I) +
1506 Err = malformedError("load command " + Twine(I) +
1519 Err = malformedError("load command " + Twine(I) +
1519 Err = malformedError("load command " + Twine(I) +
1532 Err = malformedError("load command " + Twine(I) +
1532 Err = malformedError("load command " + Twine(I) +
1545 Err = malformedError("load command " + Twine(I) +
1545 Err = malformedError("load command " + Twine(I) +
1557 Err = malformedError("LC_ROUTINES command " + Twine(I) +
1557 Err = malformedError("LC_ROUTINES command " + Twine(I) +
1569 Err = malformedError("LC_ROUTINES_64 command " + Twine(I) +
1569 Err = malformedError("LC_ROUTINES_64 command " + Twine(I) +
1596 Err = malformedError("load command " + Twine(I) + " for cmd value of: " +
1596 Err = malformedError("load command " + Twine(I) + " for cmd value of: " +
1596 Err = malformedError("load command " + Twine(I) + " for cmd value of: " +
1597 Twine(Load.C.cmd) + " is obsolete and not "
1710 return malformedError("bad section index: " + Twine((int)NSect) +
1710 return malformedError("bad section index: " + Twine((int)NSect) +
1711 " for symbol at index " + Twine(SymbolIndex));
1715 return malformedError("bad n_value: " + Twine((int)NValue) + " past "
1715 return malformedError("bad n_value: " + Twine((int)NValue) + " past "
1717 "index " + Twine(SymbolIndex));
1727 return malformedError("bad library ordinal: " + Twine(LibraryOrdinal) +
1727 return malformedError("bad library ordinal: " + Twine(LibraryOrdinal) +
1728 " for symbol at index " + Twine(SymbolIndex));
1733 return malformedError("bad string table index: " + Twine((int)NStrx) +
1733 return malformedError("bad string table index: " + Twine((int)NStrx) +
1735 "index " + Twine(SymbolIndex));
1757 return malformedError("bad string index: " + Twine(Entry.n_strx) +
1757 return malformedError("bad string index: " + Twine(Entry.n_strx) +
1758 " for symbol at index " + Twine(getSymbolIndex(Symb)));
1888 return malformedError("bad section index: " + Twine((int)index) +
1888 return malformedError("bad section index: " + Twine((int)index) +
1889 " for symbol at index " + Twine(getSymbolIndex(Symb)));
1986 return malformedError("bad section index: " + Twine((int)SectionIndex));
2860 *E = malformedError("export info size " + Twine(error) +
2860 *E = malformedError("export info size " + Twine(error) +
2861 " in export trie data at node: 0x" +
2870 "export info size: 0x" + Twine::utohexstr(ExportInfoSize) +
2870 "export info size: 0x" + Twine::utohexstr(ExportInfoSize) +
2871 " in export trie data at node: 0x" + Twine::utohexstr(offset) +
2871 " in export trie data at node: 0x" + Twine::utohexstr(offset) +
2880 *E = malformedError("flags " + Twine(error) +
2880 *E = malformedError("flags " + Twine(error) +
2881 " in export trie data at node: 0x" +
2892 "unsupported exported symbol kind: " + Twine((int)Kind) +
2892 "unsupported exported symbol kind: " + Twine((int)Kind) +
2893 " in flags: 0x" + Twine::utohexstr(State.Flags) +
2893 " in flags: 0x" + Twine::utohexstr(State.Flags) +
2894 " in export trie data at node: 0x" + Twine::utohexstr(offset));
2902 *E = malformedError("dylib ordinal of re-export " + Twine(error) +
2902 *E = malformedError("dylib ordinal of re-export " + Twine(error) +
2903 " in export trie data at node: 0x" +
2911 "bad library ordinal: " + Twine((int)State.Other) + " (max " +
2911 "bad library ordinal: " + Twine((int)State.Other) + " (max " +
2911 "bad library ordinal: " + Twine((int)State.Other) + " (max " +
2912 Twine((int)O->getLibraryCount()) +
2913 ") in export trie data at node: 0x" + Twine::utohexstr(offset));
2925 "node: 0x" +
2926 Twine::utohexstr(offset) +
2935 "node: 0x" +
2936 Twine::utohexstr(offset) +
2946 *E = malformedError("address " + Twine(error) +
2946 *E = malformedError("address " + Twine(error) +
2947 " in export trie data at node: 0x" +
2955 *E = malformedError("resolver of stub and resolver " + Twine(error) +
2955 *E = malformedError("resolver of stub and resolver " + Twine(error) +
2956 " in export trie data at node: 0x" +
2965 "inconsistant export info size: 0x" +
2966 Twine::utohexstr(ExportInfoSize) + " where actual size was: 0x" +
2966 Twine::utohexstr(ExportInfoSize) + " where actual size was: 0x" +
2967 Twine::utohexstr(State.Current - ExportStart) +
2968 " in export trie data at node: 0x" + Twine::utohexstr(offset));
2976 "node: 0x" +
2977 Twine::utohexstr(offset) +
2999 *E = malformedError("edge sub-string in export trie data at node: 0x" +
3000 Twine::utohexstr(Top.Start - Trie.begin()) +
3001 " for child #" + Twine((int)Top.NextChildIndex) +
3001 " for child #" + Twine((int)Top.NextChildIndex) +
3009 *E = malformedError("child node offset " + Twine(error) +
3009 *E = malformedError("child node offset " + Twine(error) +
3010 " in export trie data at node: 0x" +
3017 *E = malformedError("loop in childern in export trie data at node: 0x" +
3018 Twine::utohexstr(Top.Start - Trie.begin()) +
3019 " back to node: 0x" +
3032 "node: 0x" +
3058 "node: 0x" +
3152 *E = malformedError("for REBASE_OPCODE_SET_TYPE_IMM bad bind type: " +
3153 Twine((int)RebaseType) + " for opcode at: 0x" +
3153 Twine((int)RebaseType) + " for opcode at: 0x" +
3167 *E = malformedError("for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " +
3168 Twine(error) + " for opcode at: 0x" +
3168 Twine(error) + " for opcode at: 0x" +
3176 *E = malformedError("for REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " +
3177 Twine(error) + " for opcode at: 0x" +
3177 Twine(error) + " for opcode at: 0x" +
3192 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3192 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3193 " for opcode at: 0x" +
3201 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3201 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3202 " for opcode at: 0x" +
3216 *E = malformedError("for REBASE_OPCODE_ADD_ADDR_IMM_SCALED " +
3217 Twine(error) + " for opcode at: 0x" +
3217 Twine(error) + " for opcode at: 0x" +
3228 " (after adding immediate times the pointer size) " +
3229 Twine(error) + " for opcode at: 0x" +
3229 Twine(error) + " for opcode at: 0x" +
3250 *E = malformedError("for REBASE_OPCODE_DO_REBASE_IMM_TIMES " +
3251 Twine(error) + " for opcode at: 0x" +
3251 Twine(error) + " for opcode at: 0x" +
3269 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES " +
3270 Twine(error) + " for opcode at: 0x" +
3270 Twine(error) + " for opcode at: 0x" +
3282 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ULEB_TIMES " +
3283 Twine(error) + " for opcode at: 0x" +
3283 Twine(error) + " for opcode at: 0x" +
3299 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB " +
3300 Twine(error) + " for opcode at: 0x" +
3300 Twine(error) + " for opcode at: 0x" +
3311 *E = malformedError("for REBASE_OPCODE_DO_REBASE_ADD_ADDR_ULEB " +
3312 Twine(error) + " for opcode at: 0x" +
3312 Twine(error) + " for opcode at: 0x" +
3329 "ULEB " +
3330 Twine(error) + " for opcode at: 0x" +
3330 Twine(error) + " for opcode at: 0x" +
3342 "ULEB " +
3343 Twine(error) + " for opcode at: 0x" +
3343 Twine(error) + " for opcode at: 0x" +
3354 "ULEB " +
3355 Twine(error) + " for opcode at: 0x" +
3355 Twine(error) + " for opcode at: 0x" +
3369 *E = malformedError("bad rebase info (bad opcode value 0x" +
3370 Twine::utohexstr(Opcode) + " for opcode at: 0x" +
3370 Twine::utohexstr(Opcode) + " for opcode at: 0x" +
3513 "weak bind table for opcode at: 0x" +
3522 "library ordinal: " +
3523 Twine((int)ImmValue) + " (max " +
3523 Twine((int)ImmValue) + " (max " +
3524 Twine((int)O->getLibraryCount()) +
3525 ") for opcode at: 0x" +
3538 "weak bind table for opcode at: 0x" +
3546 *E = malformedError("for BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB " +
3547 Twine(error) + " for opcode at: 0x" +
3547 Twine(error) + " for opcode at: 0x" +
3554 "library ordinal: " +
3555 Twine((int)Ordinal) + " (max " +
3555 Twine((int)Ordinal) + " (max " +
3556 Twine((int)O->getLibraryCount()) +
3557 ") for opcode at: 0x" +
3570 "weak bind table for opcode at: 0x" +
3580 "special ordinal: " +
3581 Twine((int)Ordinal) + " for opcode at: 0x" +
3581 Twine((int)Ordinal) + " for opcode at: 0x" +
3603 "symbol name extends past opcodes for opcode at: 0x" +
3623 *E = malformedError("for BIND_OPCODE_SET_TYPE_IMM bad bind type: " +
3624 Twine((int)ImmValue) + " for opcode at: 0x" +
3624 Twine((int)ImmValue) + " for opcode at: 0x" +
3637 *E = malformedError("for BIND_OPCODE_SET_ADDEND_SLEB " + Twine(error) +
3637 *E = malformedError("for BIND_OPCODE_SET_ADDEND_SLEB " + Twine(error) +
3638 " for opcode at: 0x" +
3652 *E = malformedError("for BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " +
3653 Twine(error) + " for opcode at: 0x" +
3653 Twine(error) + " for opcode at: 0x" +
3661 *E = malformedError("for BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB " +
3662 Twine(error) + " for opcode at: 0x" +
3662 Twine(error) + " for opcode at: 0x" +
3677 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3677 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3678 " for opcode at: 0x" +
3686 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3686 *E = malformedError("for BIND_OPCODE_ADD_ADDR_ULEB " + Twine(error) +
3687 " for opcode at: 0x" +
3703 *E = malformedError("for BIND_OPCODE_DO_BIND " + Twine(error) +
3703 *E = malformedError("for BIND_OPCODE_DO_BIND " + Twine(error) +
3704 " for opcode at: 0x" +
3712 "BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM for opcode at: 0x" +
3720 "BIND_OPCODE_SET_DYLIB_ORDINAL_* for opcode at: 0x" +
3733 "lazy bind table for opcode at: 0x" +
3741 *E = malformedError("for BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB " +
3742 Twine(error) + " for opcode at: 0x" +
3742 Twine(error) + " for opcode at: 0x" +
3751 "at: 0x" +
3759 "preceding BIND_OPCODE_SET_DYLIB_ORDINAL_* for opcode at: 0x" +
3766 *E = malformedError("for BIND_OPCODE_DO_BIND_ADD_ADDR_ULEB " +
3767 Twine(error) + " for opcode at: 0x" +
3767 Twine(error) + " for opcode at: 0x" +
3779 "ULEB) " +
3780 Twine(error) + " for opcode at: 0x" +
3780 Twine(error) + " for opcode at: 0x" +
3797 "allowed in lazy bind table for opcode at: 0x" +
3805 *E = malformedError("for BIND_OPCODE_DO_BIND_ADD_ADDR_IMM_SCALED " +
3806 Twine(error) + " for opcode at: 0x" +
3806 Twine(error) + " for opcode at: 0x" +
3815 "opcode at: 0x" +
3824 "at: 0x" +
3836 " (after adding immediate times the pointer size) " +
3837 Twine(error) + " for opcode at: 0x" +
3837 Twine(error) + " for opcode at: 0x" +
3850 "allowed in lazy bind table for opcode at: 0x" +
3862 " (count value) " +
3863 Twine(error) + " for opcode at: 0x" +
3863 Twine(error) + " for opcode at: 0x" +
3872 " (skip value) " +
3873 Twine(error) + " for opcode at: 0x" +
3873 Twine(error) + " for opcode at: 0x" +
3882 "opcode at: 0x" +
3891 "at: 0x" +
3900 malformedError("for BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB " +
3901 Twine(error) + " for opcode at: 0x" +
3901 Twine(error) + " for opcode at: 0x" +
3915 *E = malformedError("bad bind info (bad opcode value 0x" +
3916 Twine::utohexstr(Opcode) + " for opcode at: 0x" +
3916 Twine::utohexstr(Opcode) + " for opcode at: 0x" +
lib/Object/MachOUniversal.cpp 142 Err = malformedError("fat_arch" +
143 Twine(Magic == MachO::FAT_MAGIC ? "" : "_64") +
152 Err = malformedError("offset plus size of cputype (" +
153 Twine(A.getCPUType()) + ") cpusubtype (" +
153 Twine(A.getCPUType()) + ") cpusubtype (" +
154 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
160 Err = malformedError("align (2^" + Twine(A.getAlign()) +
160 Err = malformedError("align (2^" + Twine(A.getAlign()) +
161 ") too large for cputype (" + Twine(A.getCPUType()) +
161 ") too large for cputype (" + Twine(A.getCPUType()) +
162 ") cpusubtype (" +
163 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
164 ") (maximum 2^" + Twine(MaxSectionAlignment) + ")");
164 ") (maximum 2^" + Twine(MaxSectionAlignment) + ")");
168 Err = malformedError("offset: " + Twine(A.getOffset()) +
168 Err = malformedError("offset: " + Twine(A.getOffset()) +
169 " for cputype (" + Twine(A.getCPUType()) + ") cpusubtype (" +
169 " for cputype (" + Twine(A.getCPUType()) + ") cpusubtype (" +
169 " for cputype (" + Twine(A.getCPUType()) + ") cpusubtype (" +
170 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
171 ") not aligned on it's alignment (2^" + Twine(A.getAlign()) + ")");
171 ") not aligned on it's alignment (2^" + Twine(A.getAlign()) + ")");
175 Err = malformedError("cputype (" + Twine(A.getCPUType()) + ") "
175 Err = malformedError("cputype (" + Twine(A.getCPUType()) + ") "
176 "cpusubtype (" + Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
176 "cpusubtype (" + Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
177 ") offset " + Twine(A.getOffset()) + " overlaps universal headers");
177 ") offset " + Twine(A.getOffset()) + " overlaps universal headers");
189 "(" + Twine(A.getCPUType()) + ") cpusubtype (" +
189 "(" + Twine(A.getCPUType()) + ") cpusubtype (" +
189 "(" + Twine(A.getCPUType()) + ") cpusubtype (" +
190 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) + "))");
199 Err = malformedError("cputype (" + Twine(A.getCPUType()) + ") "
199 Err = malformedError("cputype (" + Twine(A.getCPUType()) + ") "
200 "cpusubtype (" + Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
200 "cpusubtype (" + Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) +
201 ") at offset " + Twine(A.getOffset()) + " with a size of " +
201 ") at offset " + Twine(A.getOffset()) + " with a size of " +
201 ") at offset " + Twine(A.getOffset()) + " with a size of " +
202 Twine(A.getSize()) + ", overlaps cputype (" + Twine(B.getCPUType()) +
202 Twine(A.getSize()) + ", overlaps cputype (" + Twine(B.getCPUType()) +
202 Twine(A.getSize()) + ", overlaps cputype (" + Twine(B.getCPUType()) +
203 ") cpusubtype (" + Twine(B.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK)
204 + ") at offset " + Twine(B.getOffset()) + " with a size of "
204 + ") at offset " + Twine(B.getOffset()) + " with a size of "
204 + ") at offset " + Twine(B.getOffset()) + " with a size of "
205 + Twine(B.getSize()));
lib/Object/RecordStreamer.cpp 218 (Split.first + Separator + Split.second).toStringRef(NewName);
lib/Object/WasmObjectFile.cpp 323 "Invalid section type: " + Twine(Sec.Type), object_error::parse_failed);
401 "Unexpected metadata version: " + Twine(LinkingData.Version) +
401 "Unexpected metadata version: " + Twine(LinkingData.Version) +
402 " (Expected: " + Twine(wasm::WasmMetadataVersion) + ")",
402 " (Expected: " + Twine(wasm::WasmMetadataVersion) + ")",
439 return make_error<GenericBinaryError>("Invalid function symbol: " +
620 return make_error<GenericBinaryError>("Duplicate symbol name " +
638 return make_error<GenericBinaryError>("Bad/duplicate COMDAT name " +
818 return make_error<GenericBinaryError>("Bad relocation type: " +
lib/Object/WindowsResource.cpp 302 ("duplicate non-default manifests with languages " + Twine(FirstLang) +
302 ("duplicate non-default manifests with languages " + Twine(FirstLang) +
303 " in " + InputFilenames[FirstNode->Origin] + " and " + Twine(LastLang) +
303 " in " + InputFilenames[FirstNode->Origin] + " and " + Twine(LastLang) +
303 " in " + InputFilenames[FirstNode->Origin] + " and " + Twine(LastLang) +
303 " in " + InputFilenames[FirstNode->Origin] + " and " + Twine(LastLang) +
304 " in " + InputFilenames[LastNode->Origin])
lib/ObjectYAML/ELFEmitter.cpp 309 reportError("unknown section referenced: '" + S + "' by YAML symbol '" +
309 reportError("unknown section referenced: '" + S + "' by YAML symbol '" +
310 LocSym + "'");
312 reportError("unknown section referenced: '" + S + "' by YAML section '" +
312 reportError("unknown section referenced: '" + S + "' by YAML section '" +
313 LocSec + "'");
325 reportError("unknown symbol referenced: '" + S + "' by YAML section '" +
325 reportError("unknown symbol referenced: '" + S + "' by YAML section '" +
326 LocSec + "'");
539 reportError("cannot specify both `Content` and " +
540 (IsStatic ? Twine("`Symbols`") : Twine("`DynamicSymbols`")) +
541 " for symbol table section '" + RawSec->Name + "'");
541 " for symbol table section '" + RawSec->Name + "'");
543 reportError("cannot specify both `Size` and " +
544 (IsStatic ? Twine("`Symbols`") : Twine("`DynamicSymbols`")) +
545 " for symbol table section '" + RawSec->Name + "'");
545 " for symbol table section '" + RawSec->Name + "'");
656 reportError("unknown section referenced: '" + SecName.Section +
1000 Section.Name + "'");
1102 reportError("repeated section name: '" + Name +
1103 "' at YAML section number " + Twine(I));
1114 reportError("repeated symbol name: '" + Sym.Name + "'");
lib/ObjectYAML/ObjectYAML.cpp 60 N->getRawTag() + "'!");
lib/ObjectYAML/WasmEmitter.cpp 150 reportError("unknown opcode in init_expr: " + Twine(InitExpr.Opcode));
329 reportError("unexpected type index: " + Twine(Sig.Index));
373 reportError("unknown import type: " +Twine(Import.Kind));
423 reportError("unexpected global index: " + Twine(Global.Index));
439 reportError("unexpected event index: " + Twine(Event.Index));
469 reportError("unexpected function index: " + Twine(Func.Index));
556 reportError("out of order section type: " + Twine(Sec->Type));
591 reportError("unknown section type: " + Twine(Sec->Type));
lib/ObjectYAML/yaml2obj.cpp 51 ErrHandler("cannot find the " + Twine(DocNum) +
51 ErrHandler("cannot find the " + Twine(DocNum) +
52 getOrdinalSuffix(DocNum).data() + " document");
lib/Option/ArgList.cpp 182 return MakeArgString(LHS + RHS);
244 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()),
253 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()),
262 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()),
269 unsigned Index = BaseArgs.MakeIndex((Opt.getName() + Value).str());
271 Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), Index,
lib/Option/OptTable.cpp 315 NearestString = (Candidate + RHS).str();
lib/Option/Option.cpp 254 Twine(UnaliasedOption.getPrefix()) + Twine(UnaliasedOption.getName()));
lib/Passes/PassPlugin.cpp 21 return make_error<StringError>(Twine("Could not load library '") +
22 Filename + "': " + Error,
22 Filename + "': " + Error,
32 return make_error<StringError>(Twine("Plugin entry point not found in '") +
33 Filename + "'. Is this a legacy plugin?",
40 Twine("Wrong API version on plugin '") + Filename + "'. Got version " +
40 Twine("Wrong API version on plugin '") + Filename + "'. Got version " +
40 Twine("Wrong API version on plugin '") + Filename + "'. Got version " +
41 Twine(P.Info.APIVersion) + ", supported version is " +
41 Twine(P.Info.APIVersion) + ", supported version is " +
42 Twine(LLVM_PLUGIN_API_VERSION) + ".",
46 return make_error<StringError>(Twine("Empty entry callback in plugin '") +
47 Filename + "'.'",
lib/Remarks/YAMLRemarkParser.cpp 48 Stream.printError(&Node, Twine(Msg) + Twine('\n'));
lib/Support/CachePruning.cpp 59 return make_error<StringError>("'" + NumStr + "' not an integer",
70 return make_error<StringError>("'" + Duration +
97 return make_error<StringError>("'" + Value + "' must be a percentage",
102 return make_error<StringError>("'" + SizeStr + "' not an integer",
105 return make_error<StringError>("'" + SizeStr +
127 return make_error<StringError>("'" + Value + "' not an integer",
132 return make_error<StringError>("'" + Value + "' not an integer",
135 return make_error<StringError>("Unknown key: '" + Key + "'",
lib/Support/CodeGenCoverage.cpp 101 std::string CoverageFilename = (CoveragePrefix + Pid).str();
lib/Support/CommandLine.cpp 597 NearestString = (Twine(Name) + "=" + RHS).str();
597 NearestString = (Twine(Name) + "=" + RHS).str();
660 return Handler->error("does not allow a value! '" + Twine(Value) +
660 return Handler->error("does not allow a value! '" + Twine(Value) +
1729 return O.error("'" + Arg +
1747 return O.error("'" + Arg +
1756 return O.error("'" + Arg + "' value invalid for integer argument!");
1766 return O.error("'" + Arg + "' value invalid for uint argument!");
1776 return O.error("'" + Arg + "' value invalid for ulong argument!");
1787 return O.error("'" + Arg + "' value invalid for ullong argument!");
1796 return O.error("'" + Arg + "' value invalid for floating point argument!");
lib/Support/FileCheck.cpp 134 SM, Name, "string variable with name '" + Name + "' already exists");
158 SM, Name, "invalid pseudo numeric variable '" + Name + "'");
181 "numeric variable '" + Name +
212 "invalid operand format '" + Expr + "'");
245 SM, OpLoc, Twine("unsupported operation '") + Twine(Operator) + "'");
245 SM, OpLoc, Twine("unsupported operation '") + Twine(Operator) + "'");
298 "unexpected characters at end of expression '" + Expr + "'");
336 "found empty check string with prefix '" + Prefix + ":'");
343 "found non-empty check string for empty check with prefix '" + Prefix +
475 "numeric variable with name '" + Name + "' already exists");
1195 "unsupported -NOT combo on prefix '" + UsedPrefix + "'");
1203 UsedPrefix + "'");
1227 "found '" + UsedPrefix + "-LABEL:'"
1243 "found '" + UsedPrefix + "-" + Type +
1243 "found '" + UsedPrefix + "-" + Type +
1243 "found '" + UsedPrefix + "-" + Type +
1244 "' without previous '" + UsedPrefix + ": line");
1244 "' without previous '" + UsedPrefix + ": line");
1513 Prefix +
1522 CheckName + ": is on the same line as previous match");
1532 CheckName +
1784 std::string DefPrefix = ("Global define #" + Twine(++I) + ": ").str();
1784 std::string DefPrefix = ("Global define #" + Twine(++I) + ": ").str();
1795 CmdlineDefsDiag += (DefPrefix + CmdlineDef + " (parsed as: [[").str();
1795 CmdlineDefsDiag += (DefPrefix + CmdlineDef + " (parsed as: [[").str();
1800 CmdlineDefsDiag += (SubstitutionStr + Twine("]])\n")).str();
1878 OrigCmdlineName + "'"));
1890 Name + "' already exists"));
lib/Support/GraphWriter.cpp 270 (StringRef("start ") + (wait ? "/WAIT " : "") + OutputFilename).str();
lib/Support/Path.cpp 808 return createTemporaryFile(Prefix + Middle + Suffix, ResultFD, ResultPath,
808 return createTemporaryFile(Prefix + Middle + Suffix, ResultFD, ResultPath,
835 return createUniqueEntity(Prefix + "-%%%%%%", Dummy, ResultPath, true, 0,
lib/Support/Regex.cpp 193 *Error = ("invalid backreference string '" + Twine(Ref) + "'").str();
193 *Error = ("invalid backreference string '" + Twine(Ref) + "'").str();
lib/Support/SpecialCaseList.cpp 48 Regexp = (Twine("^(") + StringRef(Regexp) + ")$").str();
48 Regexp = (Twine("^(") + StringRef(Regexp) + ")$").str();
104 Error = (Twine("can't open file '") + Path + "': " + EC.message()).str();
104 Error = (Twine("can't open file '") + Path + "': " + EC.message()).str();
104 Error = (Twine("can't open file '") + Path + "': " + EC.message()).str();
109 Error = (Twine("error parsing file '") + Path + "': " + ParseError).str();
109 Error = (Twine("error parsing file '") + Path + "': " + ParseError).str();
109 Error = (Twine("error parsing file '") + Path + "': " + ParseError).str();
143 Error = (Twine("malformed section header on line ") + Twine(LineNo) +
143 Error = (Twine("malformed section header on line ") + Twine(LineNo) +
144 ": " + *I).str();
154 (Twine("malformed regex for section ") + Section + ": '" + REError)
154 (Twine("malformed regex for section ") + Section + ": '" + REError)
154 (Twine("malformed regex for section ") + Section + ": '" + REError)
167 Error = (Twine("malformed line ") + Twine(LineNo) + ": '" +
167 Error = (Twine("malformed line ") + Twine(LineNo) + ": '" +
167 Error = (Twine("malformed line ") + Twine(LineNo) + ": '" +
168 SplitLine.first + "'").str();
181 Error = (Twine("malformed section ") + Section + ": '" + REError).str();
181 Error = (Twine("malformed section ") + Section + ": '" + REError).str();
181 Error = (Twine("malformed section ") + Section + ": '" + REError).str();
192 Error = (Twine("malformed regex in line ") + Twine(LineNo) + ": '" +
192 Error = (Twine("malformed regex in line ") + Twine(LineNo) + ": '" +
192 Error = (Twine("malformed regex in line ") + Twine(LineNo) + ": '" +
193 SplitLine.second + "': " + REError).str();
193 SplitLine.second + "': " + REError).str();
lib/Support/SymbolRemappingReader.cpp 47 "found '" + Line + "'");
57 " found '" + Parts[0] + "'");
65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' "
65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' "
65 return ReportError("Manglings '" + Parts[1] + "' and '" + Parts[2] + "' "
70 return ReportError("Could not demangle '" + Parts[1] + "' "
71 "as a <" + Parts[0] + ">; invalid mangling?");
71 "as a <" + Parts[0] + ">; invalid mangling?");
74 return ReportError("Could not demangle '" + Parts[2] + "' "
75 "as a <" + Parts[0] + ">; invalid mangling?");
75 "as a <" + Parts[0] + ">; invalid mangling?");
lib/Support/TarWriter.cpp 77 return (Twine(Total) + " " + Key + "=" + Val + "\n").str();
77 return (Twine(Total) + " " + Key + "=" + Val + "\n").str();
77 return (Twine(Total) + " " + Key + "=" + Val + "\n").str();
77 return (Twine(Total) + " " + Key + "=" + Val + "\n").str();
77 return (Twine(Total) + " " + Key + "=" + Val + "\n").str();
lib/Support/Triple.cpp 766 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr).str()),
766 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr).str()),
766 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr).str()),
766 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr).str()),
782 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') +
782 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') +
782 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') +
782 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') +
782 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') +
782 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') +
1184 setEnvironmentName((getEnvironmentTypeName(Kind) + Twine("-") +
1184 setEnvironmentName((getEnvironmentTypeName(Kind) + Twine("-") +
1192 setEnvironmentName((getEnvironmentTypeName(Environment) + Twine("-") +
1192 setEnvironmentName((getEnvironmentTypeName(Environment) + Twine("-") +
1208 setTriple(getArchName() + "-" + Str + "-" + getOSAndEnvironmentName());
1208 setTriple(getArchName() + "-" + Str + "-" + getOSAndEnvironmentName());
1208 setTriple(getArchName() + "-" + Str + "-" + getOSAndEnvironmentName());
1213 setTriple(getArchName() + "-" + getVendorName() + "-" + Str +
1213 setTriple(getArchName() + "-" + getVendorName() + "-" + Str +
1213 setTriple(getArchName() + "-" + getVendorName() + "-" + Str +
1213 setTriple(getArchName() + "-" + getVendorName() + "-" + Str +
1214 "-" + getEnvironmentName());
1216 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
1216 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
1216 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
1220 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() +
1220 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() +
1220 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() +
1220 setTriple(getArchName() + "-" + getVendorName() + "-" + getOSName() +
1221 "-" + Str);
1225 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
1225 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
1225 setTriple(getArchName() + "-" + getVendorName() + "-" + Str);
lib/Support/VirtualFileSystem.cpp 565 return (std::string(Indent, ' ') + Stat.getName() + "\n").str();
565 return (std::string(Indent, ' ') + Stat.getName() + "\n").str();
655 (std::string(Indent, ' ') + Stat.getName() + "\n").str();
655 (std::string(Indent, ' ') + Stat.getName() + "\n").str();
1196 error(KeyNode, Twine("duplicate key '") + Key + "'");
1196 error(KeyNode, Twine("duplicate key '") + Key + "'");
1207 error(Obj, Twine("missing key '") + I.first + "'");
1207 error(Obj, Twine("missing key '") + I.first + "'");
lib/Support/YAMLParser.cpp 1830 setError(Twine("Unknown tag handle ") + TagHandle, T);
lib/Support/YAMLTraits.cpp 176 setError(CurrentNode, Twine("missing required key '") + Key + "'");
176 setError(CurrentNode, Twine("missing required key '") + Key + "'");
199 setError(NN.second.get(), Twine("unknown key '") + NN.first() + "'");
199 setError(NN.second.get(), Twine("unknown key '") + NN.first() + "'");
lib/TableGen/Main.cpp 137 return reportError(argv0, Twine(ErrorsPrinted) + " errors.\n");
lib/TableGen/Record.cpp 742 Twine("Undefined reference to record: '") +
743 Name->getValue() + "'\n");
751 Twine("Expected type '") +
752 getType()->getAsString() + "', got '" +
752 getType()->getAsString() + "', got '" +
753 DI->getType()->getAsString() + "' in: " +
753 DI->getType()->getAsString() + "' in: " +
754 getAsString() + "\n");
893 PrintFatalError(Twine("Concatenated Dag operators do not match: '") +
894 LHSs->getAsString() + "' vs. '" + RHSs->getAsString() +
894 LHSs->getAsString() + "' vs. '" + RHSs->getAsString() +
894 LHSs->getAsString() + "' vs. '" + RHSs->getAsString() +
1326 return (Twine("!foldl(") + Start->getAsString() + ", " + List->getAsString() +
1326 return (Twine("!foldl(") + Start->getAsString() + ", " + List->getAsString() +
1326 return (Twine("!foldl(") + Start->getAsString() + ", " + List->getAsString() +
1326 return (Twine("!foldl(") + Start->getAsString() + ", " + List->getAsString() +
1327 ", " + A->getAsUnquotedString() + ", " + B->getAsUnquotedString() +
1327 ", " + A->getAsUnquotedString() + ", " + B->getAsUnquotedString() +
1327 ", " + A->getAsUnquotedString() + ", " + B->getAsUnquotedString() +
1327 ", " + A->getAsUnquotedString() + ", " + B->getAsUnquotedString() +
1328 ", " + Expr->getAsString() + ")")
1328 ", " + Expr->getAsString() + ")")
1389 return (Twine("!isa<") + CheckType->getAsString() + ">(" +
1389 return (Twine("!isa<") + CheckType->getAsString() + ">(" +
1389 return (Twine("!isa<") + CheckType->getAsString() + ">(" +
1390 Expr->getAsString() + ")")
1736 Twine("Attempting to access field '") +
1737 FieldName->getAsUnquotedString() + "' of '" +
1737 FieldName->getAsUnquotedString() + "' of '" +
1738 Rec->getAsString() + "' is a forbidden self-reference");
1833 " does not have any true condition in:" +
2038 PrintFatalError(getLoc(), Twine("Record name '") + Name->getAsString() +
2038 PrintFatalError(getLoc(), Twine("Record name '") + Name->getAsString() +
2091 (Twine("of type '") + VRT->getType()->getAsString() + "' ").str();
2091 (Twine("of type '") + VRT->getType()->getAsString() + "' ").str();
2092 PrintFatalError(getLoc(), Twine("Invalid value ") + Type +
2092 PrintFatalError(getLoc(), Twine("Invalid value ") + Type +
2093 "is found when setting '" +
2094 Value.getNameInitAsString() +
2095 "' of type '" +
2096 Value.getType()->getAsString() +
2097 "' after resolving references: " +
2098 VR->getAsUnquotedString() + "\n");
2164 PrintFatalError(getLoc(), "Record `" + getName() +
2165 "' does not have a field named `" + FieldName + "'!\n");
2165 "' does not have a field named `" + FieldName + "'!\n");
2172 PrintFatalError(getLoc(), "Record `" + getName() +
2173 "' does not have a field named `" + FieldName + "'!\n");
2173 "' does not have a field named `" + FieldName + "'!\n");
2180 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2180 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2181 FieldName + "' does not have a string initializer!");
2187 PrintFatalError(getLoc(), "Record `" + getName() +
2188 "' does not have a field named `" + FieldName + "'!\n");
2188 "' does not have a field named `" + FieldName + "'!\n");
2192 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2192 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2193 FieldName + "' does not have a BitsInit initializer!");
2199 PrintFatalError(getLoc(), "Record `" + getName() +
2200 "' does not have a field named `" + FieldName + "'!\n");
2200 "' does not have a field named `" + FieldName + "'!\n");
2204 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2204 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2205 FieldName + "' does not have a list initializer!");
2216 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2216 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2217 FieldName + "' list is not entirely DefInit!");
2225 PrintFatalError(getLoc(), "Record `" + getName() +
2226 "' does not have a field named `" + FieldName + "'!\n");
2226 "' does not have a field named `" + FieldName + "'!\n");
2230 PrintFatalError(getLoc(), Twine("Record `") + getName() + "', field `" +
2230 PrintFatalError(getLoc(), Twine("Record `") + getName() + "', field `" +
2230 PrintFatalError(getLoc(), Twine("Record `") + getName() + "', field `" +
2231 FieldName +
2232 "' does not have an int initializer: " +
2245 Twine("Record `") + getName() + "', field `" + FieldName +
2245 Twine("Record `") + getName() + "', field `" + FieldName +
2245 Twine("Record `") + getName() + "', field `" + FieldName +
2245 Twine("Record `") + getName() + "', field `" + FieldName +
2246 "' does not have a list of ints initializer: " +
2261 Twine("Record `") + getName() + "', field `" + FieldName +
2261 Twine("Record `") + getName() + "', field `" + FieldName +
2261 Twine("Record `") + getName() + "', field `" + FieldName +
2261 Twine("Record `") + getName() + "', field `" + FieldName +
2262 "' does not have a list of strings initializer: " +
2271 PrintFatalError(getLoc(), "Record `" + getName() +
2272 "' does not have a field named `" + FieldName + "'!\n");
2272 "' does not have a field named `" + FieldName + "'!\n");
2276 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2276 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2277 FieldName + "' does not have a def initializer!");
2283 PrintFatalError(getLoc(), "Record `" + getName() +
2284 "' does not have a field named `" + FieldName + "'!\n");
2284 "' does not have a field named `" + FieldName + "'!\n");
2290 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2290 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2291 FieldName + "' does not have either a def initializer or '?'!");
2298 PrintFatalError(getLoc(), "Record `" + getName() +
2299 "' does not have a field named `" + FieldName + "'!\n");
2299 "' does not have a field named `" + FieldName + "'!\n");
2303 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2303 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2304 FieldName + "' does not have a bit initializer!");
2310 PrintFatalError(getLoc(), "Record `" + getName() +
2311 "' does not have a field named `" + FieldName.str() + "'!\n");
2311 "' does not have a field named `" + FieldName.str() + "'!\n");
2320 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2320 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2321 FieldName + "' does not have a bit initializer!");
2327 PrintFatalError(getLoc(), "Record `" + getName() +
2328 "' does not have a field named `" + FieldName + "'!\n");
2328 "' does not have a field named `" + FieldName + "'!\n");
2332 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2332 PrintFatalError(getLoc(), "Record `" + getName() + "', field `" +
2333 FieldName + "' does not have a dag initializer!");
2361 PrintFatalError("ERROR: Couldn't find the `" + ClassName + "' class!\n");
lib/TableGen/TGLexer.cpp 701 IfTokName + " NAME");
788 "Duplicate definition of macro: " + Twine(MacroName));
lib/TableGen/TGParser.cpp 103 Twine("Initializer of '") + RV.getNameInitAsString() +
103 Twine("Initializer of '") + RV.getNameInitAsString() +
104 "' in '" + R.getNameInitAsString() +
104 "' in '" + R.getNameInitAsString() +
105 "' could not be fully resolved: " +
147 return Error(Loc, "New definition of '" + RV.getName() + "' of type '" +
147 return Error(Loc, "New definition of '" + RV.getName() + "' of type '" +
148 RV.getType()->getAsString() + "' is incompatible with " +
148 RV.getType()->getAsString() + "' is incompatible with " +
149 "previous definition of type '" +
150 ERV->getType()->getAsString() + "'");
199 return Error(Loc, "Cannot set bit #" + Twine(Bit) + " of value '" +
199 return Error(Loc, "Cannot set bit #" + Twine(Bit) + " of value '" +
199 return Error(Loc, "Cannot set bit #" + Twine(Bit) + " of value '" +
200 ValName->getAsUnquotedString() + "' more than once");
214 InitType = (Twine("' of type bit initializer with length ") +
217 InitType = (Twine("' of type '") + TI->getType()->getAsString()).str();
254 "Value not specified for template argument #" +
255 Twine(i) + " (" + TArgs[i]->getAsUnquotedString() +
255 Twine(i) + " (" + TArgs[i]->getAsUnquotedString() +
255 Twine(i) + " (" + TArgs[i]->getAsUnquotedString() +
256 ") of subclass '" + SC->getNameInitAsString() + "'!");
256 ") of subclass '" + SC->getNameInitAsString() + "'!");
280 "Already subclass of '" + SCPair.first->getName() + "'!\n");
286 "Already subclass of '" + SC->getName() + "'!\n");
325 "value not specified for template argument #" + Twine(i) +
325 "value not specified for template argument #" + Twine(i) +
326 " (" + SMCTArgs[i]->getAsUnquotedString() +
326 " (" + SMCTArgs[i]->getAsUnquotedString() +
327 ") of multiclass '" + SMC->Rec.getNameInitAsString() +
327 ") of multiclass '" + SMC->Rec.getNameInitAsString() +
387 PrintError(Loop.Loc, Twine("attempting to loop over '") +
388 List->getAsString() + "', expected a list");
452 PrintError(Rec->getLoc(), Twine("record name '") +
453 Rec->getNameInit()->getAsString() +
464 PrintError(Rec->getLoc(), Twine("adding record of incompatible type '") +
465 I->getType()->getAsString() +
891 Error(NameLoc, "Variable not defined: '" + Name->getValue() + "'");
1130 Error(OpLoc, Twine("expected value of type '") +
1131 ItemType->getAsString() + "', got '" +
1131 ItemType->getAsString() + "', got '" +
1132 Type->getAsString() + "'");
1157 Error(InitLoc, Twine("expected a list, got value of type '") +
1158 ArgType->getAsString() + "'");
1166 Twine("expected output type to be a list, got type '") +
1167 ItemType->getAsString() + "'");
1171 Error(OpLoc, Twine("expected first arg type to be '") +
1172 ArgType->getAsString() +
1173 "', got value of type '" +
1176 ->getAsString() +
1183 "value of type '") +
1184 ArgType->getAsString() + "'");
1194 "type '") + ArgType->getAsString() + "'");
1194 "type '") + ArgType->getAsString() + "'");
1203 Error(InitLoc, Twine("expected value of type '") +
1204 ArgType->getAsString() + "', got '" +
1204 ArgType->getAsString() + "', got '" +
1205 ListType->getAsString() + "'");
1270 TokError((Twine("iteration variable '") + LHS->getAsString() +
1270 TokError((Twine("iteration variable '") + LHS->getAsString() +
1309 "expected value of type '" + Twine(ItemType->getAsString()) +
1309 "expected value of type '" + Twine(ItemType->getAsString()) +
1318 "expected value of type '" + Twine(ItemType->getAsString()) +
1318 "expected value of type '" + Twine(ItemType->getAsString()) +
1433 Error(MHSLoc, Twine("expected list of children, got type '") +
1434 MHSt->getType()->getAsString() + "'");
1444 Error(RHSLoc, Twine("expected list<string>, got type '") +
1445 RHSt->getType()->getAsString() + "'");
1487 TokError(Twine("inconsistent types '") + MHSTy->getAsString() +
1487 TokError(Twine("inconsistent types '") + MHSTy->getAsString() +
1488 "' and '" + RHSTy->getAsString() + "' for !if");
1488 "' and '" + RHSTy->getAsString() + "' for !if");
1524 TokError(Twine("could not get type of !foldl start: '") +
1525 StartUntyped->getAsString() + "'");
1541 TokError(Twine("could not get type of !foldl list: '") +
1542 ListUntyped->getAsString() + "'");
1548 TokError(Twine("!foldl list must be a list, but is of type '") +
1565 TokError((Twine("left !foldl variable '") + A->getAsString() +
1565 TokError((Twine("left !foldl variable '") + A->getAsString() +
1583 TokError((Twine("right !foldl variable '") + B->getAsString() +
1583 TokError((Twine("right !foldl variable '") + B->getAsString() +
1619 TokError(Twine("!foldl expression must be of same type as start (") +
1620 Start->getType()->getAsString() + "), but is of type " +
1620 Start->getType()->getAsString() + "), but is of type " +
1736 TokError(Twine("inconsistent types '") + Type->getAsString() +
1736 TokError(Twine("inconsistent types '") + Type->getAsString() +
1737 "' and '" + VTy->getAsString() + "' for !cond");
1737 "' and '" + VTy->getAsString() + "' for !cond");
1831 Error(NameLoc, "Expected a class name, got '" + Name->getValue() + "'");
1860 "Value specified for template argument #" + Twine(i) + " (" +
1860 "Value specified for template argument #" + Twine(i) + " (" +
1860 "Value specified for template argument #" + Twine(i) + " (" +
1861 ExpectedArg->getNameInitAsString() + ") is of type '" +
1861 ExpectedArg->getNameInitAsString() + ") is of type '" +
1862 TI->getType()->getAsString() + "', expected '" +
1862 TI->getType()->getAsString() + "', expected '" +
1863 ExpectedType->getAsString() + "': " + TI->getAsString());
1863 ExpectedType->getAsString() + "': " + TI->getAsString());
1872 "Value not specified for template argument #" + Twine(i) + " (" +
1872 "Value not specified for template argument #" + Twine(i) + " (" +
1872 "Value not specified for template argument #" + Twine(i) + " (" +
1873 ExpectedArgs[i]->getAsUnquotedString() + ")");
1921 Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() +
1921 Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() +
1921 Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() +
1921 Error(BraceLoc, "Element #" + Twine(i) + " (" + Vals[i]->getAsString() +
1940 TokError(Twine("Type mismatch for list, expected list type, got ") +
2014 TokError(Twine("Element type mismatch for list: element type '") +
2015 EltTy->getAsString() + "' not convertible to '" +
2015 EltTy->getAsString() + "' not convertible to '" +
2209 Twine("can't cast '") + LHS->getAsString() + "' to string");
2209 Twine("can't cast '") + LHS->getAsString() + "' to string");
2244 Twine("can't cast '") + RHS->getAsString() + "' to string");
2244 Twine("can't cast '") + RHS->getAsString() + "' to string");
2486 Type = (Twine("' of type '") + TI->getType()->getAsString()).str();
2588 return TokError("Value '" + FieldName->getValue() + "' unknown!");
3094 "value not specified for template argument #" +
3095 Twine(i) + " (" + TArgs[i]->getAsUnquotedString() +
3095 Twine(i) + " (" + TArgs[i]->getAsUnquotedString() +
3095 Twine(i) + " (" + TArgs[i]->getAsUnquotedString() +
3096 ") of multiclass '" + MC->Rec.getNameInitAsString() +
3096 ") of multiclass '" + MC->Rec.getNameInitAsString() +
lib/TableGen/TableGenBackend.cpp 43 printLine(OS, Prefix + Desc.substr(Pos, Length), ' ', Suffix);
lib/Target/AArch64/AArch64AsmPrinter.cpp 492 Twine(getDataLayout().getLinkerPrivateGlobalPrefix()) + "CPI" +
492 Twine(getDataLayout().getLinkerPrivateGlobalPrefix()) + "CPI" +
493 Twine(getFunctionNumber()) + "_" + Twine(CPID));
493 Twine(getFunctionNumber()) + "_" + Twine(CPID));
lib/Target/AArch64/AArch64ISelLowering.cpp 5554 + StringRef(RegName) + "\"."));
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 2968 return TokError("specified " + Mnemonic + " op requires a register");
2970 return TokError("specified " + Mnemonic + " op does not use a register");
5355 "unexpected token in '" + Twine(IDVal) + "' directive"))
5355 "unexpected token in '" + Twine(IDVal) + "' directive"))
5359 "unexpected token in '" + Twine(IDVal) + "' directive"))
5359 "unexpected token in '" + Twine(IDVal) + "' directive"))
5434 Warning(L, "ignoring redefinition of register alias '" + Name + "'");
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp 172 Name + "." + Twine(MappingSymbolCounter++)));
lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp 185 Target.getSymA()->getSymbol().getName() +
266 "unsupported relocation of local symbol '" + A->getName() +
273 "unsupported relocation of local symbol '" + B->getName() +
313 "unsupported relocation of local symbol '" + Symbol->getName() +
350 "unsupported relocation of local symbol '" + Symbol->getName() +
lib/Target/AArch64/MCTargetDesc/AArch64WinCOFFObjectWriter.cpp 54 report_fatal_error(Twine("unsupported relocation type: ") + Info.Name);
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp 280 (Twine("BB") + Twine(getFunctionNumber())
281 + "_" + Twine(MBB.getNumber()) + ":").str());
281 + "_" + Twine(MBB.getNumber()) + ":").str());
281 + "_" + Twine(MBB.getNumber()) + ":").str());
292 Twine(GV->getName()) +
306 report_fatal_error("symbol '" + Twine(GVSym->getName()) +
306 report_fatal_error("symbol '" + Twine(GVSym->getName()) +
351 OutStreamer->emitRawComment(" codeLenInByte = " + Twine(CodeSize), false);
352 OutStreamer->emitRawComment(" NumSgprs: " + Twine(NumSGPR), false);
353 OutStreamer->emitRawComment(" NumVgprs: " + Twine(NumVGPR), false);
355 OutStreamer->emitRawComment(" NumAgprs: " + Twine(*NumAGPR), false);
356 OutStreamer->emitRawComment(" TotalNumVgprs: " + Twine(TotalNumVGPR),
359 OutStreamer->emitRawComment(" ScratchSize: " + Twine(ScratchSize), false);
360 OutStreamer->emitRawComment(" MemoryBound: " + Twine(MFI->isMemoryBound()),
503 " FloatMode: " + Twine(CurrentProgramInfo.FloatMode), false);
505 " IeeeMode: " + Twine(CurrentProgramInfo.IEEEMode), false);
507 " LDSByteSize: " + Twine(CurrentProgramInfo.LDSSize) +
507 " LDSByteSize: " + Twine(CurrentProgramInfo.LDSSize) +
511 " SGPRBlocks: " + Twine(CurrentProgramInfo.SGPRBlocks), false);
513 " VGPRBlocks: " + Twine(CurrentProgramInfo.VGPRBlocks), false);
516 " NumSGPRsForWavesPerEU: " +
519 " NumVGPRsForWavesPerEU: " +
523 " Occupancy: " +
527 " WaveLimiterHint : " + Twine(MFI->needsWaveLimiter()), false);
530 " COMPUTE_PGM_RSRC2:USER_SGPR: " +
533 " COMPUTE_PGM_RSRC2:TRAP_HANDLER: " +
536 " COMPUTE_PGM_RSRC2:TGID_X_EN: " +
539 " COMPUTE_PGM_RSRC2:TGID_Y_EN: " +
542 " COMPUTE_PGM_RSRC2:TGID_Z_EN: " +
545 " COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: " +
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp 166 return (Twine('u') + getTypeName(Ty, true)).str();
179 return (Twine('i') + Twine(BitWidth)).str();
192 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str();
478 Kernel.mSymbolName = (Twine(Func.getName()) + Twine("@kd")).str();
607 return (Twine('u') + getTypeName(Ty, true)).str();
620 return (Twine('i') + Twine(BitWidth)).str();
633 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str();
945 (Twine(Func.getName()) + Twine(".kd")).str(), /*Copy=*/true);
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 1098 Fn, Reason + FuncName, CLI.DL.getDebugLoc());
lib/Target/AMDGPU/AMDGPULibCalls.cpp 1421 std::string(prefix) + UI->getName());
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp 204 "a target-specific version: " + Twine(MI->getOpcode()));
291 OutStreamer->emitRawComment(Twine(" mask branch ") + BBStr);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 799 Twine(F->getName()) + Twine('.') + I.getName(),
799 Twine(F->getName()) + Twine('.') + I.getName(),
lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp 306 Ret += (StringRef("+") + KV.Key + ",").str();
308 Ret += (StringRef("-") + KV.Key + ",").str();
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp 4135 (Twine(AssemblerDirectiveBegin) + Twine(" directive is "
4190 return TokError(Twine("expected directive ") +
4191 Twine(AssemblerDirectiveEnd) + Twine(" not found"));
4215 (Twine(PALMD::AssemblerDirective) + Twine(" directive is "
4224 return TokError(Twine("invalid value in ") +
4228 return TokError(Twine("expected an even number of values in ") +
4233 return TokError(Twine("invalid value in ") +
4547 Error(S, "invalid " + StringRef(Prefix) + " value.");
4578 Error(Loc, "invalid " + StringRef(Prefix) + " value.");
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp 611 *CommentStream << "Error: " + ErrMsg;
628 return errOperand(Val, Twine(getRegClassName(RegClassID)) +
629 ": unknown register " + Twine(Val));
802 return errOperand(0, "cannot read literal, inst bytes left " +
1086 return errOperand(Val, "unknown operand encoding " + Twine(Val));
1110 return errOperand(Val, "unknown operand encoding " + Twine(Val));
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp 521 report_fatal_error("Symbol: " + Symbol->getName() +
622 Context.getOrCreateSymbol(Twine(KernelName) + Twine(".kd")));
lib/Target/AMDGPU/R600AsmPrinter.cpp 127 Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->CFStackSize)));
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp 314 (NewFArgIt++)->setName(Twine("__size_") + ArgName);
315 (NewFArgIt++)->setName(Twine("__format_") + ArgName);
lib/Target/AMDGPU/SIISelLowering.cpp 2996 + StringRef(RegName) + "\"."));
3003 + StringRef(RegName) + "\" for subtarget."));
3025 + StringRef(RegName) + "\"."));
lib/Target/ARM/ARMAsmPrinter.cpp 246 return OutContext.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
247 "CPI" + Twine(getFunctionNumber()) + "_" +
247 "CPI" + Twine(getFunctionNumber()) + "_" +
247 "CPI" + Twine(getFunctionNumber()) + "_" +
607 ArchFS = (Twine(ArchFS) + "," + FS).str();
607 ArchFS = (Twine(ArchFS) + "," + FS).str();
769 + "BF" + Twine(FunctionNumber) + "_" + Twine(LabelId));
769 + "BF" + Twine(FunctionNumber) + "_" + Twine(LabelId));
769 + "BF" + Twine(FunctionNumber) + "_" + Twine(LabelId));
769 + "BF" + Twine(FunctionNumber) + "_" + Twine(LabelId));
777 + "PC" + Twine(FunctionNumber) + "_" + Twine(LabelId));
777 + "PC" + Twine(FunctionNumber) + "_" + Twine(LabelId));
777 + "PC" + Twine(FunctionNumber) + "_" + Twine(LabelId));
777 + "PC" + Twine(FunctionNumber) + "_" + Twine(LabelId));
lib/Target/ARM/ARMISelLowering.cpp 2999 Twine(DAG.getDataLayout().getPrivateGlobalPrefix()) + "CP" +
2999 Twine(DAG.getDataLayout().getPrivateGlobalPrefix()) + "CP" +
3000 Twine(DAG.getMachineFunction().getFunctionNumber()) + "_" +
3000 Twine(DAG.getMachineFunction().getFunctionNumber()) + "_" +
5578 + StringRef(RegName) + "\"."));
lib/Target/ARM/ARMSubtarget.cpp 181 ArchFS = (Twine(ArchFS) + "," + FS).str();
181 ArchFS = (Twine(ArchFS) + "," + FS).str();
lib/Target/ARM/ARMTargetMachine.cpp 291 F.getContext().emitError("Function '" + F.getName() + "' uses ARM "
lib/Target/ARM/AsmParser/ARMAsmParser.cpp 4355 ARMInstPrinter::getRegisterName(Reg) +
4388 Warning(RegLoc, "duplicated register (" + RegTok.getString() +
4414 Warning(RegLoc, "duplicated register (" + RegTok.getString() +
6814 return Error(Loc, "illegal IT block condition mask '" + ITMask + "'");
6840 return Error(NameLoc, "instruction '" + Mnemonic +
6846 return Error(NameLoc, "instruction '" + Mnemonic +
6853 return Error(NameLoc, "instruction '" + Mnemonic +
7317 StringRef(ARMCondCodeToString(Cond)) +
7318 "', but expected '" +
7319 ARMCondCodeToString(currentITCond()) + "'");
7364 StringRef(ARMVPTPredToString(ARMVCC::VPTCodes(Pred))) +
7365 "', but expected '" +
7366 ARMVPTPredToString(ARMVCC::VPTCodes(VPTPred)) + "'");
7536 Twine("destination vector register and vector ") +
7537 (QmIsPointer ? "pointer" : "offset") +
10737 "redefinition of '" + Name + "' does not match original.");
10774 Warning(Loc, Twine("new target does not support ") +
10775 (WasThumb ? "thumb" : "arm") + " mode, switching to " +
10775 (WasThumb ? "thumb" : "arm") + " mode, switching to " +
10776 (!WasThumb ? "thumb" : "arm") + " mode");
11450 return Error(ArchLoc, "unknown architecture '" + Arch + "'");
11484 parseToken(AsmToken::Comma, "expected comma after name '" + Name + "'"))
11783 return Error(ExtLoc, "architectural extension '" + Name +
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp 64 return (Twine("__aeabi_unwind_cpp_pr") + Twine(Index)).str();
648 Name + "." + Twine(MappingSymbolCounter++)));
659 Name + "." + Twine(MappingSymbolCounter++)));
895 report_fatal_error("Unknown Arch: " + Twine(ARM::getArchName(Arch)));
1031 report_fatal_error("Unknown FPU: " + Twine(FPU));
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp 141 ARMArchFeature = (ARMArchFeature + "+" + ARM::getArchName(ArchID)).str();
169 ArchFS = (Twine(ArchFS) + "," + FS).str();
169 ArchFS = (Twine(ArchFS) + "," + FS).str();
lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp 165 "symbol '" + A->getName() +
180 "symbol '" + B->getSymbol().getName() +
279 "symbol '" + A->getName() +
295 "symbol '" + B->getSymbol().getName() +
lib/Target/ARM/MCTargetDesc/ARMWinCOFFObjectWriter.cpp 59 report_fatal_error(Twine("unsupported relocation type: ") + Info.Name);
lib/Target/BPF/BPFISelLowering.cpp 374 + "' is not supported."));
698 report_fatal_error("unimplemented select CondCode " + Twine(CC));
lib/Target/BPF/BTFDebug.cpp 38 OS.AddComment("0x" + Twine::utohexstr(BTFType.Info));
150 OS.AddComment("0x" + Twine::utohexstr(IntVal));
257 OS.AddComment("0x" + Twine::utohexstr(Member.Offset));
712 OS.AddComment("0x" + Twine::utohexstr(BTF::MAGIC));
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp 522 return getParser().Error(IDLoc, llvm::Twine("'") + Option +
522 return getParser().Error(IDLoc, llvm::Twine("'") + Option +
1515 Sym = getContext().getOrCreateSymbol(DotConst +
lib/Target/Hexagon/HexagonBitTracker.cpp 129 (Twine("Unhandled physical register") + TRI.getName(Reg)).str().c_str());
lib/Target/Hexagon/HexagonMachineScheduler.h 157 : Available(ID, Name+".A"),
158 Pending(ID << ConvergingVLIWScheduler::LogMaxQID, Name+".P") {}
lib/Target/Hexagon/HexagonTargetObjectFile.cpp 383 Twine Name = Twine(".scommon") + getSectionSuffixForSize(Size);
lib/Target/Hexagon/MCTargetDesc/HexagonMCChecker.cpp 502 reportError(Inst.getLoc(), "Cannot write to read-only register `" +
503 Twine(RI.getName(Register)) + "'");
557 reportWarning("Register `" + Twine(RI.getName(Register)) +
557 reportWarning("Register `" + Twine(RI.getName(Register)) +
639 reportWarning("register `" + Twine(RI.getName(R)) +
639 reportWarning("register `" + Twine(RI.getName(R)) +
701 reportError("register `" + Twine(RI.getName(Register)) +
701 reportError("register `" + Twine(RI.getName(Register)) +
706 reportError("register `" + Twine(RI.getName(Register)) +
706 reportError("register `" + Twine(RI.getName(Register)) +
lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp 125 report_fatal_error("Symbol: " + Symbol->getName() +
lib/Target/Mips/AsmParser/MipsAsmParser.cpp 5782 Warning(Loc, "used $at (currently $" + Twine(RegIndex) +
5782 Warning(Loc, "used $at (currently $" + Twine(RegIndex) +
5866 "Did you mean $" + FixedName + "?", RegRange);
8073 return Error(L, "'" + Twine(Option) + "' is not a valid .module option.");
8073 return Error(L, "'" + Twine(Option) + "' is not a valid .module option.");
8129 reportParseError("'" + Directive + " fp=xx' requires the O32 ABI");
8155 reportParseError("'" + Directive + " fp=32' requires the O32 ABI");
lib/Target/Mips/MipsAsmPrinter.cpp 1035 OutStreamer->AddComment("\t# Stub function to call " + Twine(RetType) + " " +
1035 OutStreamer->AddComment("\t# Stub function to call " + Twine(RetType) + " " +
1035 OutStreamer->AddComment("\t# Stub function to call " + Twine(RetType) + " " +
1036 Twine(Symbol) + " (" + Twine(Parms) + ")");
1036 Twine(Symbol) + " (" + Twine(Parms) + ")");
1036 Twine(Symbol) + " (" + Twine(Parms) + ")");
1069 OutContext.getOrCreateSymbol("__call_stub_fp_" + Twine(Symbol));
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 512 OutStreamer->AddComment(Twine("implicit-def: ") +
516 OutStreamer->AddComment(Twine("implicit-def: ") +
1170 report_fatal_error("initial value of '" + GVar->getName() +
1171 "' is not allowed in addrspace(" +
1172 Twine(PTy->getAddressSpace()) + ")");
1275 report_fatal_error("Bad address space found while emitting PTX: " +
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 1660 ID.getIdentifier() + "' directive");
1668 return addErrorSuffix(" in '" + ID.getIdentifier() + "' directive");
lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp 209 report_fatal_error("symbol '" + A->getName() +
221 report_fatal_error("symbol '" + SB->getName() +
245 "r_address (") +
246 Buffer + ") into 24 bits of scattered "
lib/Target/PowerPC/PPCISelLowering.cpp 5315 MCSymbol *S = Context.getOrCreateSymbol(Twine(".") +
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp 178 return (I->getName() + Suffix).str();
lib/Target/PowerPC/PPCMachineFunctionInfo.cpp 20 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
21 Twine(MF.getFunctionNumber()) +
27 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
28 "func_gep" +
34 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
35 "func_lep" +
41 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) +
42 "func_toc" +
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp 775 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
775 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
775 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
775 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
775 return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
1060 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1060 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1060 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1060 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1060 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1082 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1082 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1082 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1082 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1082 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1088 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1088 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1088 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1088 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
1088 Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
lib/Target/Sparc/SparcFrameLowering.cpp 108 report_fatal_error("Function \"" + Twine(MF.getName()) + "\" required "
108 report_fatal_error("Function \"" + Twine(MF.getName()) + "\" required "
lib/Target/Sparc/SparcISelLowering.cpp 2557 report_fatal_error("Function \"" + Twine(MF.getName()) + "\": "
2557 report_fatal_error("Function \"" + Twine(MF.getName()) + "\": "
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp 219 return Parser.Error(Tok.getLoc(), Msg + Tok.getString());
253 return error(Twine("End of block construct with no start: ") + Ins);
256 return error(Twine("Block construct type mismatch, expected: ") +
257 nestingString(Top).second + ", instead got: " + Ins);
257 nestingString(Top).second + ", instead got: " + Ins);
265 error(Twine("Unmatched block construct(s) at function end: ") +
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp 116 F.getName() + "\n");
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 1223 MCSymbol *S = Context.getOrCreateSymbol(Twine("GCC_except_table") +
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 320 report_fatal_error(Twine("unable to create global: ") + Name);
361 "__cxa_find_matching_catch_" + Twine(NumClauses + 2), &M);
970 F.getName() +
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp 139 "call_dtors" +
140 (Priority != UINT16_MAX ? (Twine(".") + Twine(Priority))
141 : Twine()) +
142 (!Associated->isNullValue() ? (Twine(".") + Associated->getName())
155 "register_call_dtors" +
156 (Priority != UINT16_MAX ? (Twine(".") + Twine(Priority))
157 : Twine()) +
158 (!Associated->isNullValue() ? (Twine(".") + Associated->getName())
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp 225 Ret += (StringRef("+") + KV.Key + ",").str();
lib/Target/X86/AsmParser/X86AsmParser.cpp 1133 "register %" + RegName + " is only available in 64-bit mode",
3026 "source register '" + RegName + "' implicitly denotes '" +
3026 "source register '" + RegName + "' implicitly denotes '" +
3027 RegName.take_front(3) + Twine(GroupStart) + "' to '" +
3027 RegName.take_front(3) + Twine(GroupStart) + "' to '" +
3027 RegName.take_front(3) + Twine(GroupStart) + "' to '" +
3028 RegName.take_front(3) + Twine(GroupEnd) +
3028 RegName.take_front(3) + Twine(GroupEnd) +
3289 return Error(IDLoc, "invalid instruction mnemonic '" + Base + "'",
3466 return Error(IDLoc, "invalid instruction mnemonic '" + Mnemonic + "'",
3512 "ambiguous operand size for instruction '" + Mnemonic + "\'",
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp 295 ArchFS = (Twine(ArchFS) + "," + FS).str();
295 ArchFS = (Twine(ArchFS) + "," + FS).str();
lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp 192 Name + "' can not be undefined in a subtraction expression");
262 Symbol->getName() + "'");
268 Symbol->getName() + "'");
382 "symbol '" + A->getName() +
398 "symbol '" + SB->getName() +
424 "r_address (") + Buffer +
424 "r_address (") + Buffer +
lib/Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp 391 Ctx.reportError(L, Twine("no FPO data found for symbol ") +
lib/Target/X86/X86AsmPrinter.cpp 131 GVSym = OutContext.getOrCreateSymbol(Twine("__imp_") + GVSym->getName());
134 OutContext.getOrCreateSymbol(Twine(".refptr.") + GVSym->getName());
lib/Target/X86/X86FrameLowering.cpp 2551 + " required but not provided");
lib/Target/X86/X86ISelLowering.cpp23543 MCSymbol *S = Context.getOrCreateSymbol(Twine("GCC_except_table") +
24265 report_fatal_error("register " + StringRef(RegName) +
lib/Target/X86/X86WinEHState.cpp 403 Twine("__ehhandler$") + GlobalValue::dropLLVMManglingEscape(
lib/Target/XCore/XCoreAsmPrinter.cpp 95 Twine(Sym->getName() + StringRef(".globound")));
lib/Target/XCore/XCoreFrameLowering.cpp 238 + Twine(MFI.getMaxAlignment()));
lib/TextAPI/MachO/Target.cpp 51 return (getArchitectureName(Arch) + " (" + getPlatformName(Platform) + ")")
51 return (getArchitectureName(Arch) + " (" + getPlatformName(Platform) + ")")
lib/ToolDrivers/llvm-lib/LibDriver.cpp 249 (" (inferred from earlier file '" + MB.getBufferIdentifier() + "')")
lib/Transforms/Coroutines/CoroFrame.cpp 645 G->setName(CurrentValue->getName() + Twine(".reload.addr"));
650 CurrentValue->getName() + Twine(".reload"));
717 CurrentValue->getName() + Twine(".spill.addr"));
905 IncomingBB->setName(BB.getName() + Twine(".from.") + Pred->getName());
905 IncomingBB->setName(BB.getName() + Twine(".from.") + Pred->getName());
911 V->getType(), 1, V->getName() + Twine(".") + BB.getName(),
911 V->getType(), 1, V->getName() + Twine(".") + BB.getName(),
1009 splitBlockIfNotFirst(I->getNextNode(), "After" + Name);
lib/Transforms/Coroutines/CoroSplit.cpp 341 SuspendBB->splitBasicBlock(S, "resume." + Twine(SuspendIndex));
343 S->getNextNode(), ResumeBB->getName() + Twine(".landing"));
401 OrigF.getName() + Suffix);
566 Entry->setName("entry" + Suffix);
833 F.getName() + Twine(".resumers"));
1246 createCloneDeclaration(F, Shape, ".resume." + Twine(i), NextF);
1314 CoroCloner(F, "resume." + Twine(i), Shape, Clone, Suspend).create();
lib/Transforms/IPO/ArgumentPromotion.cpp 267 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i));
399 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i),
401 I2->setName(I->getName() + "." + Twine(i));
lib/Transforms/IPO/GlobalOpt.cpp 488 In, GV->getName()+"."+Twine(i),
524 In, GV->getName()+"."+Twine(i),
583 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(Val), GEPI);
1174 LI->getName() + ".f" + Twine(FieldNo), LI);
1187 PN->getName()+".f"+Twine(FieldNo), PN);
1305 Constant::getNullValue(PFieldTy), GV->getName() + ".f" + Twine(FieldNo),
1317 CI->getName() + ".f" + Twine(FieldNo));
lib/Transforms/IPO/GlobalSplit.cpp 81 Init->getOperand(I), GV.getName() + "." + utostr(I));
lib/Transforms/IPO/LowerTypeTests.cpp 910 "__typeid_" + TypeId + "_" + Name, C, &M);
910 "__typeid_" + TypeId + "_" + Name, C, &M);
964 Constant *C = M.getOrInsertGlobal(("__typeid_" + TypeId + "_" + Name).str(),
964 Constant *C = M.getOrInsertGlobal(("__typeid_" + TypeId + "_" + Name).str(),
2188 (llvm::Twine(".symver ") + SymbolName + ", " + Alias).str());
2188 (llvm::Twine(".symver ") + SymbolName + ", " + Alias).str());
2188 (llvm::Twine(".symver ") + SymbolName + ", " + Alias).str());
lib/Transforms/IPO/SampleProfile.cpp 1537 "No debug information found in function " + F.getName() +
1645 Twine(Used) + " of " + Twine(Total) + " available profile records (" +
1645 Twine(Used) + " of " + Twine(Total) + " available profile records (" +
1645 Twine(Used) + " of " + Twine(Total) + " available profile records (" +
1645 Twine(Used) + " of " + Twine(Total) + " available profile records (" +
1646 Twine(Coverage) + "%) were applied",
1658 Twine(Used) + " of " + Twine(Total) + " available profile samples (" +
1658 Twine(Used) + " of " + Twine(Total) + " available profile samples (" +
1658 Twine(Used) + " of " + Twine(Total) + " available profile samples (" +
1658 Twine(Used) + " of " + Twine(Total) + " available profile samples (" +
1659 Twine(Coverage) + "%) were applied",
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 56 std::string NewName = (Name + ModuleId).str();
95 std::string NewName = (Twine(LocalToGlobal.size()) + ModuleId).str();
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 466 NewTy, NewPtr, LI.getAlignment(), LI.isVolatile(), LI.getName() + Suffix);
lib/Transforms/InstCombine/InstCombinePHI.cpp 1051 PN->getName()+".off"+Twine(Offset), PN);
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1989 G->setName(Twine(kAsanGenPrefix) + "_anon_global");
2025 Twine("__asan_global_") + GlobalValue::dropLLVMManglingEscape(OriginalName));
2146 Twine("__asan_binder_") + G->getName());
2907 (Arg.hasName() ? Arg.getName() : "Arg" + Twine(Arg.getArgNo())) +
2907 (Arg.hasName() ? Arg.getName() : "Arg" + Twine(Arg.getArgNo())) +
lib/Transforms/Instrumentation/GCOVProfiling.cpp 463 Ctx->emitError(Twine("Regex ") + HeadTail.first +
463 Ctx->emitError(Twine("Regex ") + HeadTail.first +
464 " is not valid: " + Err);
683 Ctx->emitError(Twine("failed to open coverage notes file for writing: ") +
1037 Twine("__llvm_internal_gcov_emit_function_args.") + Twine(i));
1046 Twine("__llvm_internal_gcov_emit_arcs_args.") + Twine(i));
lib/Transforms/Instrumentation/InstrOrderFile.cpp 106 report_fatal_error(Twine("Failed to open ") + ClOrderFileWriteMapping +
106 report_fatal_error(Twine("Failed to open ") + ClOrderFileWriteMapping +
lib/Transforms/Instrumentation/InstrProfiling.cpp 681 return (Prefix + Name).str();
684 if (Name.endswith((Twine(".") + Twine(FuncHash)).toStringRef(HashPostfix)))
685 return (Prefix + Name).str();
686 return (Prefix + Name + "." + Twine(FuncHash)).str();
686 return (Prefix + Name + "." + Twine(FuncHash)).str();
686 return (Prefix + Name + "." + Twine(FuncHash)).str();
lib/Transforms/Instrumentation/PGOInstrumentation.cpp 493 return (Twine(Removed ? "-" : " ") + (InMST ? " " : "*") +
493 return (Twine(Removed ? "-" : " ") + (InMST ? " " : "*") +
494 (IsCritical ? "c" : " ") + " W=" + Twine(Weight)).str();
494 (IsCritical ? "c" : " ") + " W=" + Twine(Weight)).str();
508 return (Twine("Index=") + Twine(Index)).str();
562 MST.dumpEdges(dbgs(), Twine("Dump Function ") + FuncName + " Hash: " +
562 MST.dumpEdges(dbgs(), Twine("Dump Function ") + FuncName + " Hash: " +
562 MST.dumpEdges(dbgs(), Twine("Dump Function ") + FuncName + " Hash: " +
563 Twine(FunctionHash) + "\t" + Str);
563 Twine(FunctionHash) + "\t" + Str);
678 Twine(F.getName() + "." + Twine(FunctionHash)).str();
681 FuncName = Twine(FuncName + "." + Twine(FunctionHash)).str();
698 Twine(OrigComdat->getName() + "." + Twine(FunctionHash)).str();
707 GA->setName(Twine(GA->getName() + "." + Twine(FunctionHash)));
891 return (Twine(PGOEdge::infoString()) + " Count=" + Twine(CountValue))
891 return (Twine(PGOEdge::infoString()) + " Count=" + Twine(CountValue))
922 return (Twine(BBInfo::infoString()) + " Count=" + Twine(CountValue)).str();
922 return (Twine(BBInfo::infoString()) + " Count=" + Twine(CountValue)).str();
1200 Twine("Inconsistent number of counts in ") + F.getName().str()
1201 + Twine(": the profile may be stale or there is a function name collision."),
1423 Twine("Inconsistent number of value sites for ") +
1424 Twine(ValueProfKindDescr[Kind]) +
1425 Twine(" profiling in \"") + F.getName().str() +
1425 Twine(" profiling in \"") + F.getName().str() +
1611 WriteGraph(&Func, Twine("PGORawCounts_") + Func.getFunc().getName());
1613 ViewGraph(&Func, Twine("PGORawCounts_") + Func.getFunc().getName());
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp 374 Ctx, Twine("MemOP.Case.") + Twine(SizeId), &Func, DefaultBB);
lib/Transforms/Instrumentation/SanitizerCoverage.cpp 433 C->emitError(StringRef("'") + SanCovLowestStackName +
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 1131 BasicBlock *Clone = CloneBasicBlock(BB, Result.Map, Twine(".") + Tag, &F);
1255 RRI.ExitSelector = BasicBlock::Create(Ctx, Twine(LS.Tag) + ".exit.selector",
1257 RRI.PseudoExit = BasicBlock::Create(Ctx, Twine(LS.Tag) + ".pseudo.exit", &F,
lib/Transforms/Scalar/LoopDistribute.cpp 188 VMap, Twine(".ldist") + Twine(Index),
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 2658 PtrA->getName() + ".vs." + PtrB->getName() + ".eqcmp"));
2658 PtrA->getName() + ".vs." + PtrB->getName() + ".eqcmp"));
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 364 return V->hasName() ? (V->getName() + Suffix).str() : DefaultName.str();
lib/Transforms/Scalar/SROA.cpp 135 return Name.isTriviallyEmpty() ? Name : Prefix + Name;
1304 (PN.getName() + ".sroa.speculate.load." + Pred->getName()));
1408 BasePtr, Indices, NamePrefix + "sroa_idx");
1660 NamePrefix + "sroa_raw_cast");
1668 NamePrefix + "sroa_raw_idx");
1676 NamePrefix + "sroa_cast");
2141 V = IRB.CreateLShr(V, ShAmt, Name + ".shift");
2147 V = IRB.CreateTrunc(V, Ty, Name + ".trunc");
2161 V = IRB.CreateZExt(V, IntTy, Name + ".ext");
2170 V = IRB.CreateShl(V, ShAmt, Name + ".shift");
2176 Old = IRB.CreateAnd(Old, Mask, Name + ".mask");
2178 V = IRB.CreateOr(Old, V, Name + ".insert");
2195 Name + ".extract");
2205 ConstantVector::get(Mask), Name + ".extract");
2219 Name + ".insert");
2244 ConstantVector::get(Mask), Name + ".expand");
2251 V = IRB.CreateSelect(ConstantVector::get(Mask), V, Old, Name + "blend");
2374 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + ".");
2374 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + ".");
2374 IRB.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) + ".");
2423 Twine(OldName) + "."
3322 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx));
3322 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx));
3337 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx));
3337 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx));
3362 IRB.CreateInBoundsGEP(BaseTy, Ptr, GEPIndices, Name + ".gep");
3363 LoadInst *Load = IRB.CreateAlignedLoad(Ty, GEP, Align, Name + ".load");
3366 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert");
3405 IRB.CreateExtractValue(Agg, Indices, Name + ".extract");
3407 IRB.CreateInBoundsGEP(BaseTy, Ptr, GEPIndices, Name + ".gep");
4168 AI.getName() + ".sroa." + Twine(P.begin() - AS.begin()), &AI);
lib/Transforms/Scalar/Scalarizer.cpp 269 V->getName() + ".i" + Twine(I));
294 V->getName() + ".i" + Twine(I));
453 Res[Elem] = Split(Builder, Op[Elem], I.getName() + ".i" + Twine(Elem));
476 I.getName() + ".i" + Twine(Elem));
545 CI.getName() + ".i" + Twine(Elem));
571 SI.getName() + ".i" + Twine(I));
576 SI.getName() + ".i" + Twine(I));
635 GEPI.getName() + ".i" + Twine(I));
657 CI.getName() + ".i" + Twine(I));
678 BCI.getName() + ".i" + Twine(I));
707 BCI.getName() + ".i" + Twine(ResI)
708 + ".upto" + Twine(MidI));
708 + ".upto" + Twine(MidI));
710 BCI.getName() + ".i" + Twine(ResI));
754 PHI.getName() + ".i" + Twine(I));
786 LI.getName() + ".i" + Twine(I));
844 Op->getName() + ".upto" + Twine(I));
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp 1027 ExitBB->setName(Twine(MergeBB->getName()) + ".split");
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp 659 NewI->setName(Twine(OrigI->getName()) + "." + Twine(PredIdx));
659 NewI->setName(Twine(OrigI->getName()) + "." + Twine(PredIdx));
705 Twine(OrigI->getName()) + ".phi");
lib/Transforms/Utils/BasicBlockUtils.cpp 739 Clone1->setName(Twine("lpad") + Suffix1);
744 Clone2->setName(Twine("lpad") + Suffix2);
lib/Transforms/Utils/BreakCriticalEdges.cpp 162 TIBB->getName() + "." + DestBB->getName() + "_crit_edge");
162 TIBB->getName() + "." + DestBB->getName() + "_crit_edge");
lib/Transforms/Utils/CloneFunction.cpp 47 NewBB->setName(BB->getName() + NameSuffix);
59 NewInst->setName(I.getName() + NameSuffix);
lib/Transforms/Utils/CodeExtractor.cpp 825 oldFunction->getName() + "." + SuffixToUse, M);
lib/Transforms/Utils/EntryExitInstrumenter.cpp 62 report_fatal_error(Twine("Unknown instrumentation function: '") + Func + "'");
62 report_fatal_error(Twine("Unknown instrumentation function: '") + Func + "'");
lib/Transforms/Utils/LoopUnroll.cpp 608 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It));
lib/Transforms/Utils/LoopUnrollAndJam.cpp 320 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It));
lib/Transforms/Utils/MetaRenamer.cpp 119 STy->setName((Twine("struct.") +
lib/Transforms/Utils/NameAnonGlobals.cpp 72 GV.setName(Twine("anon.") + ModuleHash.get() + "." + Twine(count++));
72 GV.setName(Twine("anon.") + ModuleHash.get() + "." + Twine(count++));
72 GV.setName(Twine("anon.") + ModuleHash.get() + "." + Twine(count++));
lib/Transforms/Utils/PredicateInfo.cpp 562 B.CreateCall(IF, Op, Op->getName() + "." + Twine(Counter++));
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 854 Allocas[AllocaNo]->getName() + "." + Twine(Version++),
lib/Transforms/Utils/SimplifyCFG.cpp 1409 BB1V->getName() + "." + BB2V->getName(), BI));
lib/Transforms/Utils/SymbolRewriter.cpp 184 report_fatal_error("unable to transforn " + C.getName() + " in " +
184 report_fatal_error("unable to transforn " + C.getName() + " in " +
185 M.getModuleIdentifier() + ": " + Error);
185 M.getModuleIdentifier() + ": " + Error);
lib/Transforms/Vectorize/LoopVectorize.cpp 6987 std::string RegionName = (Twine("pred.") + Instr->getOpcodeName()).str();
6990 auto *Entry = new VPBasicBlock(Twine(RegionName) + ".entry", BOMRecipe);
6993 auto *Exit = new VPBasicBlock(Twine(RegionName) + ".continue", PHIRecipe);
6994 auto *Pred = new VPBasicBlock(Twine(RegionName) + ".if", PredRecipe);
7183 VPBB->setName(BB->hasName() ? BB->getName() + "." + Twine(VPBBsForBB++)
lib/Transforms/Vectorize/VPlan.cpp 491 return (isa<VPRegionBlock>(Block) ? "cluster_N" : "N") +
499 return "VPB" + Twine(getOrCreateBID(Block));
lib/XRay/InstrumentationMap.cpp 186 Twine("Failed memory-mapping file '") + Filename + "'.", EC);
186 Twine("Failed memory-mapping file '") + Filename + "'.", EC);
193 Twine("Failed loading YAML document from '") + Filename + "'.",
193 Twine("Failed loading YAML document from '") + Filename + "'.",
lib/XRay/Profile.cpp 58 Twine("Error parsing block header size at offset '") +
59 Twine(CurrentOffset) + "'",
65 Twine("Error parsing block header number at offset '") +
66 Twine(CurrentOffset) + "'",
72 Twine("Error parsing block header thread id at offset '") +
73 Twine(CurrentOffset) + "'",
88 Twine("Error parsing path at offset '") + Twine(CurrentOffset) + "'",
88 Twine("Error parsing path at offset '") + Twine(CurrentOffset) + "'",
106 Twine("Error parsing call counts at offset '") + Twine(CurrentOffset) +
106 Twine("Error parsing call counts at offset '") + Twine(CurrentOffset) +
113 Twine("Error parsing cumulative local time at offset '") +
114 Twine(CurrentOffset) + "'",
135 Twine("PathID not found: ") + Twine(P),
270 Twine("Cannot get filesize of '") + Filename + "'", EC);
270 Twine("Cannot get filesize of '") + Filename + "'", EC);
279 Twine("Cannot mmap profile '") + Filename + "'", EC);
279 Twine("Cannot mmap profile '") + Filename + "'", EC);
lib/XRay/Trace.cpp 366 Twine("Unsupported XRay file version: ") + Twine(FileHeader.Version),
388 Twine("Cannot read log from '") + Filename + "'", EC);
388 Twine("Cannot read log from '") + Filename + "'", EC);
392 Twine("File '") + Filename + "' too small for XRay.",
392 Twine("File '") + Filename + "' too small for XRay.",
404 Twine("Cannot read log from '") + Filename + "'", EC);
404 Twine("Cannot read log from '") + Filename + "'", EC);
449 Twine("Unsupported version for Basic/Naive Mode logging: ") +
461 Twine("Unsupported version for FDR Mode logging: ") + Twine(Version),
tools/clang/include/clang/Basic/Features.def 39 FEATURE(address_sanitizer,
42 FEATURE(leak_sanitizer,
44 FEATURE(hwaddress_sanitizer,
47 FEATURE(memtag_sanitizer, LangOpts.Sanitize.has(SanitizerKind::MemTag))
48 FEATURE(xray_instrument, LangOpts.XRayInstrument)
49 FEATURE(undefined_behavior_sanitizer,
51 FEATURE(assume_nonnull, true)
52 FEATURE(attribute_analyzer_noreturn, true)
53 FEATURE(attribute_availability, true)
54 FEATURE(attribute_availability_with_message, true)
55 FEATURE(attribute_availability_app_extension, true)
56 FEATURE(attribute_availability_with_version_underscores, true)
57 FEATURE(attribute_availability_tvos, true)
58 FEATURE(attribute_availability_watchos, true)
59 FEATURE(attribute_availability_with_strict, true)
60 FEATURE(attribute_availability_with_replacement, true)
61 FEATURE(attribute_availability_in_templates, true)
62 FEATURE(attribute_availability_swift, true)
63 FEATURE(attribute_cf_returns_not_retained, true)
64 FEATURE(attribute_cf_returns_retained, true)
65 FEATURE(attribute_cf_returns_on_parameters, true)
66 FEATURE(attribute_deprecated_with_message, true)
67 FEATURE(attribute_deprecated_with_replacement, true)
68 FEATURE(attribute_ext_vector_type, true)
69 FEATURE(attribute_ns_returns_not_retained, true)
70 FEATURE(attribute_ns_returns_retained, true)
71 FEATURE(attribute_ns_consumes_self, true)
72 FEATURE(attribute_ns_consumed, true)
73 FEATURE(attribute_cf_consumed, true)
74 FEATURE(attribute_objc_ivar_unused, true)
75 FEATURE(attribute_objc_method_family, true)
76 FEATURE(attribute_overloadable, true)
77 FEATURE(attribute_unavailable_with_message, true)
78 FEATURE(attribute_unused_on_fields, true)
79 FEATURE(attribute_diagnose_if_objc, true)
80 FEATURE(blocks, LangOpts.Blocks)
81 FEATURE(c_thread_safety_attributes, true)
82 FEATURE(cxx_exceptions, LangOpts.CXXExceptions)
83 FEATURE(cxx_rtti, LangOpts.RTTI &&LangOpts.RTTIData)
84 FEATURE(enumerator_attributes, true)
85 FEATURE(nullability, true)
86 FEATURE(nullability_on_arrays, true)
87 FEATURE(memory_sanitizer,
90 FEATURE(thread_sanitizer, LangOpts.Sanitize.has(SanitizerKind::Thread))
91 FEATURE(dataflow_sanitizer, LangOpts.Sanitize.has(SanitizerKind::DataFlow))
92 FEATURE(scudo, LangOpts.Sanitize.hasOneOf(SanitizerKind::Scudo))
94 FEATURE(objc_arr, LangOpts.ObjCAutoRefCount) // FIXME: REMOVE?
95 FEATURE(objc_arc, LangOpts.ObjCAutoRefCount)
96 FEATURE(objc_arc_fields, true)
97 FEATURE(objc_arc_weak, LangOpts.ObjCWeak)
98 FEATURE(objc_default_synthesize_properties, LangOpts.ObjC)
99 FEATURE(objc_fixed_enum, LangOpts.ObjC)
100 FEATURE(objc_instancetype, LangOpts.ObjC)
101 FEATURE(objc_kindof, LangOpts.ObjC)
102 FEATURE(objc_modules, LangOpts.ObjC && LangOpts.Modules)
103 FEATURE(objc_nonfragile_abi, LangOpts.ObjCRuntime.isNonFragile())
104 FEATURE(objc_property_explicit_atomic, true)
105 FEATURE(objc_protocol_qualifier_mangling, true)
106 FEATURE(objc_weak_class, LangOpts.ObjCRuntime.hasWeakClassImport())
107 FEATURE(ownership_holds, true)
108 FEATURE(ownership_returns, true)
109 FEATURE(ownership_takes, true)
110 FEATURE(objc_bool, true)
111 FEATURE(objc_subscripting, LangOpts.ObjCRuntime.isNonFragile())
112 FEATURE(objc_array_literals, LangOpts.ObjC)
113 FEATURE(objc_dictionary_literals, LangOpts.ObjC)
114 FEATURE(objc_boxed_expressions, LangOpts.ObjC)
115 FEATURE(objc_boxed_nsvalue_expressions, LangOpts.ObjC)
116 FEATURE(arc_cf_code_audited, true)
117 FEATURE(objc_bridge_id, true)
118 FEATURE(objc_bridge_id_on_typedefs, true)
119 FEATURE(objc_generics, LangOpts.ObjC)
120 FEATURE(objc_generics_variance, LangOpts.ObjC)
121 FEATURE(objc_class_property, LangOpts.ObjC)
122 FEATURE(objc_c_static_assert, LangOpts.C11)
123 FEATURE(objc_cxx_static_assert, LangOpts.CPlusPlus11)
124 EXTENSION(objc_c_static_assert, true)
126 FEATURE(c_alignas, LangOpts.C11)
127 FEATURE(c_alignof, LangOpts.C11)
128 FEATURE(c_atomic, LangOpts.C11)
129 FEATURE(c_generic_selections, LangOpts.C11)
130 FEATURE(c_static_assert, LangOpts.C11)
131 FEATURE(c_thread_local, LangOpts.C11 &&PP.getTargetInfo().isTLSSupported())
133 FEATURE(cxx_access_control_sfinae, LangOpts.CPlusPlus11)
134 FEATURE(cxx_alias_templates, LangOpts.CPlusPlus11)
135 FEATURE(cxx_alignas, LangOpts.CPlusPlus11)
136 FEATURE(cxx_alignof, LangOpts.CPlusPlus11)
137 FEATURE(cxx_atomic, LangOpts.CPlusPlus11)
138 FEATURE(cxx_attributes, LangOpts.CPlusPlus11)
139 FEATURE(cxx_auto_type, LangOpts.CPlusPlus11)
140 FEATURE(cxx_constexpr, LangOpts.CPlusPlus11)
141 FEATURE(cxx_constexpr_string_builtins, LangOpts.CPlusPlus11)
142 FEATURE(cxx_decltype, LangOpts.CPlusPlus11)
143 FEATURE(cxx_decltype_incomplete_return_types, LangOpts.CPlusPlus11)
144 FEATURE(cxx_default_function_template_args, LangOpts.CPlusPlus11)
145 FEATURE(cxx_defaulted_functions, LangOpts.CPlusPlus11)
146 FEATURE(cxx_delegating_constructors, LangOpts.CPlusPlus11)
147 FEATURE(cxx_deleted_functions, LangOpts.CPlusPlus11)
148 FEATURE(cxx_explicit_conversions, LangOpts.CPlusPlus11)
149 FEATURE(cxx_generalized_initializers, LangOpts.CPlusPlus11)
150 FEATURE(cxx_implicit_moves, LangOpts.CPlusPlus11)
151 FEATURE(cxx_inheriting_constructors, LangOpts.CPlusPlus11)
152 FEATURE(cxx_inline_namespaces, LangOpts.CPlusPlus11)
153 FEATURE(cxx_lambdas, LangOpts.CPlusPlus11)
154 FEATURE(cxx_local_type_template_args, LangOpts.CPlusPlus11)
155 FEATURE(cxx_nonstatic_member_init, LangOpts.CPlusPlus11)
156 FEATURE(cxx_noexcept, LangOpts.CPlusPlus11)
157 FEATURE(cxx_nullptr, LangOpts.CPlusPlus11)
158 FEATURE(cxx_override_control, LangOpts.CPlusPlus11)
159 FEATURE(cxx_range_for, LangOpts.CPlusPlus11)
160 FEATURE(cxx_raw_string_literals, LangOpts.CPlusPlus11)
161 FEATURE(cxx_reference_qualified_functions, LangOpts.CPlusPlus11)
162 FEATURE(cxx_rvalue_references, LangOpts.CPlusPlus11)
163 FEATURE(cxx_strong_enums, LangOpts.CPlusPlus11)
164 FEATURE(cxx_static_assert, LangOpts.CPlusPlus11)
165 FEATURE(cxx_thread_local,
167 FEATURE(cxx_trailing_return, LangOpts.CPlusPlus11)
168 FEATURE(cxx_unicode_literals, LangOpts.CPlusPlus11)
169 FEATURE(cxx_unrestricted_unions, LangOpts.CPlusPlus11)
170 FEATURE(cxx_user_literals, LangOpts.CPlusPlus11)
171 FEATURE(cxx_variadic_templates, LangOpts.CPlusPlus11)
173 FEATURE(cxx_aggregate_nsdmi, LangOpts.CPlusPlus14)
174 FEATURE(cxx_binary_literals, LangOpts.CPlusPlus14)
175 FEATURE(cxx_contextual_conversions, LangOpts.CPlusPlus14)
176 FEATURE(cxx_decltype_auto, LangOpts.CPlusPlus14)
177 FEATURE(cxx_generic_lambdas, LangOpts.CPlusPlus14)
178 FEATURE(cxx_init_captures, LangOpts.CPlusPlus14)
179 FEATURE(cxx_relaxed_constexpr, LangOpts.CPlusPlus14)
180 FEATURE(cxx_return_type_deduction, LangOpts.CPlusPlus14)
181 FEATURE(cxx_variable_templates, LangOpts.CPlusPlus14)
193 FEATURE(has_nothrow_assign, LangOpts.CPlusPlus)
194 FEATURE(has_nothrow_copy, LangOpts.CPlusPlus)
195 FEATURE(has_nothrow_constructor, LangOpts.CPlusPlus)
196 FEATURE(has_trivial_assign, LangOpts.CPlusPlus)
197 FEATURE(has_trivial_copy, LangOpts.CPlusPlus)
198 FEATURE(has_trivial_constructor, LangOpts.CPlusPlus)
199 FEATURE(has_trivial_destructor, LangOpts.CPlusPlus)
200 FEATURE(has_virtual_destructor, LangOpts.CPlusPlus)
201 FEATURE(is_abstract, LangOpts.CPlusPlus)
202 FEATURE(is_base_of, LangOpts.CPlusPlus)
203 FEATURE(is_class, LangOpts.CPlusPlus)
204 FEATURE(is_constructible, LangOpts.CPlusPlus)
205 FEATURE(is_convertible_to, LangOpts.CPlusPlus)
206 FEATURE(is_empty, LangOpts.CPlusPlus)
207 FEATURE(is_enum, LangOpts.CPlusPlus)
208 FEATURE(is_final, LangOpts.CPlusPlus)
209 FEATURE(is_literal, LangOpts.CPlusPlus)
210 FEATURE(is_standard_layout, LangOpts.CPlusPlus)
211 FEATURE(is_pod, LangOpts.CPlusPlus)
212 FEATURE(is_polymorphic, LangOpts.CPlusPlus)
213 FEATURE(is_sealed, LangOpts.CPlusPlus &&LangOpts.MicrosoftExt)
214 FEATURE(is_trivial, LangOpts.CPlusPlus)
215 FEATURE(is_trivially_assignable, LangOpts.CPlusPlus)
216 FEATURE(is_trivially_constructible, LangOpts.CPlusPlus)
217 FEATURE(is_trivially_copyable, LangOpts.CPlusPlus)
218 FEATURE(is_union, LangOpts.CPlusPlus)
219 FEATURE(modules, LangOpts.Modules)
220 FEATURE(safe_stack, LangOpts.Sanitize.has(SanitizerKind::SafeStack))
221 FEATURE(shadow_call_stack,
223 FEATURE(tls, PP.getTargetInfo().isTLSSupported())
224 FEATURE(underlying_type, LangOpts.CPlusPlus)
227 EXTENSION(c_alignas, true)
228 EXTENSION(c_alignof, true)
229 EXTENSION(c_atomic, true)
230 EXTENSION(c_generic_selections, true)
231 EXTENSION(c_static_assert, true)
232 EXTENSION(c_thread_local, PP.getTargetInfo().isTLSSupported())
234 EXTENSION(cxx_atomic, LangOpts.CPlusPlus)
235 EXTENSION(cxx_deleted_functions, LangOpts.CPlusPlus)
236 EXTENSION(cxx_explicit_conversions, LangOpts.CPlusPlus)
237 EXTENSION(cxx_inline_namespaces, LangOpts.CPlusPlus)
238 EXTENSION(cxx_local_type_template_args, LangOpts.CPlusPlus)
239 EXTENSION(cxx_nonstatic_member_init, LangOpts.CPlusPlus)
240 EXTENSION(cxx_override_control, LangOpts.CPlusPlus)
241 EXTENSION(cxx_range_for, LangOpts.CPlusPlus)
242 EXTENSION(cxx_reference_qualified_functions, LangOpts.CPlusPlus)
243 EXTENSION(cxx_rvalue_references, LangOpts.CPlusPlus)
244 EXTENSION(cxx_variadic_templates, LangOpts.CPlusPlus)
245 EXTENSION(cxx_fixed_enum, true)
247 EXTENSION(cxx_binary_literals, true)
248 EXTENSION(cxx_init_captures, LangOpts.CPlusPlus11)
249 EXTENSION(cxx_variable_templates, LangOpts.CPlusPlus)
251 EXTENSION(overloadable_unmarked, true)
252 EXTENSION(pragma_clang_attribute_namespaces, true)
253 EXTENSION(pragma_clang_attribute_external_declaration, true)
254 EXTENSION(gnu_asm, LangOpts.GNUAsm)
tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def 74 ANALYZER_OPTION(
85 ANALYZER_OPTION(bool, ShouldIncludeImplicitDtorsInCFG, "cfg-implicit-dtors",
90 ANALYZER_OPTION(bool, ShouldIncludeTemporaryDtorsInCFG, "cfg-temporary-dtors",
95 ANALYZER_OPTION(
100 ANALYZER_OPTION(bool, ShouldIncludeLoopExitInCFG, "cfg-loopexit",
105 ANALYZER_OPTION(bool, ShouldIncludeRichConstructorsInCFG,
111 ANALYZER_OPTION(
115 ANALYZER_OPTION(
119 ANALYZER_OPTION(bool, MayInlineCXXStandardLibrary, "c++-stdlib-inlining",
124 ANALYZER_OPTION(bool, MayInlineCXXAllocator, "c++-allocator-inlining",
128 ANALYZER_OPTION(
135 ANALYZER_OPTION(bool, MayInlineCXXTemporaryDtors, "c++-temp-dtor-inlining",
142 ANALYZER_OPTION(
149 ANALYZER_OPTION(
158 ANALYZER_OPTION(bool, ShouldSuppressInlinedDefensiveChecks,
164 ANALYZER_OPTION(bool, MayInlineCXXContainerMethods, "c++-container-inlining",
169 ANALYZER_OPTION(bool, ShouldSuppressFromCXXStandardLibrary,
175 ANALYZER_OPTION(bool, ShouldCrosscheckWithZ3, "crosscheck-with-z3",
180 ANALYZER_OPTION(bool, ShouldReportIssuesInMainSourceFile,
186 ANALYZER_OPTION(bool, ShouldWriteStableReportFilename, "stable-report-filename",
190 ANALYZER_OPTION(
198 ANALYZER_OPTION(bool, MayInlineObjCMethod, "objc-inlining",
202 ANALYZER_OPTION(bool, ShouldPrunePaths, "prune-paths",
207 ANALYZER_OPTION(bool, ShouldAddPopUpNotes, "add-pop-up-notes",
211 ANALYZER_OPTION(
217 ANALYZER_OPTION(bool, ShouldSynthesizeBodies, "faux-bodies",
222 ANALYZER_OPTION(
231 ANALYZER_OPTION(
237 ANALYZER_OPTION(bool, ShouldWidenLoops, "widen-loops",
240 ANALYZER_OPTION(
244 ANALYZER_OPTION(
251 ANALYZER_OPTION(
267 ANALYZER_OPTION(
278 ANALYZER_OPTION(
284 ANALYZER_OPTION(bool, ShouldDisplayMacroExpansions, "expand-macros",
289 ANALYZER_OPTION(bool, DisplayCTUProgress, "display-ctu-progress",
294 ANALYZER_OPTION(bool, ShouldTrackConditions, "track-conditions",
299 ANALYZER_OPTION(bool, ShouldTrackConditionsDebug, "track-conditions-debug",
303 ANALYZER_OPTION(bool, ShouldEmitFixItHintsAsRemarks, "fixits-as-remarks",
311 ANALYZER_OPTION(unsigned, CTUImportThreshold, "ctu-import-threshold",
319 ANALYZER_OPTION(
325 ANALYZER_OPTION(
331 ANALYZER_OPTION(
338 ANALYZER_OPTION(unsigned, MaxSymbolComplexity, "max-symbol-complexity",
341 ANALYZER_OPTION(unsigned, MaxTimesInlineLarge, "max-times-inline-large",
344 ANALYZER_OPTION_DEPENDS_ON_USER_MODE(
349 ANALYZER_OPTION_DEPENDS_ON_USER_MODE(
355 ANALYZER_OPTION(
367 ANALYZER_OPTION(StringRef, CTUDir, "ctu-dir",
370 ANALYZER_OPTION(StringRef, CTUIndexName, "ctu-index-name",
374 ANALYZER_OPTION(
381 ANALYZER_OPTION(
387 ANALYZER_OPTION(
394 ANALYZER_OPTION(
400 ANALYZER_OPTION_DEPENDS_ON_USER_MODE(
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h 325 llvm::Twine Name = "$" + llvm::Twine(ID);
tools/clang/lib/ARCMigrate/FileRemapper.cpp 77 return report("Invalid file data: '" + lines[idx+1] + "' not a number",
176 return report(StringRef("File does not exist: ") + origFE->getName(),
tools/clang/lib/AST/ItaniumMangle.cpp 3166 ("__" + EltName + "x" + Twine(T->getNumElements()) + "_t").str();
3166 ("__" + EltName + "x" + Twine(T->getNumElements()) + "_t").str();
3166 ("__" + EltName + "x" + Twine(T->getNumElements()) + "_t").str();
tools/clang/lib/AST/JSONNodeDumper.cpp 73 JOS.attribute("kind", (llvm::Twine(T->getTypeClassName()) + "Type").str());
98 JOS.attribute("kind", (llvm::Twine(D->getDeclKindName()) + "Decl").str());
285 JOS.attribute("kind", (llvm::Twine(D->getDeclKindName()) + "Decl").str());
297 Ret["kind"] = (llvm::Twine(D->getDeclKindName()) + "Decl").str();
tools/clang/lib/AST/Mangle.cpp 362 llvm::Mangler::getNameWithPrefix(Mangled, Prefix + ClassName, DL);
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 393 return ("(anonymous " + Node.getKindName() + ")").toStringRef(Scratch);
tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp 181 "Candidate " + Twine(i + 1) + ": ", OS);
181 "Candidate " + Twine(i + 1) + ": ", OS);
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 679 << ("(" + Twine(MinCount) + ", " + MaxStr + ")") << Args.size();
679 << ("(" + Twine(MinCount) + ", " + MaxStr + ")") << Args.size();
679 << ("(" + Twine(MinCount) + ", " + MaxStr + ")") << Args.size();
679 << ("(" + Twine(MinCount) + ", " + MaxStr + ")") << Args.size();
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp 526 (Entry.getValue().getTypeAsString() + " " + Entry.getKey()).str();
tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp 25 return (Twine("Matcher<") + MatcherKind.asStringRef() + ">").str();
25 return (Twine("Matcher<") + MatcherKind.asStringRef() + ">").str();
92 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">")
92 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">")
134 return (Twine("Matcher<") + Inner + ">").str();
134 return (Twine("Matcher<") + Inner + ">").str();
tools/clang/lib/Analysis/ProgramPoint.cpp 238 : Desc((MsgProvider + " : " + Msg).str()) {}
tools/clang/lib/Basic/IdentifierTable.cpp 643 return (Twine(toLowercase(Name[3])) + Name.drop_front(4)).str();
tools/clang/lib/Basic/Targets.cpp 67 Builder.defineMacro("__" + MacroName + "__");
72 Builder.defineMacro("__" + CPUName + "__");
74 Builder.defineMacro("__tune_" + CPUName + "__");
95 Builder.defineMacro(Twine("_") + CC, GCCSpelling);
96 Builder.defineMacro(Twine("__") + CC, GCCSpelling);
tools/clang/lib/Basic/Targets/AMDGPU.cpp 242 ? '+' : '-') + Twine("fp32-denormals"))
320 Builder.defineMacro(Twine("__") + Twine(CanonName) + Twine("__"));
320 Builder.defineMacro(Twine("__") + Twine(CanonName) + Twine("__"));
tools/clang/lib/Basic/Targets/ARM.cpp 603 Builder.defineMacro("__ARM_ARCH_" + CPUAttr + "__");
645 Builder.defineMacro("__ARM_ARCH_PROFILE", "'" + CPUProfile + "'");
653 Builder.defineMacro("__ARM_FEATURE_LDREX", "0x" + Twine::utohexstr(LDREX));
662 Builder.defineMacro("__ARM_FP", "0x" + Twine::utohexstr(HW_FP));
749 "0x" + Twine::utohexstr(HW_FP & ~HW_FP_DP));
tools/clang/lib/CodeGen/CGCUDANV.cpp 143 return ((Twine("hip") + Twine(FuncName)).str());
144 return ((Twine("cuda") + Twine(FuncName)).str());
149 return ((Twine("__hip") + Twine(FuncName)).str());
150 return ((Twine("__cuda") + Twine(FuncName)).str());
699 Twine("__fatbinwrap") + ModuleID, FatbinWrapper);
tools/clang/lib/CodeGen/CGCall.cpp 2482 AI->setName(Arg->getName() + ".coerce" + Twine(i));
2547 AI->setName(Arg->getName() + "." + Twine(i));
tools/clang/lib/CodeGen/CGCoroutine.cpp 186 BasicBlock *ReadyBlock = CGF.createBasicBlock(Prefix + Twine(".ready"));
187 BasicBlock *SuspendBlock = CGF.createBasicBlock(Prefix + Twine(".suspend"));
188 BasicBlock *CleanupBlock = CGF.createBasicBlock(Prefix + Twine(".cleanup"));
205 CGF.createBasicBlock(Prefix + Twine(".suspend.bool"));
235 CGF.CreateTempAlloca(Builder.getInt1Ty(), Prefix + Twine("resume.eh"));
tools/clang/lib/CodeGen/CGDebugInfo.cpp 482 return (Twine(Entry.second) + Path.substr(Entry.first.size())).str();
tools/clang/lib/CodeGen/CGDecl.cpp 1111 Name = ("__const." + FunctionName(DC) + "." + D.getName()).str();
1327 Twine Name = Twine("__vla_expr") + Twine(VLAExprCounter++);
tools/clang/lib/CodeGen/CGExprAgg.cpp 959 llvm::Twine(InstInfo.Name) + NameSuffix);
964 llvm::Twine(InstInfo.Name) + NameSuffix);
tools/clang/lib/CodeGen/CGExprScalar.cpp 1067 llvm::Twine(Name) + "." + V->getName() +
1067 llvm::Twine(Name) + "." + V->getName() +
1067 llvm::Twine(Name) + "." + V->getName() +
tools/clang/lib/CodeGen/CGObjCGNU.cpp 50 return (Twine(isClassMethod ? "_c_" : "_i_") + ClassName + "_" +
50 return (Twine(isClassMethod ? "_c_" : "_i_") + ClassName + "_" +
50 return (Twine(isClassMethod ? "_c_" : "_i_") + ClassName + "_" +
51 CategoryName + "_" + MethodNameColonStripped).str();
51 CategoryName + "_" + MethodNameColonStripped).str();
189 return (StringRef(CGM.getTriple().isOSBinFormatCOFF() ? "$_" : "._") + Name).str();
193 return (ManglePublicSymbol("OBJC_PROTOCOL_") + Name).str();
197 return (ManglePublicSymbol("OBJC_REF_PROTOCOL_") + Name).str();
948 return (ManglePublicSymbol("OBJC_WEAK_REF_CLASS_") + Name).str();
950 return (ManglePublicSymbol("OBJC_REF_CLASS_") + Name).str();
954 return (ManglePublicSymbol("OBJC_CLASS_") + Name).str();
1457 auto SelVarName = (StringRef(".objc_selector_") + Sel.getAsString() + "_" +
1457 auto SelVarName = (StringRef(".objc_selector_") + Sel.getAsString() + "_" +
1457 auto SelVarName = (StringRef(".objc_selector_") + Sel.getAsString() + "_" +
1494 llvm::GlobalValue::LinkOnceODRLinkage, ZeroInit, Prefix +
1497 Sym->setSection((Section + SecSuffix).str());
1498 Sym->setComdat(TheModule.getOrInsertComdat((Prefix +
1507 llvm::GlobalValue::ExternalLinkage, nullptr, StringRef("__start_") +
1512 llvm::GlobalValue::ExternalLinkage, nullptr, StringRef("__stop_") +
3769 (Twine(mainFile->getDir()->getName()) + "/" + mainFile->getName()).str();
3769 (Twine(mainFile->getDir()->getName()) + "/" + mainFile->getName()).str();
tools/clang/lib/CodeGen/CGObjCMac.cpp 3747 + ID->getName(),
3949 llvm::GlobalVariable *GV = CreateMetadataVar(prefix + name, values, section,
3966 llvm::GlobalVariable *GV = CreateMetadataVar(prefix + name, values, section,
4927 return ("__DATA," + Section + "," + MachOAttributes).str();
4927 return ("__DATA," + Section + "," + MachOAttributes).str();
4936 return ("." + Section.substr(2) + "$B").str();
6563 (Interface->getObjCRuntimeNameAsString() + "_$_" + OCD->getName()).str();
6587 + Interface->getObjCRuntimeNameAsString() + "_$_"
6588 + Category->getName(),
6715 llvm::GlobalVariable *GV = finishAndCreateGlobal(values, prefix + name, CGM);
7249 return GetClassGlobal((prefix + ID->getObjCRuntimeNameAsString()).str(),
7328 ClassGV = GetClassGlobal((getClassSymbolPrefix() + II->getName()).str(),
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 9095 MapperCGF.createBasicBlock("omp.array" + Prefix + ".evaldelete");
9109 DeleteBit, "omp.array" + Prefix + ".delete");
9112 DeleteBit, "omp.array" + Prefix + ".delete");
tools/clang/lib/CodeGen/CodeGenModule.cpp 938 return (Twine('.') + Twine(Target.CPUSpecificManglingCharacter(Name))).str();
tools/clang/lib/CodeGen/TargetInfo.cpp 8097 Name = Twine(Twine(Name) + Twine("-")).str();
8099 Name = Twine(Twine(Name) + Twine("one-as")).str();
9952 llvm::MDString::get(C, (Twine("local_arg") + Twine(I)).str()));
tools/clang/lib/Driver/Driver.cpp 114 llvm::sys::path::append(P, Twine("lib") + CLANG_LIBDIR_SUFFIX, "clang",
1828 Twine SibIndent = Indent + getSibIndent(Kind);
1897 llvm::errs() << Indent + getSelfIndent(Kind) << Id << ": " << os.str() << ", "
4416 CrashDirectory + Middle + Suffix, TmpName);
4599 Names.emplace_back((TargetTriple + "-" + Tool).str());
4605 Names.emplace_back((DefaultTargetTriple + "-" + Tool).str());
4631 SmallString<128> P((PrefixDir + Name).str());
tools/clang/lib/Driver/SanitizerArgs.cpp 967 CmdArgs.push_back(Args.MakeArgString("-fsanitize-memory-track-origins=" +
1005 CmdArgs.push_back(Args.MakeArgString("-fsanitize-address-field-padding=" +
tools/clang/lib/Driver/ToolChain.cpp 408 llvm::sys::path::append(P, Prefix + Twine("clang_rt.") + Component + Suffix);
408 llvm::sys::path::append(P, Prefix + Twine("clang_rt.") + Component + Suffix);
408 llvm::sys::path::append(P, Prefix + Twine("clang_rt.") + Component + Suffix);
416 llvm::sys::path::append(Path, Prefix + Twine("clang_rt.") + Component + "-" +
416 llvm::sys::path::append(Path, Prefix + Twine("clang_rt.") + Component + "-" +
416 llvm::sys::path::append(Path, Prefix + Twine("clang_rt.") + Component + "-" +
416 llvm::sys::path::append(Path, Prefix + Twine("clang_rt.") + Component + "-" +
417 Arch + Env + Suffix);
417 Arch + Env + Suffix);
891 CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + LibPath));
tools/clang/lib/Driver/ToolChains/AVR.cpp 144 CmdArgs.push_back(Args.MakeArgString(std::string("-m") + *FamilyName));
tools/clang/lib/Driver/ToolChains/BareMetal.cpp 160 getTriple().getArchName() + ".a"));
tools/clang/lib/Driver/ToolChains/Clang.cpp 211 OutStrings.push_back(Args.MakeArgString(Out + Val));
276 Out = Args.MakeArgString(Out + Prefix + Val);
276 Out = Args.MakeArgString(Out + Prefix + Val);
691 CmdArgs.push_back(Args.MakeArgString(Twine("-fprofile-instrument-path=") +
724 Args.MakeArgString(Twine("-fprofile-instrument-path=") + Path));
731 Twine("-fprofile-instrument-use-path=") + ProfileUseArg->getValue()));
741 Args.MakeArgString(Twine("-fprofile-instrument-use-path=") + Path));
897 Args.MakeArgString("-dwarf-version=" + Twine(DwarfVersion)));
945 Args.MakeArgString("--compress-debug-sections=" + Twine(Value)));
1124 Twine("-pch-through-hdrstop-") + (YcArg ? "create" : "use")));
1127 Args.MakeArgString(Twine("-pch-through-header=") + ThroughHeader));
1561 Args.MakeArgString(Twine("-msign-return-address=") + Scope));
1563 Args.MakeArgString(Twine("-msign-return-address-key=") + Key));
1865 CmdArgs.push_back(Args.MakeArgString("-hexagon-small-data-threshold=" +
1996 Twine(llvm::sys::path::filename(Input.getFilename())) + ".%%%%.json");
2841 Args.MakeArgString("-fbuild-session-timestamp=" +
3487 Twine("-target-sdk-version=") +
3604 Args.MakeArgString(Twine("-interface-stub-version=") + ArgStr.str()));
4687 Args.MakeArgString(Twine("-fcf-protection=") + A->getValue()));
4981 Args.MakeArgString(Twine("-fnew-alignment=") + A->getValue()));
5229 Args.MakeArgString(Twine("-fpass-plugin=") + A->getValue()));
5236 CmdArgs.push_back(Args.MakeArgString(Twine("-stats-file=") + StatsFile));
6026 return Args.MakeArgString(Twine(getBaseInputStem(Args, Inputs)) + ".d");
6292 Twine("-type=") + types::getTypeTempSuffix(Output.getType())));
6329 TCArgs.MakeArgString(Twine("-outputs=") + Output.getFilename()));
6379 Twine("-type=") + types::getTypeTempSuffix(Input.getType())));
6404 TCArgs.MakeArgString(Twine("-inputs=") + Input.getFilename()));
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 117 Args.MakeArgString(std::string(ArgName) + Dirs.substr(0, Delim)));
135 CmdArgs.push_back(Args.MakeArgString(std::string(ArgName) + Dirs));
376 llvm::sys::path::native(Twine(ToolChain.getDriver().Dir) +
377 "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold" +
388 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=mcpu=") + CPU));
400 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=O") + OOpt));
405 Args.MakeArgString(Twine("-plugin-opt=dwo_dir=") +
406 Output.getFilename() + "_dwo"));
414 Args.MakeArgString("-plugin-opt=jobs=" + Twine(Parallelism)));
446 Args.MakeArgString(Twine("-plugin-opt=sample-profile=") + FName));
465 Args.MakeArgString(Twine("-plugin-opt=cs-profile-path=") + Path));
474 CmdArgs.push_back(Args.MakeArgString(Twine("-plugin-opt=cs-profile-path=") +
490 Args.MakeArgString(Twine("-plugin-opt=stats-file=") + StatsFile));
498 Args.MakeArgString(Twine("-plugin-opt=-target-abi=") + ABIName));
589 CmdArgs.push_back(Args.MakeArgString("--dynamic-list=" + SanRT + ".syms"));
1486 Args.MakeArgString(Twine("-plugin-opt=-mattr=") + Name));
tools/clang/lib/Driver/ToolChains/Cuda.cpp 384 CmdArgs.push_back(Args.MakeArgString(llvm::Twine("-O") + OOpt));
483 CmdArgs.push_back(Args.MakeArgString(llvm::Twine("--image=profile=") +
484 Arch + ",file=" + II.getFilename()));
484 Arch + ",file=" + II.getFilename()));
531 CmdArgs.push_back(Args.MakeArgString(Twine("-L") + A->getValue()));
540 CmdArgs.push_back(Args.MakeArgString(Twine("-L") + DefaultLibPath));
676 Twine("-target-sdk-version=") +
698 llvm::sys::path::append(DefaultLibPath, Twine("lib") + CLANG_LIBDIR_SUFFIX);
tools/clang/lib/Driver/ToolChains/Darwin.cpp 607 CmdArgs.push_back(Args.MakeArgString("-threads=" + Twine(Parallelism)));
1330 return (llvm::Twine(EnvVarName) + "=" + OSVersion).str();
1330 return (llvm::Twine(EnvVarName) + "=" + OSVersion).str();
1863 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp 227 return (Triple.getArchName() + "-" + Triple.getOSName()).str();
290 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
tools/clang/lib/Driver/ToolChains/Gnu.cpp 659 Args.MakeArgString("--compress-debug-sections=" + Twine(Value)));
904 return !VFS.exists(Base + M.gccSuffix() + File);
904 return !VFS.exists(Base + M.gccSuffix() + File);
2387 LI = D.getVFS().dir_begin(LibDir + "/" + LibSuffix, EC),
2409 GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str();
2409 GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str();
2409 GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str();
2410 GCCParentLibPath = (GCCInstallPath + "/../" + Suffix.ReversePath).str();
2639 if (!getVFS().exists(Base + Suffix))
2642 addSystemInclude(DriverArgs, CC1Args, Base + Suffix);
2648 getVFS().exists(Base + Suffix + "/" + GCCTriple + IncludeSuffix)) {
2648 getVFS().exists(Base + Suffix + "/" + GCCTriple + IncludeSuffix)) {
2648 getVFS().exists(Base + Suffix + "/" + GCCTriple + IncludeSuffix)) {
2648 getVFS().exists(Base + Suffix + "/" + GCCTriple + IncludeSuffix)) {
2650 Base + Suffix + "/" + GCCTriple + IncludeSuffix);
2650 Base + Suffix + "/" + GCCTriple + IncludeSuffix);
2650 Base + Suffix + "/" + GCCTriple + IncludeSuffix);
2650 Base + Suffix + "/" + GCCTriple + IncludeSuffix);
2658 Base + "/" + GCCMultiarchTriple + Suffix + IncludeSuffix);
2658 Base + "/" + GCCMultiarchTriple + Suffix + IncludeSuffix);
2658 Base + "/" + GCCMultiarchTriple + Suffix + IncludeSuffix);
2658 Base + "/" + GCCMultiarchTriple + Suffix + IncludeSuffix);
2660 Base + "/" + TargetMultiarchTriple + Suffix);
2660 Base + "/" + TargetMultiarchTriple + Suffix);
2660 Base + "/" + TargetMultiarchTriple + Suffix);
2663 addSystemInclude(DriverArgs, CC1Args, Base + Suffix + "/backward");
2663 addSystemInclude(DriverArgs, CC1Args, Base + Suffix + "/backward");
tools/clang/lib/Driver/ToolChains/HIP.cpp 141 Args.MakeArgString(Twine("-filetype=") + (OutputIsAsm ? "asm" : "obj")),
tools/clang/lib/Driver/ToolChains/Hexagon.cpp 68 HVXFeature = Args.MakeArgString(llvm::Twine("+hvx") + HVXFeature.lower());
71 HVXFeature = Args.MakeArgString(llvm::Twine("+hvx") + Cpu);
90 Args.MakeArgString(llvm::Twine("+hvx-length") + HVXLength.lower());
152 CmdArgs.push_back(Args.MakeArgString("-gpsize=" + Twine(G.getValue())));
252 CmdArgs.push_back(Args.MakeArgString("-G" + Twine(G.getValue())));
317 CmdArgs.push_back(Args.MakeArgString(StringRef("-L") + LibPath));
tools/clang/lib/Driver/ToolChains/Hurd.cpp 149 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + Dir);
tools/clang/lib/Driver/ToolChains/Linux.cpp 107 if (D.getVFS().exists(SysRoot + "/lib/" + MT))
115 if (D.getVFS().exists(SysRoot + "/lib/" + MT))
122 if (D.getVFS().exists(SysRoot + "/lib/" + MT))
133 if (D.getVFS().exists(SysRoot + "/lib/" + MT))
217 addPathIfExists(D, InstallPath + Path, Paths);
238 PPaths.push_back(Twine(GCCInstallation.getParentLibPath() + "/../" +
239 GCCInstallation.getTriple().str() + "/bin")
332 D, GCCInstallation.getInstallPath() + SelectedMultilib.gccSuffix(),
410 addPathIfExists(D, SysRoot + "/" + OSLibDir + "/" + ABIName, Paths);
411 addPathIfExists(D, SysRoot + "/usr/" + OSLibDir + "/" + ABIName, Paths);
425 addPathIfExists(D, GCCInstallation.getInstallPath() +
496 (InstallDir + "/../../../../" + TripleStr + "/libc" + Multilib.osSuffix())
496 (InstallDir + "/../../../../" + TripleStr + "/libc" + Multilib.osSuffix())
496 (InstallDir + "/../../../../" + TripleStr + "/libc" + Multilib.osSuffix())
502 Path = (InstallDir + "/../../../../sysroot" + Multilib.osSuffix()).str();
608 Loader = ("ld-linux-riscv32-" + ABIName + ".so.1").str();
614 Loader = ("ld-linux-riscv64-" + ABIName + ".so.1").str();
678 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
692 DriverArgs, CC1Args, GCCInstallation.getInstallPath() + Path);
848 if (D.getVFS().exists(SysRoot + Dir)) {
849 addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + Dir);
885 return MaxVersion ? (base + "/" + MaxVersionString).str() : "";
972 GCCInstallation.getParentLibPath() + "/../" +
973 GCCInstallation.getTriple().str() + "/include"));
tools/clang/lib/Driver/ToolChains/MSP430.cpp 202 Args.MakeArgString("-T" + StringRef(MCUArg->getValue()) + ".ld"));
tools/clang/lib/Driver/ToolChains/MSVC.cpp 330 Twine("-libpath:") +
335 Twine("-libpath:") +
343 Args.MakeArgString(Twine("-libpath:") + UniversalCRTLibPath));
378 CmdArgs.push_back(Args.MakeArgString(std::string("-implib:") + ImplibName));
1352 Triple.setEnvironmentName((Twine("msvc") + MSVT.getAsString()).str());
1355 (Twine("msvc") + MSVT.getAsString() + Twine('-') + ObjFmt).str());
1355 (Twine("msvc") + MSVT.getAsString() + Twine('-') + ObjFmt).str());
1355 (Twine("msvc") + MSVT.getAsString() + Twine('-') + ObjFmt).str());
tools/clang/lib/Driver/ToolChains/MinGW.cpp 362 if (llvm::sys::fs::is_directory(ClangRoot + Sep + CandidateSubdir)) {
362 if (llvm::sys::fs::is_directory(ClangRoot + Sep + CandidateSubdir)) {
364 return (ClangRoot + Sep + CandidateSubdir).str();
364 return (ClangRoot + Sep + CandidateSubdir).str();
393 (Base + Arch + llvm::sys::path::get_separator() + "lib").str());
393 (Base + Arch + llvm::sys::path::get_separator() + "lib").str());
538 Base + Arch + llvm::sys::path::get_separator() + "include");
538 Base + Arch + llvm::sys::path::get_separator() + "include");
552 addSystemInclude(DriverArgs, CC1Args, Base + Arch + Slash + "include" +
552 addSystemInclude(DriverArgs, CC1Args, Base + Arch + Slash + "include" +
552 addSystemInclude(DriverArgs, CC1Args, Base + Arch + Slash + "include" +
553 Slash + "c++" + Slash + "v1");
553 Slash + "c++" + Slash + "v1");
553 Slash + "c++" + Slash + "v1");
555 Base + "include" + Slash + "c++" + Slash + "v1");
555 Base + "include" + Slash + "c++" + Slash + "v1");
555 Base + "include" + Slash + "c++" + Slash + "v1");
555 Base + "include" + Slash + "c++" + Slash + "v1");
571 addSystemInclude(DriverArgs, CC1Args, CppIncludeBase + Arch);
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp 138 Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix));
138 Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix));
138 Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix));
tools/clang/lib/Driver/ToolChains/Solaris.cpp 185 GCCInstallation.getInstallPath() +
188 addPathIfExists(D, GCCInstallation.getParentLibPath() + LibSuffix, Paths);
196 addPathIfExists(D, D.SysRoot + "/usr/lib" + LibSuffix, Paths);
248 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
260 DriverArgs, CC1Args, GCCInstallation.getInstallPath() + Path);
tools/clang/lib/Driver/ToolChains/WebAssembly.cpp 31 return (TargetTriple.getArchName() + "-" +
237 addExternCSystemInclude(DriverArgs, CC1Args, Prefix + dir);
tools/clang/lib/Driver/XRayArgs.cpp 194 CmdArgs.push_back(Args.MakeArgString(Twine(XRayInstructionThresholdOption) +
tools/clang/lib/Edit/EditedSource.cpp 134 FA.Text = copyString(Twine(text) + FA.Text);
136 FA.Text = copyString(Twine(FA.Text) + text);
tools/clang/lib/Format/ContinuationIndenter.cpp 1521 std::string CanonicalDelimiterSuffix = (")" + NewDelimiter + "\"").str();
tools/clang/lib/Format/Format.cpp 2643 return make_string_error("Error reading " + ConfigFile + ": " +
2643 return make_string_error("Error reading " + ConfigFile + ": " +
2653 getLanguageName(Style.Language) + ": " +
2653 getLanguageName(Style.Language) + ": " +
tools/clang/lib/Frontend/ASTUnit.cpp 2149 CompletionTimer.setOutput("Code completion @ " + File + ":" +
2149 CompletionTimer.setOutput("Code completion @ " + File + ":" +
2150 Twine(Line) + ":" + Twine(Column));
2150 Twine(Line) + ":" + Twine(Column));
tools/clang/lib/Frontend/InitHeaderSearch.cpp 125 return AddUnmappedPath(IncludeSysroot + Path, Group, isFramework);
196 AddPath(Base + "/" + ArchDir + "/" + Dir64, CXXSystem, false);
196 AddPath(Base + "/" + ArchDir + "/" + Dir64, CXXSystem, false);
196 AddPath(Base + "/" + ArchDir + "/" + Dir64, CXXSystem, false);
198 AddPath(Base + "/" + ArchDir + "/" + Dir32, CXXSystem, false);
198 AddPath(Base + "/" + ArchDir + "/" + Dir32, CXXSystem, false);
198 AddPath(Base + "/" + ArchDir + "/" + Dir32, CXXSystem, false);
208 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++",
208 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++",
208 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++",
208 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++",
210 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/" + Arch,
210 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/" + Arch,
210 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/" + Arch,
210 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/" + Arch,
210 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/" + Arch,
212 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/backward",
212 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/backward",
212 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/backward",
212 AddPath(Base + "/" + Arch + "/" + Version + "/include/c++/backward",
tools/clang/lib/Frontend/InitPreprocessor.cpp 55 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n");
69 Builder.append(Twine("#include \"") + File + "\"");
69 Builder.append(Twine("#include \"") + File + "\"");
73 Builder.append(Twine("#__include_macros \"") + File + "\"");
73 Builder.append(Twine("#__include_macros \"") + File + "\"");
144 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext);
148 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext);
155 Builder.defineMacro(DefPrefix + "MAX__", Twine(Max)+Ext);
157 Builder.defineMacro(DefPrefix + "MIN_10_EXP__","("+Twine(Min10Exp)+")");
157 Builder.defineMacro(DefPrefix + "MIN_10_EXP__","("+Twine(Min10Exp)+")");
158 Builder.defineMacro(DefPrefix + "MIN_EXP__", "("+Twine(MinExp)+")");
158 Builder.defineMacro(DefPrefix + "MIN_EXP__", "("+Twine(MinExp)+")");
159 Builder.defineMacro(DefPrefix + "MIN__", Twine(Min)+Ext);
171 Builder.defineMacro(MacroName, MaxVal.toString(10, isSigned) + ValSuffix);
187 Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__",
187 Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__",
187 Builder.defineMacro(Prefix + "_FMT" + Twine(*Fmt) + "__",
188 Twine("\"") + FmtModifier + Twine(*Fmt) + "\"");
188 Twine("\"") + FmtModifier + Twine(*Fmt) + "\"");
188 Twine("\"") + FmtModifier + Twine(*Fmt) + "\"");
221 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder);
221 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder);
222 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder);
225 Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix);
225 Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix);
240 DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);
240 DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);
251 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder);
251 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder);
252 DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);
252 DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);
253 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder);
265 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder);
265 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder);
266 DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);
266 DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);
268 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder);
394 Twine(TI.getNewAlign() / TI.getCharWidth()) +
624 Builder.defineMacro("__VERSION__", "\"" +
625 Twine(getClangFullCPPVersion()) + "\"");
660 "1" + Twine(std::min(8U, version.getMinor().getValueOr(0))));
957 DEFINE_LOCK_FREE_MACRO(BOOL, Bool);
958 DEFINE_LOCK_FREE_MACRO(CHAR, Char);
960 DEFINE_LOCK_FREE_MACRO(CHAR8_T, Char); // Treat char8_t like char.
961 DEFINE_LOCK_FREE_MACRO(CHAR16_T, Char16);
962 DEFINE_LOCK_FREE_MACRO(CHAR32_T, Char32);
963 DEFINE_LOCK_FREE_MACRO(WCHAR_T, WChar);
964 DEFINE_LOCK_FREE_MACRO(SHORT, Short);
965 DEFINE_LOCK_FREE_MACRO(INT, Int);
966 DEFINE_LOCK_FREE_MACRO(LONG, Long);
967 DEFINE_LOCK_FREE_MACRO(LLONG, LongLong);
968 Builder.defineMacro(Prefix + "POINTER_LOCK_FREE",
tools/clang/lib/Frontend/Rewrite/FrontendActions.cpp 79 NewSuffix + llvm::sys::path::extension(Path));
tools/clang/lib/Lex/HeaderSearch.cpp 201 llvm::sys::path::append(Result, ModuleName + "-" + HashStr + ".pcm");
201 llvm::sys::path::append(Result, ModuleName + "-" + HashStr + ".pcm");
tools/clang/lib/Lex/PPDirectives.cpp 1608 ReplaceRange, (ImportKeyword + " " + PathString + ";").str());
1608 ReplaceRange, (ImportKeyword + " " + PathString + ";").str());
tools/clang/lib/Lex/PPMacroExpansion.cpp 1423 (llvm::Twine("unknown-unknown-") + II->getName().lower()).str();
1435 std::string EnvName = (llvm::Twine("---") + II->getName().lower()).str();
tools/clang/lib/Parse/ParsePragma.cpp 1010 std::string ClangLoopStr = (llvm::Twine("clang loop ") + Str).str();
tools/clang/lib/Sema/SemaCodeComplete.cpp 7608 std::string SelectorName = (Twine("is") + UpperKey).str();
7627 std::string SelectorName = (Twine("set") + UpperKey).str();
7678 std::string SelectorName = (Twine("countOf") + UpperKey).str();
7700 std::string SelectorName = (Twine("objectIn") + UpperKey + "AtIndex").str();
7700 std::string SelectorName = (Twine("objectIn") + UpperKey + "AtIndex").str();
7727 std::string SelectorName = (Twine(Property->getName()) + "AtIndexes").str();
7748 std::string SelectorName = (Twine("get") + UpperKey).str();
7780 std::string SelectorName = (Twine("in") + UpperKey + "AtIndex").str();
7780 std::string SelectorName = (Twine("in") + UpperKey + "AtIndex").str();
7810 std::string SelectorName = (Twine("insert") + UpperKey).str();
7840 (Twine("removeObjectFrom") + UpperKey + "AtIndex").str();
7840 (Twine("removeObjectFrom") + UpperKey + "AtIndex").str();
7861 std::string SelectorName = (Twine("remove") + UpperKey + "AtIndexes").str();
7861 std::string SelectorName = (Twine("remove") + UpperKey + "AtIndexes").str();
7883 (Twine("replaceObjectIn") + UpperKey + "AtIndex").str();
7883 (Twine("replaceObjectIn") + UpperKey + "AtIndex").str();
7913 (Twine("replace") + UpperKey + "AtIndexes").str();
7913 (Twine("replace") + UpperKey + "AtIndexes").str();
7914 std::string SelectorName2 = (Twine("with") + UpperKey).str();
7950 std::string SelectorName = (Twine("enumeratorOf") + UpperKey).str();
7969 std::string SelectorName = (Twine("memberOf") + UpperKey).str();
7999 (Twine("add") + UpperKey + Twine("Object")).str();
7999 (Twine("add") + UpperKey + Twine("Object")).str();
8021 std::string SelectorName = (Twine("add") + UpperKey).str();
8043 (Twine("remove") + UpperKey + Twine("Object")).str();
8043 (Twine("remove") + UpperKey + Twine("Object")).str();
8065 std::string SelectorName = (Twine("remove") + UpperKey).str();
8086 std::string SelectorName = (Twine("intersect") + UpperKey).str();
8115 (Twine("keyPathsForValuesAffecting") + UpperKey).str();
8136 (Twine("automaticallyNotifiesObserversOf") + UpperKey).str();
8783 Twine(Platform) + "ApplicationExtension")));
tools/clang/lib/Sema/SemaDeclAttr.cpp 7898 (llvm::Twine(Insertion->Prefix) + "API_AVAILABLE(" + PlatformName +
7898 (llvm::Twine(Insertion->Prefix) + "API_AVAILABLE(" + PlatformName +
7898 (llvm::Twine(Insertion->Prefix) + "API_AVAILABLE(" + PlatformName +
7899 "(" + Introduced + "))" + Insertion->Suffix)
7899 "(" + Introduced + "))" + Insertion->Suffix)
7899 "(" + Introduced + "))" + Insertion->Suffix)
tools/clang/lib/Sema/SemaObjCProperty.cpp 1884 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str();
1884 (Twine("@synthesize ") + Prop->getName() + ";\n\n").str();
tools/clang/lib/Serialization/ASTReaderDecl.cpp 3624 llvm::report_fatal_error(Twine("ASTReader::ReadDeclRecord failed ") + what +
3624 llvm::report_fatal_error(Twine("ASTReader::ReadDeclRecord failed ") + what +
3625 ": " + toString(std::move(Err)));
tools/clang/lib/Serialization/ASTWriterDecl.cpp 51 D->getDeclKindName() + "'");
tools/clang/lib/Serialization/GlobalModuleIndex.cpp 133 report_fatal_error("Module index '" + Buffer->getBufferIdentifier() +
134 "' failed: " + toString(std::move(Err)));
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 363 return (*Str + " " + BinaryOperator::getOpcodeStr(S->getOpcode()) + " " +
363 return (*Str + " " + BinaryOperator::getOpcodeStr(S->getOpcode()) + " " +
363 return (*Str + " " + BinaryOperator::getOpcodeStr(S->getOpcode()) + " " +
364 std::to_string(S->getRHS().getLimitedValue()) +
375 return (*Str1 + " " + BinaryOperator::getOpcodeStr(S->getOpcode()) +
375 return (*Str1 + " " + BinaryOperator::getOpcodeStr(S->getOpcode()) +
376 " " + *Str2).str();
384 return (Twine("(") + S->getType().getAsString() + ")" + *Str).str();
384 return (Twine("(") + S->getType().getAsString() + ")" + *Str).str();
384 return (Twine("(") + S->getType().getAsString() + ")" + *Str).str();
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 319 (llvm::Twine("Nullability '") +
320 getNullabilityString(TrackedNullab->getValue()) + "' is inferred")
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp 138 + " autoreleasing out parameter inside autorelease pool").str(),
140 (llvm::Twine(ActionMsg) + " autoreleasing out parameter " +
140 (llvm::Twine(ActionMsg) + " autoreleasing out parameter " +
141 (IsCapture ? "'" + PVD->getName() + "'" + " " : "") + "inside " +
141 (IsCapture ? "'" + PVD->getName() + "'" + " " : "") + "inside " +
141 (IsCapture ? "'" + PVD->getName() + "'" + " " : "") + "inside " +
141 (IsCapture ? "'" + PVD->getName() + "'" + " " : "") + "inside " +
142 "autorelease pool that may exit before " + Name + " returns; consider "
142 "autorelease pool that may exit before " + Name + " returns; consider "
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp 1492 (StringRef("osx.cocoa.RetainCount:") + Postfix).str());
tools/clang/lib/StaticAnalyzer/Checkers/RunLoopAutoreleaseLeakChecker.cpp 120 (Twine("Temporary objects allocated in the") +
121 " autorelease pool " +
122 (HasAutoreleasePool ? "" : "of last resort ") +
123 "followed by the launch of " +
124 (RL ? "main run loop " : "xpc_main ") +
tools/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp 127 Config.find((Twine(CheckerName) + ":" + OptionName).str());
127 Config.find((Twine(CheckerName) + ":" + OptionName).str());
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 333 return (llvm::Twine(Msg) + " via " + std::to_string(ArgIndex) +
333 return (llvm::Twine(Msg) + " via " + std::to_string(ArgIndex) +
333 return (llvm::Twine(Msg) + " via " + std::to_string(ArgIndex) +
334 llvm::getOrdinalSuffix(ArgIndex) + " parameter").str();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 1750 (Twine() + "Tracking condition '" + ConditionText + "'").str());
1750 (Twine() + "Tracking condition '" + ConditionText + "'").str());
1750 (Twine() + "Tracking condition '" + ConditionText + "'").str());
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp 68 << (llvm::Twine() + C->getTagDescription() + ":" + OptionName).str()
68 << (llvm::Twine() + C->getTagDescription() + ":" + OptionName).str()
68 << (llvm::Twine() + C->getTagDescription() + ":" + OptionName).str()
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp 189 return (llvm::Twine(CheckerName) + Delimiter +
189 return (llvm::Twine(CheckerName) + Delimiter +
190 GetEnclosingDeclContextSignature(D) + Delimiter +
190 GetEnclosingDeclContextSignature(D) + Delimiter +
191 Twine(IssueLoc.getExpansionColumnNumber()) + Delimiter +
191 Twine(IssueLoc.getExpansionColumnNumber()) + Delimiter +
192 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType)
192 NormalizeLine(SM, IssueLoc, LangOpts) + Delimiter + BugType)
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp 673 ArrayIndices = (llvm::Twine("[") + Idx.str() + "]" + ArrayIndices).str();
673 ArrayIndices = (llvm::Twine("[") + Idx.str() + "]" + ArrayIndices).str();
673 ArrayIndices = (llvm::Twine("[") + Idx.str() + "]" + ArrayIndices).str();
680 ArrayIndices = (llvm::Twine("[") + Idx + "]" + ArrayIndices).str();
680 ArrayIndices = (llvm::Twine("[") + Idx + "]" + ArrayIndices).str();
680 ArrayIndices = (llvm::Twine("[") + Idx + "]" + ArrayIndices).str();
690 return (llvm::Twine("'") + os.str() + ArrayIndices + "'").str();
690 return (llvm::Twine("'") + os.str() + ArrayIndices + "'").str();
690 return (llvm::Twine("'") + os.str() + ArrayIndices + "'").str();
692 return (llvm::Twine(os.str()) + ArrayIndices).str();
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp 317 std::string FullOption = (FullName + ":" + Option.OptionName).str();
596 std::string FullOption = (Entry.first + ":" + Option.OptionName).str();
599 ("(" + Option.OptionType + ") " + Option.Description + " (default: " +
599 ("(" + Option.OptionType + ") " + Option.Description + " (default: " +
599 ("(" + Option.OptionType + ") " + Option.Description + " (default: " +
599 ("(" + Option.OptionType + ") " + Option.Description + " (default: " +
600 (Option.DefaultValStr.empty() ? "\"\"" : Option.DefaultValStr) + ")")
tools/clang/lib/Tooling/AllTUsExecution.cpp 136 AppendError(llvm::Twine("Failed to run action on ") + Path +
136 AppendError(llvm::Twine("Failed to run action on ") + Path +
tools/clang/lib/Tooling/CompilationDatabase.cpp 116 SourceFile + "\"\n" + ErrorMessage).str();
116 SourceFile + "\"\n" + ErrorMessage).str();
130 SourceDir + "\"\n" + ErrorMessage).str();
130 SourceDir + "\"\n" + ErrorMessage).str();
tools/clang/lib/Tooling/Core/Lookup.cpp 176 Disambiguated = (UnspelledScopes.back() + "::" + Disambiguated).str();
tools/clang/lib/Tooling/Core/Replacement.cpp 208 (Prev.getReplacementText() + R.getReplacementText()).str());
275 if ((R.getReplacementText() + I->getReplacementText()).str() !=
276 (I->getReplacementText() + R.getReplacementText()).str())
282 (R.getReplacementText() + I->getReplacementText()).str());
390 Text = (Head + R.getReplacementText() + Tail).str();
390 Text = (Head + R.getReplacementText() + Tail).str();
396 Text = (Text + Tail).str();
tools/clang/lib/Tooling/Execution.cpp 77 llvm::Twine("Failed to create '") + I->getName() +
77 llvm::Twine("Failed to create '") + I->getName() +
78 "': " + llvm::toString(Executor.takeError()) + "\n",
78 "': " + llvm::toString(Executor.takeError()) + "\n",
84 llvm::Twine("Executor \"") + ExecutorName + "\" is not registered.",
84 llvm::Twine("Executor \"") + ExecutorName + "\" is not registered.",
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp 229 llvm::Twine(ClangCLMode ? "/std:" : "-std=") +
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp 398 KeyString->getRawValue() + "\"").str();
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp 155 : ("\"" + Header + "\"").str();
tools/clang/lib/Tooling/Tooling.cpp 515 llvm::report_fatal_error("Cannot chdir into \"" +
516 Twine(CompileCommand.Directory) + "\"!");
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp 38 return invalidArgumentError("mismatched type (node id=" + ID +
39 " kind=" + Kind.asStringRef() + ")");
39 " kind=" + Kind.asStringRef() + ")");
44 return invalidArgumentError("mismatched type: expected one of " +
45 ExpectedType + " (node id=" + ID +
45 ExpectedType + " (node id=" + ID +
45 ExpectedType + " (node id=" + ID +
46 " kind=" + Kind.asStringRef() + ")");
46 " kind=" + Kind.asStringRef() + ")");
51 return invalidArgumentError(Description + " requires property '" + Property +
51 return invalidArgumentError(Description + " requires property '" + Property +
51 return invalidArgumentError(Description + " requires property '" + Property +
52 "' (node id=" + ID + ")");
52 "' (node id=" + ID + ")");
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp 93 std::string Tag = (TagBase + Twine(Case.first)).str();
171 std::string Tag = ("Tag" + Twine(i)).str();
tools/clang/lib/Tooling/Transformer/SourceCodeBuilders.cpp 69 return ("(" + Text + ")").str();
90 return ("*(" + Text + ")").str();
110 return ("&(" + Text + ")").str();
125 return ("(" + DerefText + ")->").str();
134 return ("(" + Text + ").").str();
149 return ("(" + DerefText + ").").str();
158 return ("(" + Text + ")->").str();
tools/clang/lib/Tooling/Transformer/Stencil.cpp 106 return (llvm::Twine("dPrint(\"") + Data.Id + "\")").str();
106 return (llvm::Twine("dPrint(\"") + Data.Id + "\")").str();
122 return (OpName + "(\"" + Data.Id + "\")").str();
122 return (OpName + "(\"" + Data.Id + "\")").str();
128 return (llvm::Twine("access(\"") + Data.BaseId + "\", " +
128 return (llvm::Twine("access(\"") + Data.BaseId + "\", " +
128 return (llvm::Twine("access(\"") + Data.BaseId + "\", " +
129 Data.Member.toString() + ")")
134 return (llvm::Twine("ifBound(\"") + Data.Id + "\", " +
134 return (llvm::Twine("ifBound(\"") + Data.Id + "\", " +
134 return (llvm::Twine("ifBound(\"") + Data.Id + "\", " +
135 Data.TruePart.toString() + ", " + Data.FalsePart.toString() + ")")
135 Data.TruePart.toString() + ", " + Data.FalsePart.toString() + ")")
135 Data.TruePart.toString() + ", " + Data.FalsePart.toString() + ")")
tools/clang/lib/Tooling/Transformer/Transformer.cpp 66 AC.addHeader((llvm::Twine("<") + Header + ">").str());
66 AC.addHeader((llvm::Twine("<") + Header + ">").str());
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp 484 ObjcopyArgs.push_back(SS.save(Twine("--add-section=") +
485 OFFLOAD_BUNDLER_MAGIC_STR + TargetNames[I] +
485 OFFLOAD_BUNDLER_MAGIC_STR + TargetNames[I] +
486 "=" + InputFileNames[I]));
915 "expecting exactly one host target but got " +
tools/clang/tools/clang-refactor/ClangRefactor.cpp 567 llvm::Twine("ERROR: more than one matching rule of action") +
568 Subcommand.getName() + "was found with given options.",
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 248 : (llvm::join(DeclI, DeclE, "::") + "::" + UnqualifiedDeclName)
258 Code = ("namespace " + NsSplitted.back() + " {\n" + Code +
258 Code = ("namespace " + NsSplitted.back() + " {\n" + Code +
258 Code = ("namespace " + NsSplitted.back() + " {\n" + Code +
259 "} // namespace " + NsSplitted.back() + "\n")
259 "} // namespace " + NsSplitted.back() + "\n")
384 Prefix = (StringRef(FullOldNs).drop_back(DiffOldNamespace.size()) +
795 const std::string NewNs = (NewNamespace + Postfix).str();
849 (AliasName + "::" + FromDeclNameRef).str();
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp 442 " of file " + L.Filename);
452 "href", (FileURL + "#" + std::to_string(L.LineNumber)).str());
646 std::make_unique<TagNode>(HTMLTag::TAG_H3, EnumType + I.Name));
764 InfoTitle = (getTagType(I.TagType) + " " + I.Name).str();
977 llvm::sys::path::filename(FilePath) +
978 ": " + FileErr.message() + "\n");
978 ": " + FileErr.message() + "\n");
tools/clang/tools/extra/clang-doc/MDGenerator.cpp 50 OS << std::string(Num, '#') + " " + Text << "\n\n";
54 OS << genItalic("Defined at line " + std::to_string(L.LineNumber) + " of " +
97 writeLine("<" + I.Name + Attrs.str() + CloseTag, OS);
97 writeLine("<" + I.Name + Attrs.str() + CloseTag, OS);
99 writeLine("</" + I.Name + ">", OS);
109 writeLine("| enum class " + I.Name + " |", OS);
111 writeLine("| enum " + I.Name + " |", OS);
134 Stream << N.Type.Name + " " + N.Name;
140 writeLine(genItalic(Access + " " + I.ReturnType.Type.Name + " " + I.Name +
140 writeLine(genItalic(Access + " " + I.ReturnType.Type.Name + " " + I.Name +
140 writeLine(genItalic(Access + " " + I.ReturnType.Type.Name + " " + I.Name +
140 writeLine(genItalic(Access + " " + I.ReturnType.Type.Name + " " + I.Name +
141 "(" + Stream.str() + ")"),
141 "(" + Stream.str() + ")"),
144 writeLine(genItalic(I.ReturnType.Type.Name + " " + I.Name + "(" +
144 writeLine(genItalic(I.ReturnType.Type.Name + " " + I.Name + "(" +
144 writeLine(genItalic(I.ReturnType.Type.Name + " " + I.Name + "(" +
145 Stream.str() + ")"),
194 writeHeader(getTagType(I.TagType) + " " + I.Name, 1, OS);
221 writeLine(Access + " " + Member.Type.Name + " " + Member.Name, OS);
221 writeLine(Access + " " + Member.Type.Name + " " + Member.Name, OS);
221 writeLine(Access + " " + Member.Type.Name + " " + Member.Name, OS);
223 writeLine(Member.Type.Name + " " + Member.Name, OS);
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp 177 llvm::sys::path::append(Path, Name + Ext);
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp 71 OutputDir + "/" + llvm::sys::path::filename(FileName) + "-%%%%%%.yaml",
71 OutputDir + "/" + llvm::sys::path::filename(FileName) + "-%%%%%%.yaml",
tools/clang/tools/extra/clang-move/Move.cpp 698 IsAngled ? ("#include <" + IncludeHeader + ">\n").str()
699 : ("#include \"" + IncludeHeader + "\"\n").str();
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp 123 llvm::report_fatal_error("Cannot detect current path: " +
tools/clang/tools/extra/clang-query/QueryParser.cpp 96 return new InvalidQuery("expected 'true' or 'false', got '" + ValStr + "'");
111 "expected 'diag', 'print', 'detailed-ast' or 'dump', got '" + ValStr +
130 return new InvalidQuery("unexpected extra input: '" + Extra + "'");
248 return new InvalidQuery("unknown variable: '" + VarStr + "'");
277 return new InvalidQuery("unknown variable: '" + VarStr + "'");
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp 188 auto Description = ("reordering field " + UM->getName() + " after " +
188 auto Description = ("reordering field " + UM->getName() + " after " +
189 ThisM->getName() + " makes " + UM->getName() +
189 ThisM->getName() + " makes " + UM->getName() +
189 ThisM->getName() + " makes " + UM->getName() +
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp 164 Level, (Description + " [" + CheckName + "]").str());
164 Level, (Description + " [" + CheckName + "]").str());
tools/clang/tools/extra/clang-tidy/ClangTidyProfiling.cpp 36 StoreFilename = llvm::Twine(FinalPrefix + "-" +
37 llvm::sys::path::filename(SourceFile) + ".json")
tools/clang/tools/extra/clang-tidy/abseil/DurationAdditionCheck.cpp 52 (llvm::Twine(TimeFactory) + "(" +
52 (llvm::Twine(TimeFactory) + "(" +
53 tooling::fixit::getText(*Call->getArg(0), *Result.Context) + " + " +
53 tooling::fixit::getText(*Call->getArg(0), *Result.Context) + " + " +
54 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getRHS()) + ")")
61 (llvm::Twine(TimeFactory) + "(" +
61 (llvm::Twine(TimeFactory) + "(" +
62 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()) +
63 " + " + tooling::fixit::getText(*Call->getArg(0), *Result.Context) +
63 " + " + tooling::fixit::getText(*Call->getArg(0), *Result.Context) +
tools/clang/tools/extra/clang-tidy/abseil/DurationComparisonCheck.cpp 51 (llvm::Twine(LhsReplacement) + " " +
51 (llvm::Twine(LhsReplacement) + " " +
52 Binop->getOpcodeStr() + " " +
52 Binop->getOpcodeStr() + " " +
tools/clang/tools/extra/clang-tidy/abseil/DurationConversionCastCheck.cpp 62 (llvm::Twine(NewFuncName.substr(2)) + "(" +
62 (llvm::Twine(NewFuncName.substr(2)) + "(" +
63 tooling::fixit::getText(*Arg, *Result.Context) + ")")
77 (llvm::Twine(NewFuncName.substr(2)) + "(" +
77 (llvm::Twine(NewFuncName.substr(2)) + "(" +
78 tooling::fixit::getText(*Arg, *Result.Context) + ")")
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryFloatCheck.cpp 62 (llvm::Twine("use the integer version of absl::") +
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp 212 (llvm::Twine(getDurationFactoryForScale(*NewScale)) + "(" +
212 (llvm::Twine(getDurationFactoryForScale(*NewScale)) + "(" +
213 tooling::fixit::getText(*Remainder, *Result.Context) + ")")
225 (llvm::Twine(getDurationFactoryForScale(*NewScale)) + "(" +
225 (llvm::Twine(getDurationFactoryForScale(*NewScale)) + "(" +
226 tooling::fixit::getText(*Remainder, *Result.Context) + ")")
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp 282 return (llvm::Twine(getDurationFactoryForScale(Scale)) + "(" +
282 return (llvm::Twine(getDurationFactoryForScale(Scale)) + "(" +
283 simplifyDurationFactoryArg(Result, RootNode) + ")")
300 return (llvm::Twine(getTimeFactoryForScale(Scale)) + "(" +
300 return (llvm::Twine(getTimeFactoryForScale(Scale)) + "(" +
301 tooling::fixit::getText(RootNode, *Result.Context) + ")")
tools/clang/tools/extra/clang-tidy/abseil/DurationSubtractionCheck.cpp 53 (llvm::Twine("absl::") + FuncDecl->getName() + "(" +
53 (llvm::Twine("absl::") + FuncDecl->getName() + "(" +
53 (llvm::Twine("absl::") + FuncDecl->getName() + "(" +
54 tooling::fixit::getText(*LhsArg, *Result.Context) + " - " +
54 tooling::fixit::getText(*LhsArg, *Result.Context) + " - " +
55 RhsReplacement + ")")
tools/clang/tools/extra/clang-tidy/abseil/DurationUnnecessaryConversionCheck.cpp 25 std::string DurationFactory = (llvm::Twine("::absl::") + Scale).str();
27 (llvm::Twine("::absl::ToDouble") + Scale).str();
29 (llvm::Twine("::absl::ToInt64") + Scale).str();
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.cpp 97 (StringRef("use ") + StartswithStr + " instead of find() " +
97 (StringRef("use ") + StartswithStr + " instead of find() " +
97 (StringRef("use ") + StartswithStr + " instead of find() " +
98 ComparisonExpr->getOpcodeStr() + " 0")
103 (StartswithStr + "(" + HaystackExprCode + ", " + NeedleExprCode + ")")
103 (StartswithStr + "(" + HaystackExprCode + ", " + NeedleExprCode + ")")
103 (StartswithStr + "(" + HaystackExprCode + ", " + NeedleExprCode + ")")
103 (StartswithStr + "(" + HaystackExprCode + ", " + NeedleExprCode + ")")
tools/clang/tools/extra/clang-tidy/abseil/TimeComparisonCheck.cpp 53 (llvm::Twine(LhsReplacement) + " " +
53 (llvm::Twine(LhsReplacement) + " " +
54 Binop->getOpcodeStr() + " " +
54 Binop->getOpcodeStr() + " " +
tools/clang/tools/extra/clang-tidy/abseil/TimeSubtractionCheck.cpp 97 std::string TimeInverse = (llvm::Twine("ToUnix") + ScaleName).str();
102 functionDecl(hasName((llvm::Twine("::absl::") + TimeInverse).str()))
152 (llvm::Twine(NeedParens ? "(" : "") +
153 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + " - " +
153 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + " - " +
154 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) +
177 (llvm::Twine(NeedParens ? "(" : "") +
178 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) +
179 " - " +
180 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) +
189 getDurationInverseForScale(*Scale).second.str().substr(2)) +
190 "(" + rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) +
190 "(" + rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) +
191 " - " +
192 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getRHS()) + ")")
tools/clang/tools/extra/clang-tidy/android/CloexecAcceptCheck.cpp 33 (Twine("accept4(") + getSpellingArg(Result, 0) + ", " +
33 (Twine("accept4(") + getSpellingArg(Result, 0) + ", " +
33 (Twine("accept4(") + getSpellingArg(Result, 0) + ", " +
34 getSpellingArg(Result, 1) + ", " + getSpellingArg(Result, 2) +
34 getSpellingArg(Result, 1) + ", " + getSpellingArg(Result, 2) +
34 getSpellingArg(Result, 1) + ", " + getSpellingArg(Result, 2) +
tools/clang/tools/extra/clang-tidy/android/CloexecCheck.cpp 31 " \"" + Twine(Mode) + "\"")
31 " \"" + Twine(Mode) + "\"")
35 return ("\"" + SR + Twine(Mode) + "\"").str();
35 return ("\"" + SR + Twine(Mode) + "\"").str();
71 << FixItHint::CreateInsertion(EndLoc, (Twine(" | ") + MacroFlag).str());
tools/clang/tools/extra/clang-tidy/android/CloexecCreatCheck.cpp 31 (Twine("open (") + getSpellingArg(Result, 0) +
31 (Twine("open (") + getSpellingArg(Result, 0) +
32 ", O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, " +
33 getSpellingArg(Result, 1) + ")")
tools/clang/tools/extra/clang-tidy/android/CloexecDupCheck.cpp 27 (Twine("fcntl(") + getSpellingArg(Result, 0) + ", F_DUPFD_CLOEXEC)")
27 (Twine("fcntl(") + getSpellingArg(Result, 0) + ", F_DUPFD_CLOEXEC)")
tools/clang/tools/extra/clang-tidy/android/CloexecPipeCheck.cpp 27 (Twine("pipe2(") + getSpellingArg(Result, 0) + ", O_CLOEXEC)").str();
27 (Twine("pipe2(") + getSpellingArg(Result, 0) + ", O_CLOEXEC)").str();
tools/clang/tools/extra/clang-tidy/boost/UseToStringCheck.cpp 69 (llvm::Twine("std::to_") + StringType + "(").str());
69 (llvm::Twine("std::to_") + StringType + "(").str());
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 304 Comment.first, (Matches[1] + II->getName() + Matches[3]).str());
304 Comment.first, (Matches[1] + II->getName() + Matches[3]).str());
319 (llvm::Twine("/*") + II->getName() + "=*/").str();
319 (llvm::Twine("/*") + II->getName() + "=*/").str();
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp 102 (StrLenBegin + LHSText + StrLenEnd + " + " + RHSText).str());
102 (StrLenBegin + LHSText + StrLenEnd + " + " + RHSText).str());
102 (StrLenBegin + LHSText + StrLenEnd + " + " + RHSText).str());
102 (StrLenBegin + LHSText + StrLenEnd + " + " + RHSText).str());
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp 38 : (llvm::Twine("decltype(") + ParmVar->getName() + ")").str();
38 : (llvm::Twine("decltype(") + ParmVar->getName() + ")").str();
41 (llvm::Twine("forward<") + TypeName + ">").str();
41 (llvm::Twine("forward<") + TypeName + ">").str();
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 317 (Twine(NewLength) + (isInjectUL(Result) ? "UL" : "")).str());
457 (Twine(exprToStr(getDestCapacityExpr(Result), Result)) +
483 (Twine('\n') + SpaceBeforeStmtStr +
483 (Twine('\n') + SpaceBeforeStmtStr +
484 exprToStr(Result.Nodes.getNodeAs<Expr>(DestExprName), Result) + "[" +
484 exprToStr(Result.Nodes.getNodeAs<Expr>(DestExprName), Result) + "[" +
485 exprToStr(Result.Nodes.getNodeAs<Expr>(LengthExprName), Result) +
486 "] = " + ((Name[0] != 'w') ? "\'\\0\';" : "L\'\\0\';"))
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp 95 (llvm::Twine(KnownStringCompareFunctions) + StringCompareLikeFunctions)
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.cpp 79 std::string CastText = ("dynamic_cast<" + DestTypeString + ">").str();
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp 149 ReplaceWithCast((CastType + "<" + DestTypeString + ">").str());
149 ReplaceWithCast((CastType + "<" + DestTypeString + ">").str());
175 ReplaceWithCast(("static_cast<" + DestTypeString + ">").str());
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.cpp 141 ((IsSigned ? SignedTypePrefix : UnsignedTypePrefix) + Twine(Width) +
141 ((IsSigned ? SignedTypePrefix : UnsignedTypePrefix) + Twine(Width) +
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp 39 std::string NewText = ("// TODO(" + Twine(User) + "): " + Comment).str();
39 std::string NewText = ("// TODO(" + Twine(User) + "): " + Comment).str();
39 std::string NewText = ("// TODO(" + Twine(User) + "): " + Comment).str();
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp 132 StaticAssertMSG = (Twine(", \"") + AssertMSG->getString() + "\"").str();
132 StaticAssertMSG = (Twine(", \"") + AssertMSG->getString() + "\"").str();
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 155 RemovalRange, (Twine(" /*") + Param->getName() + "*/").str());
155 RemovalRange, (Twine(" /*") + Param->getName() + "*/").str());
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp 108 (llvm::Twine("<") + CStyledHeaderToCxx[FileName] + ">").str();
108 (llvm::Twine("<") + CStyledHeaderToCxx[FileName] + ">").str();
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 645 std::string Range = ("(" + TypeString + " " + VarName + " : " +
646 MaybeDereference + Descriptor.ContainerString + ")")
646 MaybeDereference + Descriptor.ContainerString + ")")
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp 246 (llvm::Twine(" = ") + MakeSmartPtrFunctionName + "<" +
246 (llvm::Twine(" = ") + MakeSmartPtrFunctionName + "<" +
246 (llvm::Twine(" = ") + MakeSmartPtrFunctionName + "<" +
247 GetNewExprName(New, SM, getLangOpts()) + ">")
tools/clang/tools/extra/clang-tidy/modernize/RawStringLiteralCheck.cpp 80 return (R"(R"()" + Bytes + R"lit()")lit").str();
82 return (R"(R")" + Delimiter + "(" + Bytes + ")" + Delimiter + R"(")").str();
82 return (R"(R")" + Delimiter + "(" + Bytes + ")" + Delimiter + R"(")").str();
82 return (R"(R")" + Delimiter + "(" + Bytes + ")" + Delimiter + R"(")").str();
82 return (R"(R")" + Delimiter + "(" + Bytes + ")" + Delimiter + R"(")").str();
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp 121 Message = (llvm::Twine(Redundant) +
122 " redundant since the function is already declared " + Correct)
tools/clang/tools/extra/clang-tidy/mpi/TypeMismatchCheck.cpp 162 BufferTypeName = (llvm::Twine(Builtin->getName(LO)) + " _Complex").str();
196 (llvm::Twine("complex<") + Builtin->getName(LO) + ">").str();
196 (llvm::Twine("complex<") + Builtin->getName(LO) + ">").str();
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp 149 (llvm::Twine(ContainerText) + (PtrToContainer ? "->" : ".") +
149 (llvm::Twine(ContainerText) + (PtrToContainer ? "->" : ".") +
150 AlgDecl->getName() + "(" + ParamText + ")")
150 AlgDecl->getName() + "(" + ParamText + ")")
150 AlgDecl->getName() + "(" + ParamText + ")")
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 265 (VarName + PartialReserveStmt + "(" + ReserveSize + ");\n").str();
265 (VarName + PartialReserveStmt + "(" + ReserveSize + ");\n").str();
265 (VarName + PartialReserveStmt + "(" + ReserveSize + ");\n").str();
265 (VarName + PartialReserveStmt + "(" + ReserveSize + ");\n").str();
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp 29 return (Name.empty() ? llvm::Twine('#') + llvm::Twine(Index + 1)
30 : llvm::Twine('\'') + Name + llvm::Twine('\''))
30 : llvm::Twine('\'') + Name + llvm::Twine('\''))
tools/clang/tools/extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp 144 Message = (Twine("'") + Old + "' can be replaced by " + New).str();
144 Message = (Twine("'") + Old + "' can be replaced by " + New).str();
144 Message = (Twine("'") + Old + "' can be replaced by " + New).str();
149 Message = (Twine("'") + Old + "' is a non-portable " +
149 Message = (Twine("'") + Old + "' is a non-portable " +
149 Message = (Twine("'") + Old + "' is a non-portable " +
150 llvm::Triple::getArchTypeName(Arch) + " intrinsic function")
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp 391 return (Style.Prefix + Mid + Style.Suffix).str();
391 return (Style.Prefix + Mid + Style.Suffix).str();
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 186 (Twine("static_cast<") + OtherType + ">" + (NeedParens ? "(" : ""))
186 (Twine("static_cast<") + OtherType + ">" + (NeedParens ? "(" : ""))
186 (Twine("static_cast<") + OtherType + ">" + (NeedParens ? "(" : ""))
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 268 (Twine("\n") + Lexer::getIndentationForLine(WholeDecl->getBeginLoc(),
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp 165 "%0 ends with a comment that refers to a wrong namespace '") +
166 NamespaceNameInComment + "'")
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp 59 return (llvm::Twine("*(") + Text + ")").str();
59 return (llvm::Twine("*(") + Text + ")").str();
61 return (llvm::Twine("*") + Text).str();
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 132 return ("static_cast<bool>(" + text + ")").str();
176 (isa<BinaryOperator>(E) ? ("(" + getText(Result, *E) + ")")
235 return (asBool((getText(Result, *LHS) + " " + NegatedOperator + " " +
235 return (asBool((getText(Result, *LHS) + " " + NegatedOperator + " " +
235 return (asBool((getText(Result, *LHS) + " " + NegatedOperator + " " +
242 return ("!(" + Text + ")").str();
605 std::string Replacement = ("return " + Condition + Terminator).str();
662 (VariableName + " = " + Condition + Terminator).str();
662 (VariableName + " = " + Condition + Terminator).str();
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp 116 IsAngled ? llvm::Twine("#include <" + FileName + ">\n").str()
117 : llvm::Twine("#include \"" + FileName + "\"\n").str();
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp 69 (llvm::Twine("\nnamespace ") + Abbreviation + " = " + Namespace + ";")
69 (llvm::Twine("\nnamespace ") + Abbreviation + " = " + Namespace + ";")
69 (llvm::Twine("\nnamespace ") + Abbreviation + " = " + Namespace + ";")
69 (llvm::Twine("\nnamespace ") + Abbreviation + " = " + Namespace + ";")
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp 71 (llvm::Twine("\nusing ") + QualifiedName + ";").str();
71 (llvm::Twine("\nusing ") + QualifiedName + ";").str();
tools/clang/tools/extra/clangd/AST.cpp 145 return ("(anonymous " + Cls->getKindName() + ")").str();
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp 131 "Files must be saved first: " + LastInvalidFile + " (and " +
131 "Files must be saved first: " + LastInvalidFile + " (and " +
132 llvm::to_string(InvalidFileCount - 1) + " others)");
tools/clang/tools/extra/clangd/CodeComplete.cpp 190 (IndexResult->Scope + IndexResult->Name).toStringRef(Scratch),
536 (AS + (UnresolvedQualifier ? *UnresolvedQualifier : "")).str());
tools/clang/tools/extra/clangd/FindSymbols.cpp 102 SymbolInformation Info = {(Sym.Name + Sym.TemplateSpecializationArgs).str(),
tools/clang/tools/extra/clangd/Format.cpp 159 (std::string(columnWidthUTF8(PreComment), ' ') + CommentMarker + " ")
159 (std::string(columnWidthUTF8(PreComment), ' ') + CommentMarker + " ")
tools/clang/tools/extra/clangd/Headers.cpp 43 (IsAngled ? "<" + FileName + ">" : "\"" + FileName + "\"").str();
43 (IsAngled ? "<" + FileName + ">" : "\"" + FileName + "\"").str();
tools/clang/tools/extra/clangd/IncludeFixer.cpp 297 Result.UnresolvedScope->append((Result.Name + Split.first).str());
tools/clang/tools/extra/clangd/SourceCode.cpp 915 UsingDirectives[Current].insert((Enclosing + "::" + NS).str());
tools/clang/tools/extra/clangd/TUScheduler.cpp 634 trace::Span Tracer(Name + ":" + llvm::sys::path::filename(FileName));
tools/clang/tools/extra/clangd/XRefs.cpp 467 return ("(anonymous " + RD->getKindName() + ")").str();
tools/clang/tools/extra/clangd/index/Background.cpp 152 ThreadPool.runAsync("background-worker-" + llvm::Twine(I + 1), [this] {
tools/clang/tools/extra/clangd/index/BackgroundIndexStorage.cpp 34 "." + llvm::toHex(digest(FilePath)) +
34 "." + llvm::toHex(digest(FilePath)) +
tools/clang/tools/extra/clangd/index/CanonicalIncludes.cpp 78 : ("\"" + Text + "\"").str());
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp 67 std::string SymQualifiedName = (Sym.Scope + Sym.Name).str();
153 Sym.Scope + Sym.Name);
tools/clang/tools/extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp 70 ("/* " + toTextMateScope(Token.Kind) + " */").str());
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp 94 ("R\"(" + Str->getBytes() + ")\"").str(),
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp 405 "Path " + AbsolutePath + " doesn't start with root " + TestDir,
405 "Path " + AbsolutePath + " doesn't start with root " + TestDir,
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp 666 std::string SearchDirArg = (Twine("-I") + Subdir).str();
2342 std::string SearchDirArg = (Twine("-I") + Subdir).str();
tools/clang/tools/extra/clangd/unittests/FileIndexTests.cpp 48 MATCHER_P(QName, N, "") { return (arg.Scope + arg.Name).str() == N; }
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp 123 std::string SearchDirArg = (llvm::Twine("-I") + Subdir).str();
224 SearchDirArg = (llvm::Twine("-I") + Subdir + "/..").str();
224 SearchDirArg = (llvm::Twine("-I") + Subdir + "/..").str();
tools/clang/tools/extra/clangd/unittests/SerializationTests.cpp 97 MATCHER_P(QName, Name, "") { return (arg.Scope + arg.Name).str() == Name; }
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp 49 return (arg.Name + arg.Signature).str() == Label;
54 return (arg.Name + arg.CompletionSnippetSuffix).str() == S;
56 MATCHER_P(QName, Name, "") { return (arg.Scope + arg.Name).str() == Name; }
611 (Main.code() + SymbolsOnlyInMainCode.code()).str());
tools/clang/tools/extra/clangd/unittests/TestFS.cpp 120 AbsolutePath + "does not start with " + testRoot(),
tools/clang/tools/extra/clangd/unittests/TestIndex.cpp 91 return (Sym.Scope + Sym.Name + Sym.TemplateSpecializationArgs).str();
91 return (Sym.Scope + Sym.Name + Sym.TemplateSpecializationArgs).str();
tools/clang/tools/extra/clangd/unittests/TestTU.cpp 100 if (QName != (S.Scope + S.Name).str())
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp 40 return (Wrapping.first + Inner + Wrapping.second).str();
40 return (Wrapping.first + Inner + Wrapping.second).str();
144 Cases.push_back((Code.substr(0, Offset) + "^" + Code.substr(Offset)).str());
149 Cases.push_back((Code.substr(0, Begin) + "[[" +
150 Code.substr(Begin, End - Begin) + "]]" + Code.substr(End))
150 Code.substr(Begin, End - Begin) + "]]" + Code.substr(End))
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h 128 Twine("include/") + FileContent.first, 0,
tools/clang/tools/libclang/CXLoadedDiagnostic.cpp 115 *Disable = cxstring::createDup((Twine("-Wno-") + DiagOption).str());
116 return cxstring::createDup((Twine("-W") + DiagOption).str());
tools/clang/tools/libclang/CXStoredDiagnostic.cpp 57 *Disable = cxstring::createDup((Twine("-Wno-") + Option).str());
58 return cxstring::createDup((Twine("-W") + Option).str());
tools/clang/unittests/Format/FormatTest.cpp 99 verifyFormat(llvm::Twine("void f() { " + text + " }").str());
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp 127 ("[{\"directory\":\"" + Directory1 + "\"," + "\"command\":\"" + Command1 +
127 ("[{\"directory\":\"" + Directory1 + "\"," + "\"command\":\"" + Command1 +
127 ("[{\"directory\":\"" + Directory1 + "\"," + "\"command\":\"" + Command1 +
127 ("[{\"directory\":\"" + Directory1 + "\"," + "\"command\":\"" + Command1 +
129 "\"file\":\"" +
130 FileName1 + "\", \"output\":\"" +
130 FileName1 + "\", \"output\":\"" +
131 Output1 + "\"},"
132 " {\"directory\":\"" +
133 Directory2 + "\"," + "\"command\":\"" + Command2 + "\","
133 Directory2 + "\"," + "\"command\":\"" + Command2 + "\","
133 Directory2 + "\"," + "\"command\":\"" + Command2 + "\","
133 Directory2 + "\"," + "\"command\":\"" + Command2 + "\","
134 "\"file\":\"" +
135 FileName2 + "\"}]")
153 ("[{\"directory\":\"" + Directory2 + "\"," + "\"command\":\"" + Command2 +
153 ("[{\"directory\":\"" + Directory2 + "\"," + "\"command\":\"" + Command2 +
153 ("[{\"directory\":\"" + Directory2 + "\"," + "\"command\":\"" + Command2 +
153 ("[{\"directory\":\"" + Directory2 + "\"," + "\"command\":\"" + Command2 +
155 "\"file\":\"" +
156 FileName2 + "\"},"
157 " {\"directory\":\"" +
158 Directory1 + "\"," + "\"command\":\"" + Command1 + "\","
158 Directory1 + "\"," + "\"command\":\"" + Command1 + "\","
158 Directory1 + "\"," + "\"command\":\"" + Command1 + "\","
158 Directory1 + "\"," + "\"command\":\"" + Command1 + "\","
159 "\"file\":\"" +
160 FileName1 + "\"}]")
198 ("[{\"directory\":\"" + Directory + "\","
199 "\"arguments\":[\"" + Arguments + "\"],"
199 "\"arguments\":[\"" + Arguments + "\"],"
200 "\"command\":\"" + Command + "\","
200 "\"command\":\"" + Command + "\","
201 "\"file\":\"" + FileName + "\"}]").str(),
201 "\"file\":\"" + FileName + "\"}]").str(),
299 ("[{\"directory\":\"" + Directory + "\"," +
299 ("[{\"directory\":\"" + Directory + "\"," +
300 "\"command\":\"" + Command + "\","
300 "\"command\":\"" + Command + "\","
301 "\"file\":\"" + FileName + "\"}]").str(),
301 "\"file\":\"" + FileName + "\"}]").str(),
313 ("[{\"directory\":\"" + Directory + "\"," +
313 ("[{\"directory\":\"" + Directory + "\"," +
314 "\"command\":\"" + Command + "\","
314 "\"command\":\"" + Command + "\","
315 "\"file\":\"" + FileName + "\"}]").str(),
315 "\"file\":\"" + FileName + "\"}]").str(),
328 ("[{\"directory\":\"" + Directory + "\"," +
328 ("[{\"directory\":\"" + Directory + "\"," +
329 "\"command\":\"" + Command + "\","
329 "\"command\":\"" + Command + "\","
330 "\"file\":\"" + FileName + "\"}]").str(),
330 "\"file\":\"" + FileName + "\"}]").str(),
345 ("[{\"directory\":\"" + Directory + "\"," +
345 ("[{\"directory\":\"" + Directory + "\"," +
346 "\"command\":\"" + Command + "\","
346 "\"command\":\"" + Command + "\","
347 "\"file\":\"" + FileName + "\"}]").str(),
347 "\"file\":\"" + FileName + "\"}]").str(),
360 ("{\"directory\":\"" + Directory + Twine(I) + "\"," +
360 ("{\"directory\":\"" + Directory + Twine(I) + "\"," +
360 ("{\"directory\":\"" + Directory + Twine(I) + "\"," +
361 "\"command\":\"" + Command + Twine(I) + "\","
361 "\"command\":\"" + Command + Twine(I) + "\","
361 "\"command\":\"" + Command + Twine(I) + "\","
362 "\"file\":\"" + FileName + Twine(I) + "\"}").str();
362 "\"file\":\"" + FileName + Twine(I) + "\"}").str();
362 "\"file\":\"" + FileName + Twine(I) + "\"}").str();
401 Command + "\"}]").str();
tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp 30 StatementCode + "};")
tools/clang/unittests/Tooling/StencilTest.cpp 34 StatementCode + "};")
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp 158 Twine("multiple root nodes in \"") + NodeClassName
159 + "\" hierarchy");
165 PrintFatalError(Twine("didn't find root node in \"") + NodeClassName
166 + "\" hierarchy");
tools/clang/utils/TableGen/ClangAttrEmitter.cpp 3319 return ("\"" + Twine(CustomDiag) + "\"").str();
3319 return ("\"" + Twine(CustomDiag) + "\"").str();
3330 R.getName() + "; please add one to DeclNodes.td");
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp 233 Twine("group '") + Name +
233 Twine("group '") + Name +
251 Twine("group '") + Name +
251 Twine("group '") + Name +
620 "Diagnostic '" + Name +
1230 PrintFatalError(R.getLoc(), "Error " + R.getName() +
1231 " cannot be in a warning group [" + GroupName + "]");
1231 " cannot be in a warning group [" + GroupName + "]");
1238 PrintFatalError(R.getLoc(), "Error " + R.getName() +
tools/clang/utils/TableGen/ClangOpcodesEmitter.cpp 76 Rec(I + 1, ID + Type->getName());
298 Rec(I + 1, ID + Case->getName());
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp 261 Args.push_back(("<arg" + Twine(Args.size() + 1) + ">").str());
261 Args.push_back(("<arg" + Twine(Args.size() + 1) + ">").str());
320 getSphinxOptionID((Prefix + Option->getValueAsString("Name")).str()));
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp 89 return (llvm::Twine("https://clang-analyzer.llvm.org/") + LandingPage + "#" +
89 return (llvm::Twine("https://clang-analyzer.llvm.org/") + LandingPage + "#" +
89 return (llvm::Twine("https://clang-analyzer.llvm.org/") + LandingPage + "#" +
tools/clang/utils/TableGen/ClangTypeNodesEmitter.cpp 160 + macroName + "\" and \"" + newName + "\"");
160 + macroName + "\" and \"" + newName + "\"");
160 + macroName + "\" and \"" + newName + "\"");
160 + macroName + "\" and \"" + newName + "\"");
tools/clang/utils/TableGen/MveEmitter.cpp 807 Suffix = (Twine(", ") + IA.ExtraCheckArgs).str();
808 SemaChecks.push_back((Twine("SemaBuiltinConstantArg") +
809 IA.ExtraCheckType + "(TheCall, " + Index +
809 IA.ExtraCheckType + "(TheCall, " + Index +
809 IA.ExtraCheckType + "(TheCall, " + Index +
810 Suffix + ")")
816 return (Twine(" return ") +
818 " ||\n ") +
1060 PrintFatalError("unrecognized variable name '" + Name + "'");
1100 FullName = (Twine(BaseName) + Param->acleSuffix()).str();
1190 (Twine("CustomCodeGen::") + MainOp->getValueAsString("type")).str();
tools/clang/utils/TableGen/NeonEmitter.cpp 1997 ("Intrinsic '" + Name + "' not found!").str());
tools/dsymutil/DwarfLinker.cpp 275 Twine("Conflicting parseable interfaces for Swift Module ") +
276 *Name + ": " + Entry + " and " + Path,
276 *Name + ": " + Entry + " and " + Path,
276 *Name + ": " + Entry + " and " + Path,
276 *Name + ": " + Entry + " and " + Path,
518 Twine("unsupported object file type: ") + Obj.getFileName(), DMO);
2191 "different version of the module ") +
2222 Twine(Obj.getObjectFilename()) + ": " + toString(std::move(Err)), Obj);
2222 Twine(Obj.getObjectFilename()) + ": " + toString(std::move(Err)), Obj);
2230 Twine(Obj.getObjectFilename()) + ": " + toString(std::move(Err)), Obj);
2230 Twine(Obj.getObjectFilename()) + ": " + toString(std::move(Err)), Obj);
2322 "different version of the module ") +
2534 warn(Twine("cannot copy parseable Swift interface ") +
2535 InterfaceFile + ": " +
2535 InterfaceFile + ": " +
2600 warn("Could not open '" + File + "'\n");
tools/dsymutil/DwarfStreamer.cpp 62 return error(Twine("no register info for target ") + TripleName, Context);
722 MCSymbol *BeginLabel = Asm->createTempSymbol("pub" + SecName + "_begin");
723 MCSymbol *EndLabel = Asm->createTempSymbol("pub" + SecName + "_end");
tools/dsymutil/LinkUtils.h 75 WithColor::warning() << Warning + "\n";
77 WithColor::note() << Twine("while processing ") + Context + "\n";
77 WithColor::note() << Twine("while processing ") + Context + "\n";
81 WithColor::error() << Error + "\n";
83 WithColor::note() << Twine("while processing ") + Context + "\n";
83 WithColor::note() << Twine("while processing ") + Context + "\n";
tools/dsymutil/MachODebugMapParser.cpp 463 Warning("could not find object file symbol for symbol " + Twine(Name));
469 Warning(Twine("failed to insert symbol '") + Name + "' in the debug map.");
469 Warning(Twine("failed to insert symbol '") + Name + "' in the debug map.");
tools/dsymutil/MachOUtils.cpp 52 return (llvm::Twine("arm") + Arch.drop_front(5)).str();
351 return error(Twine("opening ") + DM.getBinaryPath() + ": " +
351 return error(Twine("opening ") + DM.getBinaryPath() + ": " +
351 return error(Twine("opening ") + DM.getBinaryPath() + ": " +
360 return error(Twine("opening ") + DM.getBinaryPath() + ": " +
360 return error(Twine("opening ") + DM.getBinaryPath() + ": " +
360 return error(Twine("opening ") + DM.getBinaryPath() + ": " +
tools/dsymutil/SymbolMap.cpp 112 SymbolMapPath += (Twine("/") + sys::path::filename(InputFile) + "-" +
112 SymbolMapPath += (Twine("/") + sys::path::filename(InputFile) + "-" +
112 SymbolMapPath += (Twine("/") + sys::path::filename(InputFile) + "-" +
113 MachOUtils::getArchName(Map.getTriple().getArchName()) +
tools/dsymutil/dsymutil.cpp 198 "invalid accelerator type specified: '" + S +
tools/gold/gold-plugin.cpp 687 return (Path + NewSuffix).str();
tools/llc/llc.cpp 512 (Twine(argv[0]) + Twine(": ") + Twine(InputFilename)).str();
512 (Twine(argv[0]) + Twine(": ") + Twine(InputFilename)).str();
tools/lld/COFF/Chunks.cpp 115 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
115 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
115 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
130 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
130 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
130 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
143 error("unexpected instruction in " + Twine(movt ? "MOVT" : "MOVW") +
143 error("unexpected instruction in " + Twine(movt ? "MOVT" : "MOVW") +
147 error("unexpected instruction in " + Twine(movt ? "MOVT" : "MOVW") +
147 error("unexpected instruction in " + Twine(movt ? "MOVT" : "MOVW") +
200 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
200 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
200 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
312 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
312 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
312 error("unsupported relocation type 0x" + Twine::utohexstr(type) + " in " +
558 error("unable to automatically import from " + target->getName() +
559 " with relocation type " +
560 file->getCOFFObj()->getRelocationTypeName(rel.Type) + " in " +
560 file->getCOFFObj()->getRelocationTypeName(rel.Type) + " in " +
616 warn("ignoring section " + sectionName + " with unrecognized magic 0x" +
616 warn("ignoring section " + sectionName + " with unrecognized magic 0x" +
tools/lld/COFF/Driver.cpp 101 error(arg->getSpelling() + " expects 'old;new' format, but got " + s);
275 log("Loaded " + toString(obj) + " for " + symName);
284 toCOFFString(sym) + ": " + parentName + "(" + childName + "): " +
284 toCOFFString(sym) + ": " + parentName + "(" + childName + "): " +
284 toCOFFString(sym) + ": " + parentName + "(" + childName + "): " +
284 toCOFFString(sym) + ": " + parentName + "(" + childName + "): " +
284 toCOFFString(sym) + ": " + parentName + "(" + childName + "): " +
330 log("Directives: " + toString(file) + ": " + s);
528 log(unmangled->getName() + " aliased to " + mangled->getName());
659 error("/debug: unknown option: " + Twine(a->getValue()));
680 warn("/debugtype: unknown option '" + type + "'");
901 warn("/order:" + arg + ": missing symbol: " + s + " [LNK4037]");
901 warn("/order:" + arg + ": missing symbol: " + s + " [LNK4037]");
901 warn("/order:" + arg + ": missing symbol: " + s + " [LNK4037]");
990 var + " as literal");
1123 error(arg->getSpelling() + " number expected, but got " + s);
1289 fatal(Twine("unknown /machine argument: ") + arg->getValue());
1308 error("/filealign: not a power of two: " + Twine(config->fileAlign));
1342 fatal(Twine("invalid timestamp: ") + value +
1342 fatal(Twine("invalid timestamp: ") + value +
1430 Twine("/lldltocachepolicy: invalid cache policy: ") + arg->getValue());
1926 warn("/aligncomm symbol " + name + " not found");
tools/lld/COFF/DriverUtils.cpp 59 fatal("unable to find " + prog + " in PATH: " + ec.message());
59 fatal("unable to find " + prog + " in PATH: " + ec.message());
165 warn(s + ": already merged into " + existing);
402 fatal("internal manifest tool failed on file " + filename + ": " +
402 fatal("internal manifest tool failed on file " + filename + ": " +
694 fatal("/failifmismatch: mismatch detected for '" + k + "':\n>>> " +
694 fatal("/failifmismatch: mismatch detected for '" + k + "':\n>>> " +
695 existingStr + " has value " + existing.first + "\n>>> " + sourceStr +
695 existingStr + " has value " + existing.first + "\n>>> " + sourceStr +
695 existingStr + " has value " + existing.first + "\n>>> " + sourceStr +
695 existingStr + " has value " + existing.first + "\n>>> " + sourceStr +
695 existingStr + " has value " + existing.first + "\n>>> " + sourceStr +
696 " has value " + v);
842 fatal(Twine(args.getArgString(missingIndex)) + ": missing argument");
882 fatal(Twine(args.getArgString(missingIndex)) + ": missing argument");
tools/lld/COFF/ICF.cpp 298 log("ICF needed " + Twine(cnt) + " iterations");
298 log("ICF needed " + Twine(cnt) + " iterations");
tools/lld/COFF/InputFiles.cpp 63 return (getBasename(file->parentName) + "(" + getBasename(file->getName()) +
63 return (getBasename(file->parentName) + "(" + getBasename(file->getName()) +
137 ": Archive::children failed: " + toString(std::move(err)));
205 fatal("getSection failed: #" + Twine(i) + ": " + ec.message());
205 fatal("getSection failed: #" + Twine(i) + ": " + ec.message());
205 fatal("getSection failed: #" + Twine(i) + ": " + ec.message());
239 fatal("getSectionName failed: #" + Twine(sectionNumber) + ": " +
239 fatal("getSectionName failed: #" + Twine(sectionNumber) + ": " +
239 fatal("getSectionName failed: #" + Twine(sectionNumber) + ": " +
320 error(toString(this) + ": associative comdat " + name + " (sec " +
320 error(toString(this) + ": associative comdat " + name + " (sec " +
320 error(toString(this) + ": associative comdat " + name + " (sec " +
321 Twine(sectionNumber) + ") has invalid reference to section " +
321 Twine(sectionNumber) + ") has invalid reference to section " +
322 parentName + " (sec " + Twine(parentIndex) + ")");
322 parentName + " (sec " + Twine(parentIndex) + ")");
322 parentName + " (sec " + Twine(parentIndex) + ")");
453 log("comdat section " + name +
512 log(("conflicting comdat type for " + toString(*leader) + ": " +
513 Twine((int)leaderSelection) + " in " + toString(leader->getFile()) +
513 Twine((int)leaderSelection) + " in " + toString(leader->getFile()) +
513 Twine((int)leaderSelection) + " in " + toString(leader->getFile()) +
514 " and " + Twine((int)selection) + " in " + toString(this))
514 " and " + Twine((int)selection) + " in " + toString(this))
514 " and " + Twine((int)selection) + " in " + toString(this))
611 fatal(toString(this) + ": " + getName() +
611 fatal(toString(this) + ": " + getName() +
612 " should not refer to special section " + Twine(sectionNumber));
615 fatal(toString(this) + ": " + getName() +
615 fatal(toString(this) + ": " + getName() +
616 " should not refer to non-existent section " + Twine(sectionNumber));
647 " for " + getName() + " in " + toString(this));
647 " for " + getName() + " in " + toString(this));
647 " for " + getName() + " in " + toString(this));
895 saver.save(archiveName + path +
895 saver.save(archiveName + path +
958 return (path + repl).str();
tools/lld/COFF/LTO.cpp 51 error("cannot open " + file + ": " + ec.message());
51 error("cannot open " + file + ": " + ec.message());
198 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.obj");
198 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.obj");
tools/lld/COFF/MinGW.cpp 154 fatal("cannot open " + name + ": " + ec.message());
154 fatal("cannot open " + name + ": " + ec.message());
tools/lld/COFF/PDB.cpp 349 file->getName() + ")");
361 file->getName() + ")");
604 log("ignoring symbol record of kind 0x" + utohexstr(symKind) + " in " +
605 file->getName() + " with bad " + (isItemIndex ? "item" : "type") +
605 file->getName() + " with bad " + (isItemIndex ? "item" : "type") +
605 file->getName() + " with bad " + (isItemIndex ? "item" : "type") +
606 " index 0x" + utohexstr(ti.getIndex()));
1086 log("ignoring inlinee line record in " + file.getName() +
1087 " with bad inlinee index 0x" + utohexstr(inlinee.getIndex()));
1180 ">>> failed to load reference " +
tools/lld/COFF/SymbolTable.cpp 42 error(toString(file) + ": machine type " + machineToStr(mt) +
42 error(toString(file) + ": machine type " + machineToStr(mt) +
43 " conflicts with " + machineToStr(config->machine));
245 log("Loading lazy " + l->getName() + " from " + l->getFile()->getName() +
245 log("Loading lazy " + l->getName() + " from " + l->getFile()->getName() +
245 log("Loading lazy " + l->getName() + " from " + l->getFile()->getName() +
270 log("Automatically importing " + name + " from " +
270 log("Automatically importing " + name + " from " +
274 log("Automatically importing " + name + " from " +
274 log("Automatically importing " + name + " from " +
278 warn("unable to automatically import " + name + " from " + imp->getName() +
278 warn("unable to automatically import " + name + " from " + imp->getName() +
278 warn("unable to automatically import " + name + " from " + imp->getName() +
279 " from " + toString(cast<DefinedRegular>(imp)->file) +
279 " from " + toString(cast<DefinedRegular>(imp)->file) +
296 log("Replacing .refptr." + name + " with " + imp->getName());
296 log("Replacing .refptr." + name + " with " + imp->getName());
764 return findByPrefix("?" + name + "@@Y");
772 if (Symbol *s = findByPrefix("@" + name.substr(1) + "@"))
778 return findByPrefix("?" + name.substr(1) + "@@Y");
tools/lld/COFF/Symbols.cpp 42 return (prefix + prefixless).str();
tools/lld/COFF/Writer.cpp 552 log("Added " + Twine(numChunks - origNumChunks) + " thunks with " +
552 log("Added " + Twine(numChunks - origNumChunks) + " thunks with " +
552 log("Added " + Twine(numChunks - origNumChunks) + " thunks with " +
553 "margin " + Twine(margin) + " in " + Twine(pass) + " passes");
553 "margin " + Twine(margin) + " in " + Twine(pass) + " passes");
553 "margin " + Twine(margin) + " in " + Twine(pass) + " passes");
553 "margin " + Twine(margin) + " in " + Twine(pass) + " passes");
558 fatal("adding thunks hasn't converged after " + Twine(pass) + " passes");
558 fatal("adding thunks hasn't converged after " + Twine(pass) + " passes");
604 fatal("image size (" + Twine(fileSize) + ") " +
604 fatal("image size (" + Twine(fileSize) + ") " +
604 fatal("image size (" + Twine(fileSize) + ") " +
605 "exceeds maximum allowable size (" + Twine(UINT32_MAX) + ")");
605 "exceeds maximum allowable size (" + Twine(UINT32_MAX) + ")");
713 (sc1->file->parentName + "/" + sc1->file->getName()).str();
715 (sc2->file->parentName + "/" + sc2->file->getName()).str();
875 log("Processing section " + pSec->name + " -> " + name);
875 log("Processing section " + pSec->name + " -> " + name);
1192 fatal("/merge: cycle found for section '" + p.first + "'");
1474 error("/safeseh: " + file->getName() + " is not compatible with SEH");
1637 warn("ignoring " + c->getSectionName() +
1638 " symbol table index section in object " + toString(file));
1650 c->getSectionName() + " in object " + toString(file));
1650 c->getSectionName() + " in object " + toString(file));
1693 log("Writing " + Twine(rels.size()) + " runtime pseudo relocations");
1693 log("Writing " + Twine(rels.size()) + " runtime pseudo relocations");
1871 ", SectionID: " + Twine(sc->getSectionNumber()));
tools/lld/Common/Args.cpp 40 error(spelling + ": number expected, but got '" + a->getValue() + "'");
40 error(spelling + ": number expected, but got '" + a->getValue() + "'");
58 error("invalid " + key + ": " + kv.second);
58 error("invalid " + key + ": " + kv.second);
tools/lld/Common/Reproduce.cpp 47 return ("\"" + s + "\"").str();
tools/lld/Common/Strings.cpp 79 error("cannot create " + path + ": " + ec.message());
79 error("cannot create " + path + ": " + ec.message());
79 error("cannot create " + path + ": " + ec.message());
tools/lld/ELF/ARMErrataFix.cpp 285 ": skipping cortex-a8 657417 erratum sequence, section " +
286 isec->name + " is too large to patch");
tools/lld/ELF/Arch/AArch64.cpp 150 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
150 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
151 ") against symbol " + toString(s));
tools/lld/ELF/Arch/AMDGPU.cpp 99 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
99 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
100 ") against symbol " + toString(s));
tools/lld/ELF/Arch/Hexagon.cpp 129 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
129 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
130 ") against symbol " + toString(s));
tools/lld/ELF/Arch/Mips.cpp 183 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
183 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
184 ") against symbol " + toString(s));
462 error(getErrorLocation(loc) + "unsupported relocations combination " +
tools/lld/ELF/Arch/MipsArchTree.cpp 79 error(toString(f.file) + ": ABI '" + getAbiName(abi2) +
79 error(toString(f.file) + ": ABI '" + getAbiName(abi2) +
80 "' is incompatible with target ABI '" + getAbiName(abi) + "'");
80 "' is incompatible with target ABI '" + getAbiName(abi) + "'");
84 error(toString(f.file) + ": -mnan=" + getNanName(nan2) +
84 error(toString(f.file) + ": -mnan=" + getNanName(nan2) +
85 " is incompatible with target -mnan=" + getNanName(nan));
89 error(toString(f.file) + ": -mfp" + getFpName(fp2) +
89 error(toString(f.file) + ": -mfp" + getFpName(fp2) +
90 " is incompatible with target -mfp" + getFpName(fp));
265 return (arch + " (" + mach + ")").str();
265 return (arch + " (" + mach + ")").str();
357 error(fileName + ": floating point ABI '" + getMipsFpAbiName(newFlag) +
357 error(fileName + ": floating point ABI '" + getMipsFpAbiName(newFlag) +
358 "' is incompatible with target floating point ABI '" +
359 getMipsFpAbiName(oldFlag) + "'");
tools/lld/ELF/Arch/PPC.cpp 238 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
238 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
239 ") against symbol " + toString(s));
tools/lld/ELF/Arch/PPC64.cpp 357 error(toString(f) + ": unrecognized e_flags: " + Twine(flag));
631 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
631 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
632 ") against symbol " + toString(s));
857 "Can't toc-optimize an update instruction: 0x" +
tools/lld/ELF/Arch/SPARCV9.cpp 72 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
72 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
73 ") against symbol " + toString(s));
tools/lld/ELF/Arch/X86.cpp 153 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
153 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
154 ") against symbol " + toString(s));
tools/lld/ELF/Arch/X86_64.cpp 126 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
126 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) +
127 ") against symbol " + toString(s));
tools/lld/ELF/CallGraphSort.cpp 239 error("cannot open " + config->printSymbolOrder + ": " + ec.message());
239 error("cannot open " + config->printSymbolOrder + ": " + ec.message());
tools/lld/ELF/Driver.cpp 178 fatal(mb.getBufferIdentifier() + ": Archive::children failed: " +
720 warn(mb.getBufferIdentifier() + ": no such symbol: " + name);
790 error(getAliasSpelling(arg) + " expects 'old;new' format, but got " + s);
799 warn(mb.getBufferIdentifier() + ": duplicate ordered symbol: " + s);
812 error(msg + ": " + StringRef(err).trim());
812 error(msg + ": " + StringRef(err).trim());
986 error("invalid optimization level for LTO: " + Twine(config->ltoo));
1085 error(Twine("cannot find version script ") + arg->getValue());
1142 error("unknown -format value: " + s +
1176 error(Twine("cannot find linker script ") + arg->getValue());
1466 warn("could not find symbol " + name + " to keep unique");
1716 error("cannot open output file " + config->outputFile + ": " + e.message());
1716 error("cannot open output file " + config->outputFile + ": " + e.message());
1718 error("cannot open map file " + config->mapFile + ": " + e.message());
1718 error("cannot open map file " + config->mapFile + ": " + e.message());
tools/lld/ELF/DriverUtils.cpp 104 v.push_back(saver.save(s + "=" + args[i + 1]).data());
133 error(Twine(args.getArgString(missingIndex)) + ": missing argument");
231 if (Optional<std::string> s = findFile(dir, "lib" + name + ".so"))
233 if (Optional<std::string> s = findFile(dir, "lib" + name + ".a"))
tools/lld/ELF/EhFrame.cpp 44 fatal("corrupted .eh_frame: " + msg + "\n>>> defined in " +
44 fatal("corrupted .eh_frame: " + msg + "\n>>> defined in " +
44 fatal("corrupted .eh_frame: " + msg + "\n>>> defined in " +
160 "FDE version 1 or 3 expected, but got " + Twine(version));
tools/lld/ELF/ICF.cpp 485 log("ICF needed " + Twine(cnt) + " iterations");
485 log("ICF needed " + Twine(cnt) + " iterations");
tools/lld/ELF/InputFiles.cpp 49 f->toStringCache = (f->archiveName + "(" + f->getName() + ")").str();
49 f->toStringCache = (f->archiveName + "(" + f->getName() + ")").str();
73 fatal(filename + ": " + msg);
75 fatal(archiveName + "(" + filename + "): " + msg);
75 fatal(archiveName + "(" + filename + "): " + msg);
75 fatal(archiveName + "(" + filename + "): " + msg);
107 path = saver.save(config->chroot + path);
113 error("cannot open " + path + ": " + ec.message());
113 error("cannot open " + path + ": " + ec.message());
141 error(toString(file) + " is incompatible with " + config->emulation);
450 fatal(toString(this) + ":(" + name + "): SHF_MERGE section size (" +
450 fatal(toString(this) + ":(" + name + "): SHF_MERGE section size (" +
450 fatal(toString(this) + ":(" + name + "): SHF_MERGE section size (" +
451 Twine(sec.sh_size) + ") must be a multiple of sh_entsize (" +
451 Twine(sec.sh_size) + ") must be a multiple of sh_entsize (" +
452 Twine(entSize) + ")");
458 fatal(toString(this) + ":(" + name +
458 fatal(toString(this) + ":(" + name +
495 ": unable to find library from dependent library specifier: " +
573 ": invalid section index in group: " + Twine(secIndex));
603 fatal(toString(this) + ": invalid sh_link index: " + Twine(sec.sh_link));
608 error("a section " + isec->name +
609 " with SHF_LINK_ORDER should not refer a non-regular section: " +
644 error(toString(f) + ": unknown Tag_ABI_VFP_args value: " + Twine(vfpArgs));
768 fatal(toString(this) + ": invalid relocated section index: " + Twine(idx));
819 ": corrupted dependent libraries section (unterminated string): " +
1000 fatal(toString(this) + ": invalid section index: " + Twine(secIdx));
1041 fatal(toString(this) + ": common symbol '" + StringRef(name.data) +
1041 fatal(toString(this) + ": common symbol '" + StringRef(name.data) +
1042 "' has invalid alignment: " + Twine(value));
1067 fatal(toString(this) + ": unexpected binding: " + Twine((int)binding));
1265 warn("found local symbol '" + name +
1266 "' in global part of symbol table in file " + toString(this));
1298 error("corrupt input file: version definition index " + Twine(idx) +
1298 error("corrupt input file: version definition index " + Twine(idx) +
1299 " for symbol " + name + " is out of bounds\n>>> defined in " +
1299 " for symbol " + name + " is out of bounds\n>>> defined in " +
1299 " for symbol " + name + " is out of bounds\n>>> defined in " +
1308 name = (name + "@" + verName).toStringRef(versionedNameBuffer);
1353 error(path + ": could not infer e_machine from bitcode target triple " +
1376 : saver.save(archiveName + "(" + path + " at " +
1376 : saver.save(archiveName + "(" + path + " at " +
1376 : saver.save(archiveName + "(" + path + " at " +
1377 utostr(offsetInArchive) + ")");
1563 return (path + repl).str();
tools/lld/ELF/InputSection.cpp 43 return (toString(sec->file) + ":(" + sec->name + ")").str();
43 return (toString(sec->file) + ":(" + sec->name + ")").str();
296 std::string secAndOffset = (name + "+0x" + utohexstr(offset)).str();
300 return (config->outputFile + ":(" + secAndOffset + ")")
300 return (config->outputFile + ":(" + secAndOffset + ")")
354 return (filename + ":(" + name + "+0x" + utohexstr(off) + ")" + archive)
354 return (filename + ":(" + name + "+0x" + utohexstr(off) + ")" + archive)
354 return (filename + ":(" + name + "+0x" + utohexstr(off) + ")" + archive)
354 return (filename + ":(" + name + "+0x" + utohexstr(off) + ")" + archive)
354 return (filename + ":(" + name + "+0x" + utohexstr(off) + ")" + archive)
451 CHECK(file->getObj().getSectionName(&sec), file) +
452 "\n>>> referenced by " + getObjMsg(p->r_offset));
560 fatal("SBREL relocation to " + sym.getName() + " without static base");
1084 error(toString(this) + ": " + f->getName() +
1084 error(toString(this) + ": " + f->getName() +
1085 " (with -fsplit-stack) calls " + rel.sym->getName() +
1085 " (with -fsplit-stack) calls " + rel.sym->getName() +
tools/lld/ELF/LTO.cpp 55 error("cannot open " + file + ": " + ec.message());
55 error("cannot open " + file + ": " + ec.message());
287 saveBuffer(buf[i], config->ltoObjPath + Twine(i));
293 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.o");
293 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.o");
tools/lld/ELF/LinkerScript.cpp 108 error("section '" + secName + "' will not fit in region '" + regionName +
108 error("section '" + secName + "' will not fit in region '" + regionName +
108 error("section '" + secName + "' will not fit in region '" + regionName +
109 "': overflowed by " + Twine(newSize - memRegion->length) + " bytes");
109 "': overflowed by " + Twine(newSize - memRegion->length) + " bytes");
130 error(loc + ": unable to move location counter backward for: " +
130 error(loc + ": unable to move location counter backward for: " +
271 error("unable to INSERT AFTER/BEFORE " + p.first +
328 return (file->archiveName + "(" + file->getName() + ")").str();
328 return (file->archiveName + "(" + file->getName() + ")").str();
446 error("discarding " + s->name + " section is not allowed");
682 error(toString(s) + " is being placed in '" + name + "'");
682 error(toString(s) + " is being placed in '" + name + "'");
684 warn(toString(s) + " is being placed in '" + name + "'");
684 warn(toString(s) + " is being placed in '" + name + "'");
792 error("no memory region specified for section '" + sec->name + "'");
1166 error(loc + ": unable to get location counter value");
1178 error(loc + ": symbol not found: " + name);
1178 error(loc + ": symbol not found: " + name);
1200 error(cmd->location + ": section header '" + s +
1200 error(cmd->location + ": section header '" + s +
tools/lld/ELF/MapFile.cpp 137 << Twine::utohexstr(p.inputOff) + ")\n";
149 error("cannot open " + config->mapFile + ": " + ec.message());
149 error("cannot open " + config->mapFile + ": " + ec.message());
tools/lld/ELF/OutputSections.cpp 119 error("incompatible section flags for " + name + "\n>>> " + toString(isec) +
119 error("incompatible section flags for " + name + "\n>>> " + toString(isec) +
119 error("incompatible section flags for " + name + "\n>>> " + toString(isec) +
120 ": 0x" + utohexstr(isec->flags) + "\n>>> output section " + name +
120 ": 0x" + utohexstr(isec->flags) + "\n>>> output section " + name +
120 ": 0x" + utohexstr(isec->flags) + "\n>>> output section " + name +
120 ": 0x" + utohexstr(isec->flags) + "\n>>> output section " + name +
121 ": 0x" + utohexstr(flags));
125 error("section type mismatch for " + isec->name + "\n>>> " +
125 error("section type mismatch for " + isec->name + "\n>>> " +
126 toString(isec) + ": " +
126 toString(isec) + ": " +
127 getELFSectionTypeName(config->emachine, isec->type) +
128 "\n>>> output section " + name + ": " +
128 "\n>>> output section " + name + ": " +
128 "\n>>> output section " + name + ": " +
tools/lld/ELF/Relocations.cpp 730 std::string newName = (name.substr(0, i) + "0" + name.substr(i)).str();
757 newName = (name.substr(0, i) + name.substr(i + 1)).str();
804 msg += ("\n>>> referenced " + Twine(undef.locs.size() - i) + " more times")
804 msg += ("\n>>> referenced " + Twine(undef.locs.size() - i) + " more times")
tools/lld/ELF/ScriptLexer.cpp 68 return (filename + ":" + Twine(getLineNumber())).str();
78 std::string s = (getCurrentLocation() + ": " + msg).str();
106 error(filename + ":" + Twine(lineno + 1) + ": unclosed quote");
106 error(filename + ":" + Twine(lineno + 1) + ": unclosed quote");
285 setError(expect + " expected, but got " + tok);
tools/lld/ELF/ScriptParser.cpp 281 StringRef path = (config->sysroot + s).toStringRef(pathData);
294 driver->addFile(saver.save(config->sysroot + "/" + s.substr(1)),
464 setError("redefinition of memory region '" + alias + "'");
466 setError("memory region '" + name + "' is not defined");
555 setError("expected AFTER/BEFORE, but got '" + next() + "'");
888 setError("filler expression result does not fit 32-bit: 0x" +
1117 error(location + ": undefined section " + cmd->name);
1446 setError("expected one of: " + s1 + ", " + s2 + ", or " + s3);
1446 setError("expected one of: " + s1 + ", " + s2 + ", or " + s3);
1446 setError("expected one of: " + s1 + ", " + s2 + ", or " + s3);
1446 setError("expected one of: " + s1 + ", " + s2 + ", or " + s3);
1481 setError("region '" + tok + "' already defined");
tools/lld/ELF/SymbolTable.cpp 182 error("version script assignment of '" + versionName + "' to symbol '" +
182 error("version script assignment of '" + versionName + "' to symbol '" +
183 ver.name + "' failed: symbol not defined");
192 return ("version '" + config->versionDefinitions[ver].name + "'").str();
212 warn("attempt to reassign symbol '" + ver.name + "' of " +
212 warn("attempt to reassign symbol '" + ver.name + "' of " +
213 getName(sym->versionId) + " to " + getName(versionId));
213 getName(sym->versionId) + " to " + getName(versionId));
tools/lld/ELF/Symbols.cpp 245 error(toString(file) + ": symbol " + s + " has undefined version " +
245 error(toString(file) + ": symbol " + s + " has undefined version " +
245 error(toString(file) + ": symbol " + s + " has undefined version " +
312 message(toString(sym->file) + s + sym->getName());
331 auto report = [&](StringRef s) { warn(toString(file) + s + sym->getName()); };
331 auto report = [&](StringRef s) { warn(toString(file) + s + sym->getName()); };
482 warn("backward reference detected: " + other.getName() + " in " +
482 warn("backward reference detected: " + other.getName() + " in " +
483 toString(other.file) + " refers to " + toString(file));
483 toString(other.file) + " refers to " + toString(file));
542 warn("common " + getName() + " is overridden");
548 warn("common " + getName() + " is overridden");
tools/lld/ELF/SyntheticSections.cpp 74 s = saver.save(Twine("Linker: ") + getLLDVersion());
118 error(filename + ": invalid size of .MIPS.abiflags section: got " +
119 Twine(size) + " instead of " + Twine(sizeof(Elf_Mips_ABIFlags)));
119 Twine(size) + " instead of " + Twine(sizeof(Elf_Mips_ABIFlags)));
124 error(filename + ": unexpected .MIPS.abiflags version " +
518 fatal(toString(fde->sec) + ": PC offset is too large: 0x" +
1960 log(".relr.dyn needs " + Twine(oldSize - relrRelocs.size()) +
1960 log(".relr.dyn needs " + Twine(oldSize - relrRelocs.size()) +
tools/lld/ELF/Target.cpp 42 return ("Unknown (" + Twine(type) + ")").str();
42 return ("Unknown (" + Twine(type) + ")").str();
tools/lld/ELF/Target.h 203 ", " + Twine(max).str() + "]" + hint);
231 " is not aligned to " + Twine(n) + " bytes");
231 " is not aligned to " + Twine(n) + " bytes");
tools/lld/ELF/Writer.cpp 257 error(toString(s->file) + " cannot redefine linker defined symbol '" +
258 gotSymName + "'");
2102 error("section: " + sec->name + " is not contiguous with other relro" +
2102 error("section: " + sec->name + " is not contiguous with other relro" +
2375 error("unable to place section " + sec->name + " at file offset " +
2375 error("unable to place section " + sec->name + " at file offset " +
2376 rangeToString(sec->offset, sec->size) +
2446 errorOrWarn("section " + a.sec->name + " " + name +
2446 errorOrWarn("section " + a.sec->name + " " + name +
2446 errorOrWarn("section " + a.sec->name + " " + name +
2447 " range overlaps with " + b.sec->name + "\n>>> " + a.sec->name +
2447 " range overlaps with " + b.sec->name + "\n>>> " + a.sec->name +
2447 " range overlaps with " + b.sec->name + "\n>>> " + a.sec->name +
2447 " range overlaps with " + b.sec->name + "\n>>> " + a.sec->name +
2448 " range is " + rangeToString(a.offset, a.sec->size) + "\n>>> " +
2448 " range is " + rangeToString(a.offset, a.sec->size) + "\n>>> " +
2448 " range is " + rangeToString(a.offset, a.sec->size) + "\n>>> " +
2449 b.sec->name + " range is " +
2449 b.sec->name + " range is " +
2464 errorOrWarn("section " + os->name + " at 0x" + utohexstr(os->addr) +
2464 errorOrWarn("section " + os->name + " at 0x" + utohexstr(os->addr) +
2464 errorOrWarn("section " + os->name + " at 0x" + utohexstr(os->addr) +
2465 " of size 0x" + utohexstr(os->size) +
2465 " of size 0x" + utohexstr(os->size) +
2528 warn("cannot find entry symbol " + config->entry + "; defaulting to 0x" +
2528 warn("cannot find entry symbol " + config->entry + "; defaulting to 0x" +
2535 warn("cannot find entry symbol " + config->entry +
2589 error("output file too large: " + Twine(fileSize) + " bytes");
2589 error("output file too large: " + Twine(fileSize) + " bytes");
2601 error("failed to open " + config->outputFile + ": " +
2601 error("failed to open " + config->outputFile + ": " +
tools/lld/MinGW/Driver.cpp 134 if (Optional<std::string> s = findFile(dir, "lib" + name + ".dll.a"))
139 if (Optional<std::string> s = findFile(dir, "lib" + name + ".a"))
144 if (Optional<std::string> s = findFile(dir, "lib" + name + ".dll")) {
230 add("-subsystem:" + subSys + "," + major + sep + minor);
230 add("-subsystem:" + subSys + "," + major + sep + minor);
230 add("-subsystem:" + subSys + "," + major + sep + minor);
230 add("-subsystem:" + subSys + "," + major + sep + minor);
351 add(prefix + StringRef(a->getValue()));
354 add(prefix + searchLibrary(a->getValue(), searchPaths, isStatic));
tools/lld/include/lld/Core/File.h 74 _archiveMemberPath = (_archivePath + "(" + _path + ")").str();
74 _archiveMemberPath = (_archivePath + "(" + _path + ")").str();
tools/lld/lib/Driver/DarwinLdDriver.cpp 282 + path
283 + "'");
325 error("missing arg value for '" +
326 Twine(parsedArgs.getArgString(missingIndex)) + "' expected " +
326 Twine(parsedArgs.getArgString(missingIndex)) + "' expected " +
327 Twine(missingCount) + " argument(s).");
332 warn("ignoring unknown argument: " +
369 error("unknown arch named '" + Twine(archStr->getValue()) + "'");
369 error("unknown arch named '" + Twine(archStr->getValue()) + "'");
529 error("-sectalign alignment value '" + Twine(alignStr) +
529 error("-sectalign alignment value '" + Twine(alignStr) +
1074 error("Unable to find library for " + arg->getSpelling() +
1078 message(Twine("Found ") + (upward ? "upward " : " ") + "library " +
1078 message(Twine("Found ") + (upward ? "upward " : " ") + "library " +
1078 message(Twine("Found ") + (upward ? "upward " : " ") + "library " +
1088 error("Unable to find framework for " + arg->getSpelling() + " " +
1088 error("Unable to find framework for " + arg->getSpelling() + " " +
1092 message(Twine("Found ") + (upward ? "upward " : " ") + "framework " +
1092 message(Twine("Found ") + (upward ? "upward " : " ") + "framework " +
1092 message(Twine("Found ") + (upward ? "upward " : " ") + "framework " +
1114 error("can't open -sectcreate file " + Twine(fileName));
tools/lld/lib/ReaderWriter/FileArchive.cpp 145 + mb.getBufferIdentifier() + ")").str();
145 + mb.getBufferIdentifier() + ")").str();
tools/lld/lib/ReaderWriter/MachO/LayoutPass.cpp 35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")")
35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")")
35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")")
35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")")
35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")")
116 llvm_unreachable(((Twine("Atom <") + atomToDebugString(atom) +
116 llvm_unreachable(((Twine("Atom <") + atomToDebugString(atom) +
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 545 llvm::sys::path::append(fullPath, Twine("lib") + libName + ".dylib");
545 llvm::sys::path::append(fullPath, Twine("lib") + libName + ".dylib");
551 llvm::sys::path::append(fullPath, Twine("lib") + libName + ".a");
551 llvm::sys::path::append(fullPath, Twine("lib") + libName + ".a");
575 llvm::sys::path::append(fullPath, Twine(fwName) + ".framework", fwName);
1036 return llvm::make_error<GenericError>(file.path() +
1046 return llvm::make_error<GenericError>(file.path() +
1063 return llvm::make_error<GenericError>(file.path() +
1075 return llvm::make_error<GenericError>(file.path() +
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp 249 + ") found ("
250 + MachOLinkingContext::nameFromArch(f->arch)
251 + ")" ));
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 996 Twine("cannot export hidden symbol ") + atom->name());
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp 399 + section.segmentName
400 + "/" + section.sectionName
400 + "/" + section.sectionName
401 + " has size ("
402 + Twine(section.content.size())
403 + ") which is not a multiple of "
404 + Twine(sizeMultiple));
447 + section.segmentName
448 + "/" + section.sectionName
448 + "/" + section.sectionName
449 + " is malformed. Size of CFI "
451 + Twine(offset)
452 + ") is past end of section.");
468 + section.segmentName
469 + "/" + section.sectionName
469 + "/" + section.sectionName
470 + " is malformed. The last atom "
532 "index (") + Twine(sectIndex) + ")");
532 "index (") + Twine(sectIndex) + ")");
537 return llvm::make_error<GenericError>(Twine("address (" + Twine(addr)
538 + ") is not in any section"));
568 + Twine(symbolIndex) + ") out of range");
568 + Twine(symbolIndex) + ") out of range");
575 + Twine(sym->sect) + ") out of range ");
575 + Twine(sym->sect) + ") out of range ");
606 Twine("r_address (") + Twine(reloc.offset)
607 + ") is larger than section size ("
608 + Twine(section.content.size()) + ")");
608 + Twine(section.content.size()) + ")");
629 Twine("bad relocation (") + GE->getMessage()
630 + ") in section "
631 + section.segmentName + "/" + section.sectionName
631 + section.segmentName + "/" + section.sectionName
631 + section.segmentName + "/" + section.sectionName
632 + " (r1_address=" + Twine::utohexstr(reloc.offset)
632 + " (r1_address=" + Twine::utohexstr(reloc.offset)
633 + ", r1_type=" + Twine(reloc.type)
633 + ", r1_type=" + Twine(reloc.type)
634 + ", r1_extern=" + Twine(reloc.isExtern)
634 + ", r1_extern=" + Twine(reloc.isExtern)
635 + ", r1_length=" + Twine((int)reloc.length)
635 + ", r1_length=" + Twine((int)reloc.length)
636 + ", r1_pcrel=" + Twine(reloc.pcRel)
636 + ", r1_pcrel=" + Twine(reloc.pcRel)
637 + (!reloc.scattered ? (Twine(", r1_symbolnum=")
638 + Twine(reloc.symbol))
640 + Twine(reloc.value)))
641 + ")"
642 + ", (r2_address=" + Twine::utohexstr(reloc2.offset)
642 + ", (r2_address=" + Twine::utohexstr(reloc2.offset)
643 + ", r2_type=" + Twine(reloc2.type)
643 + ", r2_type=" + Twine(reloc2.type)
644 + ", r2_extern=" + Twine(reloc2.isExtern)
644 + ", r2_extern=" + Twine(reloc2.isExtern)
645 + ", r2_length=" + Twine((int)reloc2.length)
645 + ", r2_length=" + Twine((int)reloc2.length)
646 + ", r2_pcrel=" + Twine(reloc2.pcRel)
646 + ", r2_pcrel=" + Twine(reloc2.pcRel)
647 + (!reloc2.scattered ? (Twine(", r2_symbolnum=")
648 + Twine(reloc2.symbol))
650 + Twine(reloc2.value)))
651 + ")" );
665 Twine("bad relocation (") + GE->getMessage()
666 + ") in section "
667 + section.segmentName + "/" + section.sectionName
667 + section.segmentName + "/" + section.sectionName
667 + section.segmentName + "/" + section.sectionName
668 + " (r_address=" + Twine::utohexstr(reloc.offset)
668 + " (r_address=" + Twine::utohexstr(reloc.offset)
669 + ", r_type=" + Twine(reloc.type)
669 + ", r_type=" + Twine(reloc.type)
670 + ", r_extern=" + Twine(reloc.isExtern)
670 + ", r_extern=" + Twine(reloc.isExtern)
671 + ", r_length=" + Twine((int)reloc.length)
671 + ", r_length=" + Twine((int)reloc.length)
672 + ", r_pcrel=" + Twine(reloc.pcRel)
672 + ", r_pcrel=" + Twine(reloc.pcRel)
673 + (!reloc.scattered ? (Twine(", r_symbolnum=") + Twine(reloc.symbol))
673 + (!reloc.scattered ? (Twine(", r_symbolnum=") + Twine(reloc.symbol))
675 + Twine(reloc.value)))
676 + ")" );
741 "Non-zero addend for BNSYM '" + stabSym.name + "' in " +
741 "Non-zero addend for BNSYM '" + stabSym.name + "' in " +
748 "can't find atom for stabs BNSYM at " +
749 Twine::utohexstr(stabSym.value) + " in " + file.path());
749 Twine::utohexstr(stabSym.value) + " in " + file.path());
780 "can't find atom for N_GSYM stabs" + stabSym.name +
781 " in " + file.path());
786 "old-style N_FUN stab '" + stabSym.name + "' unsupported");
789 "unrecognized stab symbol '" + stabSym.name + "'");
808 "unrecognized stab symbol '" + stabSym.name + "'");
965 file.path() + ": too small");
1369 return llvm::make_error<GenericError>(sect.segmentName + "/" +
1370 sect.sectionName +
1371 " in file " + file.path() +
1371 " in file " + file.path() +
1377 return llvm::make_error<GenericError>(sect.segmentName + "/" +
1378 sect.sectionName +
1379 " in file " + file.path() +
1379 " in file " + file.path() +
1385 return llvm::make_error<GenericError>(sect.segmentName + "/" +
1386 sect.sectionName +
1387 " in file " + file.path() +
1387 " in file " + file.path() +
1504 + Twine(entry.offset)
1505 + ") is not in any section"));
1514 + Twine(entry.offset)
1515 + ", length="
1516 + Twine(entry.length)
1517 + ") crosses atom boundary."));
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp 786 + ") found ("
787 + MachOLinkingContext::nameFromArch(nf.arch)
788 + ")"));
817 + ec.message());
tools/lld/lib/ReaderWriter/MachO/SectCreateFile.h 30 _combinedName((segName + "/" + sectName).str()),
tools/lld/lib/ReaderWriter/MachO/TLVPass.cpp 85 "variables in " + atom->name() + " for architecture " +
85 "variables in " + atom->name() + " for architecture " +
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 189 _io.setError(Twine("no such atom name: ") + name);
198 _io.setError(Twine("duplicate atom name: ") + name);
tools/lld/wasm/Driver.cpp 209 ": Archive::children failed: " + toString(std::move(err)));
261 if (Optional<std::string> s = findFile(dir, "lib" + name + ".a")) {
395 error("invalid optimization level for LTO: " + Twine(config->ltoo));
766 error(Twine("symbol exported via --export not found: ") +
tools/lld/wasm/InputChunks.cpp 36 return (toString(c->file) + ":(" + c->getName() + ")").str();
36 return (toString(c->file) + ":(" + c->getName() + ")").str();
83 warn("unexpected existing value for " + relocTypeToString(rel.Type) +
84 ": existing=" + Twine(existingValue) +
84 ": existing=" + Twine(existingValue) +
85 " expected=" + Twine(expectedValue));
tools/lld/wasm/InputEvent.h 57 return (toString(e->file) + ":(" + e->getName() + ")").str();
57 return (toString(e->file) + ":(" + e->getName() + ")").str();
tools/lld/wasm/InputFiles.cpp 39 return (file->archiveName + "(" + file->getName() + ")").str();
39 return (file->archiveName + "(" + file->getName() + ")").str();
50 error("cannot open " + path + ": " + ec.message());
50 error("cannot open " + path + ": " + ec.message());
82 "\n Symbols : " + Twine(symbols.size()) +
82 "\n Symbols : " + Twine(symbols.size()) +
83 "\n Function Imports : " + Twine(wasmObj->getNumImportedFunctions()) +
83 "\n Function Imports : " + Twine(wasmObj->getNumImportedFunctions()) +
84 "\n Global Imports : " + Twine(wasmObj->getNumImportedGlobals()) +
84 "\n Global Imports : " + Twine(wasmObj->getNumImportedGlobals()) +
85 "\n Event Imports : " + Twine(wasmObj->getNumImportedEvents()));
542 mb.getBuffer(), saver.save(archiveName + mb.getBufferIdentifier()))));
tools/lld/wasm/InputGlobal.h 50 return (toString(g->file) + ":(" + g->getName() + ")").str();
50 return (toString(g->file) + ":(" + g->getName() + ")").str();
tools/lld/wasm/LTO.cpp 156 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.o");
156 saveBuffer(buf[i], config->outputFile + Twine(i) + ".lto.o");
tools/lld/wasm/OutputSections.cpp 29 return (sec.getSectionName() + "(" + sec.name + ")").str();
29 return (sec.getSectionName() + "(" + sec.name + ")").str();
75 debugWrite(os.tell(), "section type [" + getSectionName() + "]");
79 log("createHeader: " + toString(*this) + " body=" + Twine(bodySize) +
79 log("createHeader: " + toString(*this) + " body=" + Twine(bodySize) +
80 " total=" + Twine(getSize()));
100 log(" size=" + Twine(getSize()));
101 log(" headersize=" + Twine(header.size()));
102 log(" codeheadersize=" + Twine(codeSectionHeader.size()));
165 log("Data segment: size=" + Twine(segment->size) + ", startVA=" +
165 log("Data segment: size=" + Twine(segment->size) + ", startVA=" +
165 log("Data segment: size=" + Twine(segment->size) + ", startVA=" +
166 Twine::utohexstr(segment->startVA) + ", name=" + segment->name);
166 Twine::utohexstr(segment->startVA) + ", name=" + segment->name);
177 log("writing " + toString(*this) + " size=" + Twine(getSize()) +
177 log("writing " + toString(*this) + " size=" + Twine(getSize()) +
178 " body=" + Twine(bodySize));
238 log("writing " + toString(*this) + " size=" + Twine(getSize()) +
238 log("writing " + toString(*this) + " size=" + Twine(getSize()) +
239 " chunks=" + Twine(inputSections.size()));
tools/lld/wasm/OutputSections.h 37 log("setOffset: " + toString(*this) + ": " + Twine(newOffset));
tools/lld/wasm/Relocations.cpp 94 error(toString(file) + ": relocation " + relocTypeToString(reloc.Type) +
94 error(toString(file) + ": relocation " + relocTypeToString(reloc.Type) +
95 " cannot be used against symbol " + toString(*sym) +
95 " cannot be used against symbol " + toString(*sym) +
tools/lld/wasm/SymbolTable.cpp 162 error("Global type mismatch: " + existing->getName() + "\n>>> defined as " +
162 error("Global type mismatch: " + existing->getName() + "\n>>> defined as " +
163 toString(*oldType) + " in " + toString(existing->getFile()) +
163 toString(*oldType) + " in " + toString(existing->getFile()) +
163 toString(*oldType) + " in " + toString(existing->getFile()) +
164 "\n>>> defined as " + toString(*newType) + " in " + toString(file));
164 "\n>>> defined as " + toString(*newType) + " in " + toString(file));
164 "\n>>> defined as " + toString(*newType) + " in " + toString(file));
180 error("Event type mismatch: " + existing->getName() + "\n>>> defined as " +
180 error("Event type mismatch: " + existing->getName() + "\n>>> defined as " +
181 toString(*oldType) + " in " + toString(existing->getFile()) +
181 toString(*oldType) + " in " + toString(existing->getFile()) +
181 toString(*oldType) + " in " + toString(existing->getFile()) +
182 "\n>>> defined as " + toString(*newType) + " in " + toString(file));
182 "\n>>> defined as " + toString(*newType) + " in " + toString(file));
182 "\n>>> defined as " + toString(*newType) + " in " + toString(file));
184 warn("Event signature mismatch: " + existing->getName() +
185 "\n>>> defined as " + toString(*oldSig) + " in " +
185 "\n>>> defined as " + toString(*oldSig) + " in " +
185 "\n>>> defined as " + toString(*oldSig) + " in " +
186 toString(existing->getFile()) + "\n>>> defined as " +
186 toString(existing->getFile()) + "\n>>> defined as " +
187 toString(*newSig) + " in " + toString(file));
187 toString(*newSig) + " in " + toString(file));
410 "\n>>> defined as " + existing->importName + " in " +
410 "\n>>> defined as " + existing->importName + " in " +
410 "\n>>> defined as " + existing->importName + " in " +
411 toString(existing->getFile()) + "\n>>> defined as " + importName +
411 toString(existing->getFile()) + "\n>>> defined as " + importName +
411 toString(existing->getFile()) + "\n>>> defined as " + importName +
412 " in " + toString(file));
420 "\n>>> defined as " + existing->importModule + " in " +
420 "\n>>> defined as " + existing->importModule + " in " +
420 "\n>>> defined as " + existing->importModule + " in " +
421 toString(existing->getFile()) + "\n>>> defined as " + importModule +
421 toString(existing->getFile()) + "\n>>> defined as " + importModule +
421 toString(existing->getFile()) + "\n>>> defined as " + importModule +
422 " in " + toString(file));
669 std::string msg = ("function signature mismatch: " + symName +
670 "\n>>> defined as " + toString(*a->signature) + " in " +
670 "\n>>> defined as " + toString(*a->signature) + " in " +
670 "\n>>> defined as " + toString(*a->signature) + " in " +
671 toString(a->getFile()) + "\n>>> defined as " +
671 toString(a->getFile()) + "\n>>> defined as " +
672 toString(*b->signature) + " in " + toString(b->getFile()))
672 toString(*b->signature) + " in " + toString(b->getFile()))
tools/lld/wasm/Symbols.cpp 338 message(toString(file) + ": reference to " + name);
353 message(toString(sym->getFile()) + s + sym->getName());
tools/lld/wasm/Writer.cpp 211 error("stack size must be " + Twine(stackAlignment) + "-byte aligned");
211 error("stack size must be " + Twine(stackAlignment) + "-byte aligned");
212 log("mem: stack size = " + Twine(config->zStackSize));
213 log("mem: stack base = " + Twine(memoryPtr));
217 log("mem: stack top = " + Twine(memoryPtr));
224 log("mem: global base = " + Twine(config->globalBase));
269 log("mem: static data = " + Twine(memoryPtr - dataStart));
282 log("mem: heap base = " + Twine(memoryPtr));
288 error("initial memory must be " + Twine(WasmPageSize) + "-byte aligned");
288 error("initial memory must be " + Twine(WasmPageSize) + "-byte aligned");
290 error("initial memory too small, " + Twine(memoryPtr) + " bytes needed");
290 error("initial memory too small, " + Twine(memoryPtr) + " bytes needed");
297 log("mem: total pages = " + Twine(out.memorySec->numMemoryPages));
302 error("maximum memory must be " + Twine(WasmPageSize) + "-byte aligned");
302 error("maximum memory must be " + Twine(WasmPageSize) + "-byte aligned");
304 error("maximum memory too small, " + Twine(memoryPtr) + " bytes needed");
304 error("maximum memory too small, " + Twine(memoryPtr) + " bytes needed");
306 log("mem: max pages = " + Twine(out.memorySec->maxMemoryPages));
424 error(Twine("'atomics' feature is used by ") + used["atomics"] +
424 error(Twine("'atomics' feature is used by ") + used["atomics"] +
453 error(Twine("Target feature '") + feature + "' used by " +
453 error(Twine("Target feature '") + feature + "' used by " +
453 error(Twine("Target feature '") + feature + "' used by " +
454 used[feature] + " is not allowed.");
467 error(Twine("Target feature '") + feature.Name + "' used in " +
467 error(Twine("Target feature '") + feature.Name + "' used in " +
467 error(Twine("Target feature '") + feature.Name + "' used in " +
468 fileName + " is disallowed by " + disallowed[feature.Name] +
468 fileName + " is disallowed by " + disallowed[feature.Name] +
468 fileName + " is disallowed by " + disallowed[feature.Name] +
473 error(Twine("Missing target feature '") + feature + "' in " + fileName +
473 error(Twine("Missing target feature '") + feature + "' in " + fileName +
473 error(Twine("Missing target feature '") + feature + "' in " + fileName +
473 error(Twine("Missing target feature '") + feature + "' in " + fileName +
474 ", required by " + required[feature] +
474 ", required by " + required[feature] +
1044 log("Defined Functions: " + Twine(out.functionSec->inputFunctions.size()));
1045 log("Defined Globals : " + Twine(out.globalSec->numGlobals()));
1046 log("Defined Events : " + Twine(out.eventSec->inputEvents.size()));
1047 log("Function Imports : " +
1049 log("Global Imports : " + Twine(out.importSec->getNumImportedGlobals()));
1050 log("Event Imports : " + Twine(out.importSec->getNumImportedEvents()));
1084 error("failed to open " + config->outputFile + ": " +
1084 error("failed to open " + config->outputFile + ": " +
tools/lld/wasm/WriterUtils.cpp 71 debugWrite(os.tell(), msg + "[" + utohexstr(number) + "]");
71 debugWrite(os.tell(), msg + "[" + utohexstr(number) + "]");
71 debugWrite(os.tell(), msg + "[" + utohexstr(number) + "]");
76 debugWrite(os.tell(), msg + "[" + utohexstr(number) + "]");
76 debugWrite(os.tell(), msg + "[" + utohexstr(number) + "]");
76 debugWrite(os.tell(), msg + "[" + utohexstr(number) + "]");
82 debugWrite(os.tell(), msg + " [data[" + Twine(count) + "]]");
82 debugWrite(os.tell(), msg + " [data[" + Twine(count) + "]]");
82 debugWrite(os.tell(), msg + " [data[" + Twine(count) + "]]");
88 msg + " [str[" + Twine(string.size()) + "]: " + string + "]");
88 msg + " [str[" + Twine(string.size()) + "]: " + string + "]");
88 msg + " [str[" + Twine(string.size()) + "]: " + string + "]");
88 msg + " [str[" + Twine(string.size()) + "]: " + string + "]");
88 msg + " [str[" + Twine(string.size()) + "]: " + string + "]");
94 debugWrite(os.tell(), msg + " [0x" + utohexstr(byte) + "]");
94 debugWrite(os.tell(), msg + " [0x" + utohexstr(byte) + "]");
94 debugWrite(os.tell(), msg + " [0x" + utohexstr(byte) + "]");
99 debugWrite(os.tell(), msg + "[0x" + utohexstr(number) + "]");
99 debugWrite(os.tell(), msg + "[0x" + utohexstr(number) + "]");
99 debugWrite(os.tell(), msg + "[0x" + utohexstr(number) + "]");
105 msg + "[type: " + toString(type) + "]");
105 msg + "[type: " + toString(type) + "]");
105 msg + "[type: " + toString(type) + "]");
148 fatal("unknown opcode in init expr: " + Twine(initExpr.Opcode));
206 fatal("unsupported import type: " + Twine(import.Kind));
227 fatal("unsupported export type: " + Twine(export_.Kind));
tools/lldb/include/lldb/Utility/Environment.h 79 return (KeyValue.first() + "=" + KeyValue.second).str();
tools/lldb/source/Host/common/HostInfoBase.cpp 239 raw_path = (parent_path + dir).str();
tools/lldb/source/Host/linux/Host.cpp 169 (llvm::Twine("/proc/") + llvm::Twine(pid) + "/exe").toVector(ProcExe);
169 (llvm::Twine("/proc/") + llvm::Twine(pid) + "/exe").toVector(ProcExe);
tools/lldb/source/Host/linux/Support.cpp 17 ("/proc/" + llvm::Twine(pid) + "/task/" + llvm::Twine(tid) + "/" + file)
17 ("/proc/" + llvm::Twine(pid) + "/task/" + llvm::Twine(tid) + "/" + file)
17 ("/proc/" + llvm::Twine(pid) + "/task/" + llvm::Twine(tid) + "/" + file)
17 ("/proc/" + llvm::Twine(pid) + "/task/" + llvm::Twine(tid) + "/" + file)
17 ("/proc/" + llvm::Twine(pid) + "/task/" + llvm::Twine(tid) + "/" + file)
28 std::string File = ("/proc/" + llvm::Twine(pid) + "/" + file).str();
28 std::string File = ("/proc/" + llvm::Twine(pid) + "/" + file).str();
28 std::string File = ("/proc/" + llvm::Twine(pid) + "/" + file).str();
38 std::string File = ("/proc/" + file).str();
tools/lldb/source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp 441 return ("r" + llvm::Twine(m_index + 3)).str();
443 return ("f" + llvm::Twine(m_index + 1)).str();
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp 749 llvm::Triple triple(llvm::Twine("x86_64-apple-ios") + min_version_os_sdk +
749 llvm::Triple triple(llvm::Twine("x86_64-apple-ios") + min_version_os_sdk +
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp 2228 mangled.SetMangledName(ConstString((mangled_name + suffix).str()));
2234 mangled.SetDemangledName(ConstString((demangled_name + suffix).str()));
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp 2089 llvm::Triple triple(llvm::Twine("-") + vendor_name + "-" + os_name);
2089 llvm::Triple triple(llvm::Twine("-") + vendor_name + "-" + os_name);
2089 llvm::Triple triple(llvm::Twine("-") + vendor_name + "-" + os_name);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp 2823 std::string buffer_key = (xfer_object + xfer_action + xfer_annex).str();
2823 std::string buffer_key = (xfer_object + xfer_action + xfer_annex).str();
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp 859 return llvm::make_error<llvm::object::GenericBinaryError>("No " + section +
tools/lldb/source/Symbol/TypeSystem.cpp 240 llvm::toStringRef(Language::GetNameForLanguageType(language)) +
257 llvm::toStringRef(Language::GetNameForLanguageType(language)) +
280 llvm::toStringRef(Language::GetNameForLanguageType(language)) +
309 llvm::toStringRef(Language::GetNameForLanguageType(language)) +
326 llvm::toStringRef(Language::GetNameForLanguageType(language)) +
349 llvm::toStringRef(Language::GetNameForLanguageType(language)) +
tools/lldb/source/Symbol/Variable.cpp 546 prefix_path + member_name, // Anything that has been resolved
550 request.AddCompletion((prefix_path + member_name).str());
589 request.AddCompletion((prefix_path + ".").str());
599 request.AddCompletion((prefix_path + "->").str());
646 prefix_path + "->",
651 frame, std::string(), std::string(), prefix_path + "->",
670 prefix_path + ".", compiler_type, request);
675 prefix_path + ".", compiler_type,
729 prefix_path + token, // Anything that has been resolved
733 request.AddCompletion((prefix_path + variable_name).str());
736 request.AddCompletion((prefix_path + variable_name).str());
tools/lldb/source/Target/Target.cpp 2437 exe_module->GetFileSpec().GetFilename().GetStringRef() + "\"",
tools/lldb/source/Utility/Log.cpp 317 OS << llvm::formatv("{0,-60:60} ", (file + ":" + function).str());
tools/lldb/source/Utility/Reproducer.cpp 245 std::string filename = (llvm::Twine(Info::name) + llvm::Twine("-") +
245 std::string filename = (llvm::Twine(Info::name) + llvm::Twine("-") +
246 llvm::Twine(i) + llvm::Twine(".txt"))
tools/lldb/source/Utility/ReproducerInstrumentation.cpp 92 return (result + (result.empty() ? "" : " ") + scope + "::" + name + args)
92 return (result + (result.empty() ? "" : " ") + scope + "::" + name + args)
92 return (result + (result.empty() ? "" : " ") + scope + "::" + name + args)
92 return (result + (result.empty() ? "" : " ") + scope + "::" + name + args)
tools/lldb/unittests/Host/FileTest.cpp 25 llvm::sys::fs::createTemporaryFile(llvm::Twine(Info->test_case_name()) + "-" +
25 llvm::sys::fs::createTemporaryFile(llvm::Twine(Info->test_case_name()) + "-" +
42 llvm::sys::fs::createTemporaryFile(llvm::Twine(Info->test_case_name()) + "-" +
42 llvm::sys::fs::createTemporaryFile(llvm::Twine(Info->test_case_name()) + "-" +
tools/lldb/unittests/Interpreter/TestCompletion.cpp 119 CommandCompletions::DiskDirectories(Prefix + "foo", Results, Resolver);
127 CommandCompletions::DiskDirectories(Twine(Prefix) + "b", Results, Resolver);
151 std::string Prefixes[] = {(Twine(BaseDir) + "/").str(), ""};
159 CommandCompletions::DiskDirectories(Twine(BaseDir) + "/fooa", Results,
164 CommandCompletions::DiskDirectories(Twine(BaseDir) + "/.", Results, Resolver);
178 DoDirCompletions(Twine(BaseDir) + "/", Resolver, Results);
192 CommandCompletions::DiskFiles(Twine(BaseDir) + "/fooa", Results, Resolver);
198 CommandCompletions::DiskFiles(Twine(BaseDir) + "/aa", Results, Resolver);
203 CommandCompletions::DiskFiles(Twine(BaseDir) + "/", Results, Resolver);
221 CommandCompletions::DiskFiles(Twine(BaseDir) + "/foo", Results, Resolver);
tools/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationTest.cpp 60 SCOPED_TRACE(Test.Packet + " -> " + Test.Payload);
tools/lldb/unittests/TestingSupport/TestUtilities.cpp 35 llvm::Twine(Info->test_case_name()) + "-" + Info->name(), "test", FD,
35 llvm::Twine(Info->test_case_name()) + "-" + Info->name(), "test", FD,
tools/lldb/unittests/Utility/FileSpecTest.cpp 232 SCOPED_TRACE(llvm::Twine("test.first = ") + test.first);
tools/lldb/unittests/Utility/ProcessInstanceInfoTest.cpp 21 return ("user" + llvm::Twine(uid)).str();
27 return ("group" + llvm::Twine(gid)).str();
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp 87 ("127.0.0.1:" + Twine(listen_socket.GetLocalPortNumber())).str());
tools/llvm-ar/llvm-ar.cpp 150 fail(Context + ": " + EC.message());
150 fail(Context + ": " + EC.message());
161 fail(Context + ": " + EIB.message());
161 fail(Context + ": " + EIB.message());
261 failIfError(BufOrErr.getError(), "could not open library " + Library);
982 failIfError(EC, Twine("error loading '") + ArchiveName + "'");
982 failIfError(EC, Twine("error loading '") + ArchiveName + "'");
tools/llvm-cfi-verify/lib/FileAnalysis.cpp 382 (Twine("Couldn't find target \"") + ObjectTriple.getTriple() +
382 (Twine("Couldn't find target \"") + ObjectTriple.getTriple() +
383 "\", failed with error: " + ErrorString)
tools/llvm-config/llvm-config.cpp 398 (SharedPrefix + "LLVM-" + SharedVersionedExt).str();
406 std::string path((SharedDir + DirSep + DyLibName).str());
406 std::string path((SharedDir + DirSep + DyLibName).str());
454 LibFileName = (SharedPrefix + Lib + "." + SharedExt).str();
454 LibFileName = (SharedPrefix + Lib + "." + SharedExt).str();
454 LibFileName = (SharedPrefix + Lib + "." + SharedExt).str();
458 LibFileName = (StaticPrefix + Lib + "." + StaticExt).str();
458 LibFileName = (StaticPrefix + Lib + "." + StaticExt).str();
458 LibFileName = (StaticPrefix + Lib + "." + StaticExt).str();
467 return (SharedDir + DirSep + LibFileName).str();
467 return (SharedDir + DirSep + LibFileName).str();
469 return (StaticDir + DirSep + LibFileName).str();
469 return (StaticDir + DirSep + LibFileName).str();
tools/llvm-cov/CodeCoverage.cpp 364 warning(Twine(Mismatched) + " functions have mismatched data");
521 warning("The file '" + SourceFile + "' isn't covered.");
tools/llvm-cov/SourceCoverageView.cpp 47 auto PathFilename = (sys::path::filename(Path) + "." + Extension).str();
tools/llvm-cvtres/llvm-cvtres.cpp 76 reportError(Twine(Input) + ": " + EC.message() + ".\n");
76 reportError(Twine(Input) + ": " + EC.message() + ".\n");
76 reportError(Twine(Input) + ": " + EC.message() + ".\n");
125 reportError(Twine("Unsupported machine architecture ") + Arg->getValue() +
125 reportError(Twine("Unsupported machine architecture ") + Arg->getValue() +
153 reportError(Twine("invalid timestamp: ") + Value +
153 reportError(Twine("invalid timestamp: ") + Value +
tools/llvm-cxxmap/llvm-cxxmap.cpp 101 warn("symbol " + Symbol + " is equivalent to earlier symbol " +
101 warn("symbol " + Symbol + " is equivalent to earlier symbol " +
103 NewSymbolFile.getBufferIdentifier() + ":" +
120 OldSymbolFile.getBufferIdentifier() + ":" +
tools/llvm-diff/DifferenceEngine.cpp 722 logf(("not comparing " + Twine(LeftAnonCount) +
722 logf(("not comparing " + Twine(LeftAnonCount) +
723 " anonymous functions in the left module and " +
724 Twine(RightAnonCount) + " in the right module")
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 60 return O.error("'" + Arg + "' value invalid for integer argument!");
477 std::string Name = (Filename + "(" + NameOrErr.get() + ")").str();
477 std::string Name = (Filename + "(" + NameOrErr.get() + ")").str();
500 (Filename + "(" + ObjForArch.getArchFlagName() + ")").str();
500 (Filename + "(" + ObjForArch.getArchFlagName() + ")").str();
tools/llvm-dwp/llvm-dwp.cpp 367 ("failure while decompressing compressed section: '" + Name + "', " +
367 ("failure while decompressing compressed section: '" + Name + "', " +
647 errs() << Twine("while processing ") + Context + ":\n";
647 errs() << Twine("while processing ") + Context + ":\n";
648 errs() << Twine("error: ") + Error + "\n";
648 errs() << Twine("error: ") + Error + "\n";
677 return error(Twine("no register info for target ") + TripleName, Context);
713 return error(Twine(OutputFilename) + ": " + EC.message(), Context);
713 return error(Twine(OutputFilename) + ": " + EC.message(), Context);
tools/llvm-exegesis/lib/SnippetFile.cpp 124 return make_error<Failure>("cannot read snippet: " + Filename + ": " +
124 return make_error<Failure>("cannot read snippet: " + Filename + ": " +
tools/llvm-jitlink/llvm-jitlink-macho.cpp 33 return make_error<StringError>("GOT entry in " + G.getName() + ", \"" +
34 B.getSection().getName() +
47 "GOT entry in " + G.getName() + ", \"" +
48 TargetSym.getBlock().getSection().getName() +
54 "GOT entry \"" + TargetSym.getName() + "\" in " + G.getName() + ", \"" +
54 "GOT entry \"" + TargetSym.getName() + "\" in " + G.getName() + ", \"" +
54 "GOT entry \"" + TargetSym.getName() + "\" in " + G.getName() + ", \"" +
54 "GOT entry \"" + TargetSym.getName() + "\" in " + G.getName() + ", \"" +
55 TargetSym.getBlock().getSection().getName() +
68 "Stubs entry in " + G.getName() + ", \"" +
69 GOTSym.getBlock().getSection().getName() +
82 FileName + "\")",
103 Sec.getName() + "\" in \"" + FileName +
103 Sec.getName() + "\" in \"" + FileName +
103 Sec.getName() + "\" in \"" + FileName +
tools/llvm-jitlink/llvm-jitlink.cpp 463 return make_error<StringError>("file \"" + FileName + "\" not recognized",
475 return make_error<StringError>("no section \"" + SectionName +
476 "\" registered for file \"" + FileName +
476 "\" registered for file \"" + FileName +
489 return make_error<StringError>("no stub for \"" + TargetName +
490 "\" registered for file \"" + FileName +
490 "\" registered for file \"" + FileName +
503 return make_error<StringError>("no GOT entry for \"" + TargetName +
504 "\" registered for file \"" + FileName +
504 "\" registered for file \"" + FileName +
518 return make_error<StringError>(ErrorMsgStem + ": symbol " + SymbolName +
518 return make_error<StringError>(ErrorMsgStem + ": symbol " + SymbolName +
518 return make_error<StringError>(ErrorMsgStem + ": symbol " + SymbolName +
643 return make_error<StringError>("Invalid absolute define \"" + AbsDefStmt +
651 return make_error<StringError>("Invalid address expression \"" + AddrStr +
652 "\" in absolute define \"" + AbsDefStmt +
652 "\" in absolute define \"" + AbsDefStmt +
tools/llvm-lipo/llvm-lipo.cpp 184 reportError(("archive member " + Bin->getFileName() +
188 reportError(("archive member " + Bin->getFileName() +
194 reportError(("archive member " + O->getFileName() + " cputype (" +
194 reportError(("archive member " + O->getFileName() + " cputype (" +
195 Twine(O->getHeader().cputype) + ") and cpusubtype(" +
195 Twine(O->getHeader().cputype) + ") and cpusubtype(" +
196 Twine(O->getHeader().cpusubtype) +
197 ") does not match previous archive members cputype (" +
198 Twine(FO->getHeader().cputype) + ") and cpusubtype(" +
198 Twine(FO->getHeader().cputype) + ") and cpusubtype(" +
199 Twine(FO->getHeader().cpusubtype) +
200 ") (all members must match) " + FO->getFileName())
212 A->getFileName() + " (can't determine architecture for it)")
238 return ("unknown(" + Twine(CPUType) + "," +
238 return ("unknown(" + Twine(CPUType) + "," +
238 return ("unknown(" + Twine(CPUType) + "," +
239 Twine(CPUSubType & ~MachO::CPU_SUBTYPE_MASK) + ")")
280 StringRef(InputArgs.getArgString(MissingArgumentIndex)) +
329 reportError("argument to -segalign <arch_type> " +
330 Twine(Segalign->getValue(1)) +
333 reportError("argument to -segalign <arch_type> " +
334 Twine(Segalign->getValue(1)) +
338 "argument to -segalign <arch_type> " + Twine(Segalign->getValue(1)) +
338 "argument to -segalign <arch_type> " + Twine(Segalign->getValue(1)) +
339 " (hex) must be less than or equal to the maximum section align 2^" +
344 reportError("-segalign " + Twine(Segalign->getValue(0)) +
344 reportError("-segalign " + Twine(Segalign->getValue(0)) +
345 " <alignment_value> specified multiple times: " +
346 Twine(1 << Entry.first->second) + ", " +
346 Twine(1 << Entry.first->second) + ", " +
440 reportError("File " + IF.FileName + " has unsupported binary format");
451 reportError("specified architecture: " + *IF.ArchType +
452 " for file: " + B->getFileName() +
452 " for file: " + B->getFileName() +
453 " does not match the file's architecture (" +
454 S.getArchString() + ")");
555 InputBinaries.front().getBinary()->getFileName() +
565 reportError("fat input file " + UO->getFileName() +
566 " does not contain the specified architecture " + ThinArchType +
566 " does not contain the specified architecture " + ThinArchType +
591 reportError(Entry.first->second->getFileName() + " and " +
592 S.getBinary()->getFileName() +
593 " have the same architecture " + S.getArchString() +
593 " have the same architecture " + S.getArchString() +
617 reportError("-segalign " + Arch +
662 "field in struct fat_arch is only 32-bits and the offset " +
663 Twine(Offset) + " for " + S.getBinary()->getFileName() +
663 Twine(Offset) + " for " + S.getBinary()->getFileName() +
663 Twine(Offset) + " for " + S.getBinary()->getFileName() +
664 " for architecture " + S.getArchString() + "exceeds that.");
664 " for architecture " + S.getArchString() + "exceeds that.");
752 reportError("replacement file: " + ReplacementBinary->getFileName() +
758 " <file_name> specified multiple times: " +
759 Entry.first->second.getBinary()->getFileName() + ", " +
759 Entry.first->second.getBinary()->getFileName() + ", " +
778 InputBinaries.front().getBinary()->getFileName() +
799 reportError("-replace " + ReplacementSlices.begin()->first() +
800 " <file_name> specified but fat file: " +
801 InputBinaries.front().getBinary()->getFileName() +
tools/llvm-lto/llvm-lto.cpp 297 error(Prefix + ": " + EC.message());
297 error(Prefix + ": " + EC.message());
315 error(BufferOrErr, "error loading file '" + Path + "'");
317 CurrentActivity = ("loading file '" + Path + "'").str();
455 error(EC, "error creating the directory '" + ParentPath + "'");
468 std::string CurrentActivity = ("loading file '" + Filename + "'").str();
514 error(EC, "error opening the file '" + Filename + "'");
tools/llvm-mca/CodeRegion.cpp 58 "region " + Description + " was previously defined here");
tools/llvm-mt/llvm-mt.cpp 73 reportError(Twine(Input) + ": " + EC.message());
73 reportError(Twine(Input) + ": " + EC.message());
tools/llvm-nm/llvm-nm.cpp 1923 error(Filename + " for architecture " +
1924 StringRef(I->getArchFlagName()) +
1984 error(Filename + " for architecture " +
1985 StringRef(I->getArchFlagName()) +
2058 error(Filename + " for architecture " +
2059 StringRef(O.getArchFlagName()) +
tools/llvm-objcopy/COFF/COFFObjcopy.cpp 47 error("'" + File + "': " + LinkTargetOrErr.getError().message());
47 error("'" + File + "': " + LinkTargetOrErr.getError().message());
tools/llvm-objcopy/CopyConfig.cpp 316 ("^" + Pattern.ltrim('^').rtrim('$') + "$").toStringRef(Data)));
tools/llvm-objcopy/ELF/ELFObjcopy.cpp 207 std::string FullMsg = (EC.message() + ": " + Msg).str();
238 sys::fs::createUniquePath(Twine(Path) + "-" + MODEL_32 + ".tmp", TmpPath,
238 sys::fs::createUniquePath(Twine(Path) + "-" + MODEL_32 + ".tmp", TmpPath,
238 sys::fs::createUniquePath(Twine(Path) + "-" + MODEL_32 + ".tmp", TmpPath,
393 Sym.Name = (Config.SymbolsPrefix + Sym.Name).str();
635 Sec.Name = (Config.AllocSectionsPrefix + Sec.Name).str();
664 Sec.Name = (prefix + TargetSec->Name).str();
667 (prefix + Config.AllocSectionsPrefix + TargetSec->Name).str();
667 (prefix + Config.AllocSectionsPrefix + TargetSec->Name).str();
tools/llvm-objcopy/ELF/Object.cpp 578 "Link field value " + Twine(Link) + " in section " + Name + " is invalid",
578 "Link field value " + Twine(Link) + " in section " + Name + " is invalid",
578 "Link field value " + Twine(Link) + " in section " + Name + " is invalid",
578 "Link field value " + Twine(Link) + " in section " + Name + " is invalid",
579 "Link field value " + Twine(Link) + " in section " + Name +
579 "Link field value " + Twine(Link) + " in section " + Name +
579 "Link field value " + Twine(Link) + " in section " + Name +
579 "Link field value " + Twine(Link) + " in section " + Name +
721 "Symbol table has link index of " + Twine(Link) +
721 "Symbol table has link index of " + Twine(Link) +
723 "Symbol table has link index of " + Twine(Link) +
723 "Symbol table has link index of " + Twine(Link) +
771 error("invalid symbol index: " + Twine(Index));
837 "Link field value " + Twine(Link) + " in section " + Name +
837 "Link field value " + Twine(Link) + " in section " + Name +
837 "Link field value " + Twine(Link) + " in section " + Name +
837 "Link field value " + Twine(Link) + " in section " + Name +
839 "Link field value " + Twine(Link) + " in section " + Name +
839 "Link field value " + Twine(Link) + " in section " + Name +
839 "Link field value " + Twine(Link) + " in section " + Name +
839 "Link field value " + Twine(Link) + " in section " + Name +
843 setSection(SecTable.getSection(Info, "Info field value " + Twine(Info) +
843 setSection(SecTable.getSection(Info, "Info field value " + Twine(Info) +
844 " in section " + Name +
844 " in section " + Name +
992 SecTable.getSection(Link, "Link field value " + Twine(Link) +
992 SecTable.getSection(Link, "Link field value " + Twine(Link) +
993 " in section " + Name + " is invalid");
993 " in section " + Name + " is invalid");
1160 Twine Prefix = Twine("_binary_") + SanitizedFilename;
1162 SymTab->addSymbol(Prefix + "_start", STB_GLOBAL, STT_NOTYPE, &DataSection,
1164 SymTab->addSymbol(Prefix + "_end", STB_GLOBAL, STT_NOTYPE, &DataSection,
1166 SymTab->addSymbol(Prefix + "_size", STB_GLOBAL, STT_NOTYPE, nullptr,
1264 error("could not find partition named '" + *ExtractPartition + "'");
1272 error("program header with offset 0x" + Twine::utohexstr(Phdr.p_offset) +
1272 error("program header with offset 0x" + Twine::utohexstr(Phdr.p_offset) +
1273 " and file size 0x" + Twine::utohexstr(Phdr.p_filesz) +
1273 " and file size 0x" + Twine::utohexstr(Phdr.p_filesz) +
1327 error("invalid alignment " + Twine(GroupSec->Align) + " of group section '" +
1327 error("invalid alignment " + Twine(GroupSec->Align) + " of group section '" +
1327 error("invalid alignment " + Twine(GroupSec->Align) + " of group section '" +
1328 GroupSec->Name + "'");
1332 "link field value '" + Twine(GroupSec->Link) + "' in section '" +
1332 "link field value '" + Twine(GroupSec->Link) + "' in section '" +
1332 "link field value '" + Twine(GroupSec->Link) + "' in section '" +
1333 GroupSec->Name + "' is invalid",
1334 "link field value '" + Twine(GroupSec->Link) + "' in section '" +
1334 "link field value '" + Twine(GroupSec->Link) + "' in section '" +
1334 "link field value '" + Twine(GroupSec->Link) + "' in section '" +
1335 GroupSec->Name + "' is not a symbol table");
1338 error("info field value '" + Twine(GroupSec->Info) + "' in section '" +
1338 error("info field value '" + Twine(GroupSec->Info) + "' in section '" +
1338 error("info field value '" + Twine(GroupSec->Info) + "' in section '" +
1339 GroupSec->Name + "' is not a valid symbol index");
1353 Index, "group member index " + Twine(Index) + " in section '" +
1353 Index, "group member index " + Twine(Index) + " in section '" +
1353 Index, "group member index " + Twine(Index) + " in section '" +
1354 GroupSec->Name + "' is invalid"));
1371 error("symbol '" + Name +
1385 "symbol '" + Name + "' has invalid section index " + Twine(Index));
1385 "symbol '" + Name + "' has invalid section index " + Twine(Index));
1389 "symbol '" + Name +
1390 "' has unsupported value greater than or equal to SHN_LORESERVE: " +
1395 Sym.st_shndx, "symbol '" + Name +
1396 "' is defined has invalid section index " +
1596 "e_shstrndx field value " + Twine(ShstrIndex) + " in elf header " +
1596 "e_shstrndx field value " + Twine(ShstrIndex) + " in elf header " +
1596 "e_shstrndx field value " + Twine(ShstrIndex) + " in elf header " +
1598 "e_shstrndx field value " + Twine(ShstrIndex) + " in elf header " +
1598 "e_shstrndx field value " + Twine(ShstrIndex) + " in elf header " +
1598 "e_shstrndx field value " + Twine(ShstrIndex) + " in elf header " +
tools/llvm-objcopy/MachO/MachOReader.cpp 38 S.CanonicalName = (Twine(S.Segname) + "," + S.Sectname).str();
38 S.CanonicalName = (Twine(S.Segname) + "," + S.Sectname).str();
tools/llvm-objcopy/llvm-objcopy.cpp 190 return createFileError(Ar.getFileName() + "(" + *ChildNameOrErr + ")",
190 return createFileError(Ar.getFileName() + "(" + *ChildNameOrErr + ")",
tools/llvm-objdump/MachODump.cpp 212 std::string ThumbName = (Twine("thumb") + TT.getArchName().substr(3)).str();
2444 StringRef(I->getArchFlagName()) +
2451 << "file: " + Filename + " does not contain "
2503 StringRef(I->getArchFlagName()) +
2559 StringRef(I->getArchFlagName()) +
tools/llvm-objdump/llvm-objdump.cpp 461 reportCmdLineWarning("section '" + S +
1003 "section (" + Twine(I) +
1003 "section (" + Twine(I) +
1004 "): failed to get a relocated section: " +
1627 "section (" + Twine(Ndx) +
1627 "section (" + Twine(Ndx) +
1628 "): unable to get a relocation target: " +
2114 reportWarning("no section has address less than 0x" +
2115 Twine::utohexstr(Stop) + " specified by --stop-address",
2118 reportWarning("no section has address greater than or equal to 0x" +
2119 Twine::utohexstr(Start) + " specified by --start-address",
2122 reportWarning("no section overlaps the range [0x" +
2123 Twine::utohexstr(Start) + ",0x" + Twine::utohexstr(Stop) +
2123 Twine::utohexstr(Start) + ",0x" + Twine::utohexstr(Stop) +
2123 Twine::utohexstr(Start) + ",0x" + Twine::utohexstr(Stop) +
tools/llvm-profdata/llvm-profdata.cpp 159 (InputFile + ":" + Twine(LineIt.line_number())).str(),
672 sys::path::filename(argv[0]) + " -help");
tools/llvm-rc/ResourceFileWriter.cpp 56 return createError(FieldName + " (" + Twine(Number) + ") does not fit in " +
56 return createError(FieldName + " (" + Twine(Number) + ") does not fit in " +
56 return createError(FieldName + " (" + Twine(Number) + ") does not fit in " +
56 return createError(FieldName + " (" + Twine(Number) + ") does not fit in " +
57 Twine(MaxBits) + " bits.",
73 return createError(FieldName + " (" + Twine(SignedNum) +
73 return createError(FieldName + " (" + Twine(SignedNum) +
73 return createError(FieldName + " (" + Twine(SignedNum) +
74 ") does not fit in " + Twine(sizeof(FitType) * 8) +
74 ") does not fit in " + Twine(sizeof(FitType) * 8) +
79 return createError(FieldName + " (" + Twine(SignedNum) +
79 return createError(FieldName + " (" + Twine(SignedNum) +
79 return createError(FieldName + " (" + Twine(SignedNum) +
161 return createError("Non-ASCII 8-bit codepoint (" + Twine(C) +
161 return createError("Non-ASCII 8-bit codepoint (" + Twine(C) +
185 return createError("Non-8-bit codepoint (" + Twine(Char) +
185 return createError("Non-8-bit codepoint (" + Twine(Char) +
198 return createError("Non-8-bit escaped char (" + Twine(Char) +
198 return createError("Non-8-bit escaped char (" + Twine(Char) +
202 return createError("Unable to interpret single byte (" + Twine(Char) +
202 return createError("Unable to interpret single byte (" + Twine(Char) +
209 return createError("Non-ASCII 8-bit codepoint (" + Twine(Char) +
209 return createError("Non-ASCII 8-bit codepoint (" + Twine(Char) +
424 return joinErrors(createError("Error in " + Res->getResourceTypeName() +
424 return joinErrors(createError("Error in " + Res->getResourceTypeName() +
425 " statement (ID " + Twine(Res->ResName) +
425 " statement (ID " + Twine(Res->ResName) +
618 return createError("Accelerator ID " + Twine(Obj.Id) + ": " + Msg);
618 return createError("Accelerator ID " + Twine(Obj.Id) + ": " + Msg);
618 return createError("Accelerator ID " + Twine(Obj.Id) + ": " + Msg);
902 return createError("Incorrect icon/cursor ResType field; should be " +
903 Twine(NeededType) + ".");
1156 return joinErrors(createError("Error in " + Twine(Ctl.Type) +
1156 return joinErrors(createError("Error in " + Twine(Ctl.Type) +
1157 " control (ID " + Twine(Ctl.ID) + "):"),
1157 " control (ID " + Twine(Ctl.ID) + "):"),
1250 return createError("Multiple STRINGTABLE strings located under ID " +
1391 return createError(Twine("VALUE ") + Val.Key +
1391 return createError(Twine("VALUE ") + Val.Key +
1542 return make_error<StringError>("error : file not found : " + Twine(File),
tools/llvm-rc/ResourceScriptStmt.h 672 return "DIALOG" + Twine(IsExtended ? "EX" : "");
tools/llvm-rc/ResourceScriptToken.cpp 79 return make_error<StringError>("Error parsing file: " + message,
169 return getStringError("Invalid token found at position " + Twine(Pos));
228 "Unclosed multi-line comment beginning at position " + Twine(Pos));
tools/llvm-rc/llvm-rc.cpp 113 fatalError("Error opening file '" + Twine(InArgsInfo[0]) +
113 fatalError("Error opening file '" + Twine(InArgsInfo[0]) +
114 "': " + File.getError().message());
tools/llvm-readobj/ELFDumper.cpp 145 reportWarning(createError("invalid section size (" + Twine(Size) +
145 reportWarning(createError("invalid section size (" + Twine(Size) +
146 ") or entity size (" + Twine(EntSize) + ")"),
146 ") or entity size (" + Twine(EntSize) + ")"),
1468 reportWarning(createError("The SHT_DYNAMIC section '" + Name +
1474 reportWarning(createError("The SHT_DYNAMIC section '" + Name +
1696 createError("Unable to parse DT_" +
1698 ObjF->getELFFile()->getHeader()->e_machine, Tag)) +
1699 ": " + llvm::toString(MappedAddrOrError.takeError()));
1789 reportError(createError(Twine("unknown DT_PLTREL value of ") +
2403 reportError(createError("There is no not empty GOT section at 0x" +
2426 report_fatal_error("There is no not empty PLTGOT section at 0x " +
2431 report_fatal_error("There is no not empty RELPLT section at 0x" +
3428 createError(".hash section is invalid: bucket " + Twine(Ch) +
3428 createError(".hash section is invalid: bucket " + Twine(Ch) +
3648 createError("unable to get name of the dynamic symbol with index " +
3649 Twine(SymIndex) + ": " + toString(ErrOrName.takeError())),
3649 Twine(SymIndex) + ": " + toString(ErrOrName.takeError())),
3977 createError(".hash section is invalid: bucket " + Twine(C) +
3977 createError(".hash section is invalid: bucket " + Twine(C) +
4927 reportWarning(createError("section " + StackSizeSectionName +
5225 << ") in a group " + G.Name + " (" << G.Index
5226 << ") is already in a group " + MainGroup->Name + " ("
tools/llvm-readobj/llvm-readobj.cpp 441 A ? Twine(A->getFileName() + "(" + Obj->getFileName() + ")").str()
441 A ? Twine(A->getFileName() + "(" + Obj->getFileName() + ")").str()
tools/llvm-rtdyld/llvm-rtdyld.cpp 180 return make_error<StringError>("No section named \"" + SectionName +
181 "\" in file " + FileName,
606 report_fatal_error("Invalid section specification '" + Mapping +
619 report_fatal_error("Invalid section address in mapping '" + Mapping +
794 (sys::path::filename(FilePath) + "/" + SectionName).str();
880 return make_error<StringError>("Symbol name " + SymbolName +
881 " in stub container " + StubContainer,
tools/llvm-size/llvm-size.cpp 661 StringRef(I->getArchFlagName()) +
743 StringRef(I->getArchFlagName()) +
820 StringRef(I->getArchFlagName()) +
tools/llvm-stress/llvm-stress.cpp 90 return O.error("Invalid IR scalar type: '" + Arg + "'!");
168 Twine Name = "autogen_SD" + Twine{SeedCL};
tools/llvm-xray/xray-account.cpp 416 Twine("Cannot open instrumentation map '") +
417 AccountInstrMap + "'",
427 Twine("Cannot open file '") + AccountOutput + "' for writing.", EC);
427 Twine("Cannot open file '") + AccountOutput + "' for writing.", EC);
438 Twine("Failed loading input file '") + AccountInput + "'",
438 Twine("Failed loading input file '") + AccountInput + "'",
466 Twine("Failed accounting function calls in file '") + AccountInput +
466 Twine("Failed accounting function calls in file '") + AccountInput +
tools/llvm-xray/xray-converter.cpp 375 Twine("Cannot open instrumentation map '") +
376 ConvertInstrMap + "'",
394 Twine("Cannot open file '") + ConvertOutput + "' for writing.", EC);
394 Twine("Cannot open file '") + ConvertOutput + "' for writing.", EC);
400 Twine("Failed loading input file '") + ConvertInput + "'.",
400 Twine("Failed loading input file '") + ConvertInput + "'.",
tools/llvm-xray/xray-extract.cpp 77 Twine("Cannot extract instrumentation map from '") +
78 ExtractInput + "'.",
86 Twine("Cannot open file '") + ExtractOutput + "' for writing.", EC);
86 Twine("Cannot open file '") + ExtractOutput + "' for writing.", EC);
tools/llvm-xray/xray-graph-diff.cpp 306 return (S.size() > n) ? Twine(S.substr(0, n)) + "..." : Twine(S);
450 Twine("Failed Loading Input File '") + Inputs[i] + "'",
450 Twine("Failed Loading Input File '") + Inputs[i] + "'",
476 Twine("Cannot open file '") + GraphDiffOutput + "' for writing.", EC);
476 Twine("Cannot open file '") + GraphDiffOutput + "' for writing.", EC);
tools/llvm-xray/xray-graph.cpp 431 Twine("Cannot open instrumentation map '") + GraphInstrMap + "'",
431 Twine("Cannot open instrumentation map '") + GraphInstrMap + "'",
499 Twine("Failed loading input file '") + GraphInput + "'",
499 Twine("Failed loading input file '") + GraphInput + "'",
512 Twine("Cannot open file '") + GraphOutput + "' for writing.", EC);
512 Twine("Cannot open file '") + GraphOutput + "' for writing.", EC);
tools/llvm-xray/xray-stacks.cpp 698 Twine("Cannot open instrumentation map: ") + StacksInstrMap,
732 Twine("Failed loading input file '") + Filename + "'",
732 Twine("Failed loading input file '") + Filename + "'",
tools/obj2yaml/elf2yaml.cpp 109 Ret = (Name + " [" + Twine(++It.first->second) + "]").str();
109 Ret = (Name + " [" + Twine(++It.first->second) + "]").str();
141 (Name + " [" + Twine(++It.first->second) + "]").str();
141 (Name + " [" + Twine(++It.first->second) + "]").str();
467 "unable to resolve sh_link reference in section '" + S.Name +
468 "': " + toString(LinkSection.takeError()),
tools/polly/lib/CodeGen/BlockGenerators.cpp 515 ScalarBase->getName() + NameExt);
642 CondInst->setName("polly." + Subject + ".cond");
643 ThenBlock->setName(BlockName + "." + Subject + ".partial");
643 ThenBlock->setName(BlockName + "." + Subject + ".partial");
1478 EntryBBCopy->setName("polly.stmt." + EntryBB->getName() + ".entry");
1544 ExitBBCopy->setName("polly.stmt." + R->getExit()->getName() + ".exit");
tools/polly/lib/CodeGen/IslExprBuilder.cpp 138 Builder.CreateExtractValue(ResultStruct, 1, Name + ".obit");
149 return Builder.CreateExtractValue(ResultStruct, 0, Name + ".res");
tools/polly/lib/CodeGen/IslNodeBuilder.cpp 1302 AccInstTy, 2, "polly.preload." + AccInst->getName() + ".merge");
tools/polly/lib/Support/DumpModulePass.cpp 58 Dumpfile = (Twine(Stem) + Filename + ".ll").str();
58 Dumpfile = (Twine(Stem) + Filename + ".ll").str();
unittests/ADT/APIntTest.cpp 2644 return (Twine(A) + Twine(X_str) + Twine("^2 + ") + Twine(B) +
2644 return (Twine(A) + Twine(X_str) + Twine("^2 + ") + Twine(B) +
2644 return (Twine(A) + Twine(X_str) + Twine("^2 + ") + Twine(B) +
2644 return (Twine(A) + Twine(X_str) + Twine("^2 + ") + Twine(B) +
2645 Twine(X_str) + Twine(" + ") + Twine(C) + Twine(", bitwidth: ") +
2645 Twine(X_str) + Twine(" + ") + Twine(C) + Twine(", bitwidth: ") +
2645 Twine(X_str) + Twine(" + ") + Twine(C) + Twine(", bitwidth: ") +
2645 Twine(X_str) + Twine(" + ") + Twine(C) + Twine(", bitwidth: ") +
unittests/CodeGen/GlobalISel/GISelMITest.h 111 )MIR") + Twine(MIRFunc) + Twine("...\n"))
111 )MIR") + Twine(MIRFunc) + Twine("...\n"))
unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp 380 "0x000000") +
381 Twine::utohexstr(ExpectedEnd) + " but it ended at 0x000000" +
381 Twine::utohexstr(ExpectedEnd) + " but it ended at 0x000000" +
411 "0x000000") +
412 Twine::utohexstr(ExpectedEnd) + " but it ended at 0x000000" +
412 Twine::utohexstr(ExpectedEnd) + " but it ended at 0x000000" +
unittests/DebugInfo/DWARF/DwarfGenerator.cpp 408 return make_error<StringError>(Twine("no register info for target ") +
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.h 159 return make_error<StringError>("Symbol \"" + SymbolName + "\" not found",
unittests/MI/LiveIntervalTest.cpp 148 )MIR") + Twine(MIRFunc) + Twine("...\n")).toNullTerminatedStringRef(S);
148 )MIR") + Twine(MIRFunc) + Twine("...\n")).toNullTerminatedStringRef(S);
unittests/Support/CommandLineTest.cpp 1177 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1177 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1177 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1190 (" --" + Opt + " - " + HelpText + "\n"
1190 (" --" + Opt + " - " + HelpText + "\n"
1190 (" --" + Opt + " - " + HelpText + "\n"
1191 " --" + Opt + "=<value> - " + HelpText + "\n"
1191 " --" + Opt + "=<value> - " + HelpText + "\n"
1191 " --" + Opt + "=<value> - " + HelpText + "\n"
1191 " --" + Opt + "=<value> - " + HelpText + "\n"
1203 EXPECT_EQ(Output, (" --" + Opt + " - " + HelpText + "\n"
1203 EXPECT_EQ(Output, (" --" + Opt + " - " + HelpText + "\n"
1203 EXPECT_EQ(Output, (" --" + Opt + " - " + HelpText + "\n"
1204 " --" + Opt + "=<value> - " + HelpText + "\n"
1204 " --" + Opt + "=<value> - " + HelpText + "\n"
1204 " --" + Opt + "=<value> - " + HelpText + "\n"
1204 " --" + Opt + "=<value> - " + HelpText + "\n"
1217 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1217 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1217 EXPECT_EQ(Output, (" --" + Opt + "=<value> - " + HelpText + "\n"
1230 (" --" + Opt + "=<value> - " + HelpText + "\n"
1230 (" --" + Opt + "=<value> - " + HelpText + "\n"
1230 (" --" + Opt + "=<value> - " + HelpText + "\n"
1255 size_t ExpectedStrSize = (" --" + ArgName + "=<value> - ").str().size();
1263 size_t ExpectedStrSize = (" =" + OptName + " - ").str().size();
1272 size_t ExpectedStrSize = (" =" + OptName + " - ").str().size();
1297 size_t ExpectedStrSize = (" -" + ArgName + "=<value> - ").str().size();
unittests/Support/DJBTest.cpp 53 SCOPED_TRACE("Comparing '" + T.One + "' and '" + T.Two + "'");
53 SCOPED_TRACE("Comparing '" + T.One + "' and '" + T.Two + "'");
53 SCOPED_TRACE("Comparing '" + T.One + "' and '" + T.Two + "'");
75 SCOPED_TRACE("Text: '" + T.Text + "'");
unittests/Support/ErrorTest.cpp 439 make_error<StringError>("foo" + Twine(42), inconvertibleErrorCode()), S);
unittests/Support/FileCollectorTest.cpp 217 std::string RemovedFileName = (Twine(subdir3.Path) + "/removed").str();
260 std::string rpath = (reproducer_root.Path + file_root.Path + "/aaa").str();
260 std::string rpath = (reproducer_root.Path + file_root.Path + "/aaa").str();
269 (reproducer_root.Path + file_root.Path + "/foo/ddd").str();
269 (reproducer_root.Path + file_root.Path + "/foo/ddd").str();
277 std::string rpath = (reproducer_root.Path + file_root.Path + "/eee").str();
277 std::string rpath = (reproducer_root.Path + file_root.Path + "/eee").str();
unittests/Support/Path.cpp 185 EXPECT_EQ(*sys::path::rbegin(filename), (stem + ext).str());
508 fs::create_directories(Twine(TestDirectory) + "/test1/test2/test3"));
509 ASSERT_TRUE(fs::exists(Twine(TestDirectory) + "/test1/test2/test3"));
521 path::native(Twine(RealBase) + "/test1/test2", Expected);
524 Twine(TestDirectory) + "/././test1/../test1/test2/./test3/..", Actual));
540 ASSERT_NO_ERROR(fs::remove_directories(Twine(TestDirectory) + "/test1"));
573 fs::create_directories(Twine(TestDirectory) + "/noreadperm"));
574 ASSERT_TRUE(fs::exists(Twine(TestDirectory) + "/noreadperm"));
576 fs::setPermissions(Twine(TestDirectory) + "/noreadperm", fs::no_perms);
577 fs::setPermissions(Twine(TestDirectory) + "/noreadperm", fs::all_exe);
579 ASSERT_NO_ERROR(fs::real_path(Twine(TestDirectory) + "/noreadperm", Expanded,
582 ASSERT_NO_ERROR(fs::remove_directories(Twine(TestDirectory) + "/noreadperm"));
734 ASSERT_NO_ERROR(fs::create_directory(Twine(TestDirectory) + "foo"));
735 ASSERT_NO_ERROR(fs::create_directory(Twine(TestDirectory) + "foo"));
736 ASSERT_EQ(fs::create_directory(Twine(TestDirectory) + "foo", false),
738 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "foo"));
746 fs::create_directory(Twine(TestDirectory) + "baz500", false,
748 ASSERT_NO_ERROR(fs::status(Twine(TestDirectory) + "baz500", Status));
751 ASSERT_NO_ERROR(fs::create_directory(Twine(TestDirectory) + "baz777", false,
753 ASSERT_NO_ERROR(fs::status(Twine(TestDirectory) + "baz777", Status));
831 fs::create_directories(Twine(TestDirectory) + "/recursive/a0/aa1"));
833 fs::create_directories(Twine(TestDirectory) + "/recursive/a0/ab1"));
834 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory) +
837 fs::create_directories(Twine(TestDirectory) + "/recursive/z0/za1"));
839 fs::create_directories(Twine(TestDirectory) + "/recursive/pop/p1"));
843 + "/recursive", ec), e; i != e; i.increment(ec)){
881 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/a0/aa1"));
882 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/a0/ab1"));
883 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/a0"));
885 fs::remove(Twine(TestDirectory) + "/recursive/dontlookhere/da1"));
886 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/dontlookhere"));
887 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/pop/p1"));
888 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/pop"));
889 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/z0/za1"));
890 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive/z0"));
891 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/recursive"));
895 fs::create_directories(Twine(TestDirectory) + "/reclevel/a/b/c"));
896 fs::recursive_directory_iterator I(Twine(TestDirectory) + "/reclevel", ec), E;
902 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel/a/b/c"));
903 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel/a/b"));
904 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel/a"));
905 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "/reclevel"));
911 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory) + "/symlink"));
913 fs::create_link("no_such_file", Twine(TestDirectory) + "/symlink/a"));
915 fs::create_directories(Twine(TestDirectory) + "/symlink/b/bb"));
917 fs::create_link("no_such_file", Twine(TestDirectory) + "/symlink/b/ba"));
919 fs::create_link("no_such_file", Twine(TestDirectory) + "/symlink/b/bc"));
921 fs::create_link("no_such_file", Twine(TestDirectory) + "/symlink/c"));
923 fs::create_directories(Twine(TestDirectory) + "/symlink/d/dd/ddd"));
924 ASSERT_NO_ERROR(fs::create_link(Twine(TestDirectory) + "/symlink/d/dd",
925 Twine(TestDirectory) + "/symlink/d/da"));
927 fs::create_link("no_such_file", Twine(TestDirectory) + "/symlink/e"));
937 for (fs::directory_iterator i(Twine(TestDirectory) + "/symlink", ec), e;
955 Twine(TestDirectory) + "/symlink", ec), e; i != e; i.increment(ec)) {
973 Twine(TestDirectory) + "/symlink", ec, /*follow_symlinks=*/false), e;
991 ASSERT_NO_ERROR(fs::remove_directories(Twine(TestDirectory) + "/symlink"));
1001 ASSERT_NO_ERROR(fs::create_directories(Twine(BaseDir) + "/foo/bar/baz"));
1002 ASSERT_NO_ERROR(fs::create_directories(Twine(BaseDir) + "/foo/bar/buzz"));
1004 Twine(BaseDir) + "/foo/bar/baz/%%%%%%.tmp", fds[0], Paths[0]));
1006 Twine(BaseDir) + "/foo/bar/baz/%%%%%%.tmp", fds[1], Paths[1]));
1008 Twine(BaseDir) + "/foo/bar/buzz/%%%%%%.tmp", fds[2], Paths[2]));
1010 Twine(BaseDir) + "/foo/bar/buzz/%%%%%%.tmp", fds[3], Paths[3]));
1015 EXPECT_TRUE(fs::exists(Twine(BaseDir) + "/foo/bar/baz"));
1016 EXPECT_TRUE(fs::exists(Twine(BaseDir) + "/foo/bar/buzz"));
1569 fs::createUniqueFile(Twine(TestDirectory) + "/temp", FD, TempPath));
unittests/Support/YAMLParserTest.cpp 189 std::string StringInArray = (llvm::Twine("[\"") + String + "\"]").str();
189 std::string StringInArray = (llvm::Twine("[\"") + String + "\"]").str();
203 std::string StringInArray = (llvm::Twine("[\"") + String + "\"]").str();
203 std::string StringInArray = (llvm::Twine("[\"") + String + "\"]").str();
204 ExpectParseError((Twine("When parsing string \"") + String + "\"").str(),
204 ExpectParseError((Twine("When parsing string \"") + String + "\"").str(),
utils/TableGen/AsmMatcherEmitter.cpp 847 "unknown source two-operand alias operand '" + Ops.first +
852 Ops.second + "'.");
926 "Instruction '" + TheDef->getName() + "' has no tokens");
933 "Invalid instruction mnemonic '" + Mnemonic + "'!");
1083 "matchable with operand modifier '" + Tok +
1166 "Record `" + Rec->getName() +
1178 PrintFatalError(Rec->getLoc(), "RegisterOperand `" + Rec->getName() +
1192 PrintFatalError(Rec->getLoc(), "Operand `" + Rec->getName() +
1681 "error: unable to find operand: '" + OperandName + "'");
1756 "error: unable to find operand: '" + OperandName + "'");
1886 TheDef->getName() + "' has operand '" + OpName +
1886 TheDef->getName() + "' has operand '" + OpName +
1886 TheDef->getName() + "' has operand '" + OpName +
1916 "Operand '" + T.first + "' can never be matched");
2707 PrintFatalError(R->getLoc(), "Predicate '" + ReqFeatures[i]->getName() +
utils/TableGen/AsmWriterEmitter.cpp 530 AltName + "'.");
917 Cond = (Target.getName() + ClassName + "ValidateMCOperand(" + Op +
917 Cond = (Target.getName() + ClassName + "ValidateMCOperand(" + Op +
917 Cond = (Target.getName() + ClassName + "ValidateMCOperand(" + Op +
917 Cond = (Target.getName() + ClassName + "ValidateMCOperand(" + Op +
918 ", STI, " + utostr(Entry) + ")")
918 ", STI, " + utostr(Entry) + ")")
965 Cond = ("!STI.getFeatureBits()[" + Namespace + "::" + Op.substr(1) +
965 Cond = ("!STI.getFeatureBits()[" + Namespace + "::" + Op.substr(1) +
965 Cond = ("!STI.getFeatureBits()[" + Namespace + "::" + Op.substr(1) +
970 ("STI.getFeatureBits()[" + Namespace + "::" + Op + "]").str();
970 ("STI.getFeatureBits()[" + Namespace + "::" + Op + "]").str();
970 ("STI.getFeatureBits()[" + Namespace + "::" + Op + "]").str();
utils/TableGen/AsmWriterInst.cpp 99 CGI.TheDef->getName() + "'!");
139 CGI.TheDef->getName() + "'");
148 CGI.TheDef->getName() + "'");
158 CGI.TheDef->getName() + "'");
165 CGI.TheDef->getName() + "'");
170 "Stray '$' in '" + CGI.TheDef->getName() +
utils/TableGen/CodeEmitterGen.cpp 471 (R->getValueAsString("Namespace") + "::" + R->getName()).str();
utils/TableGen/CodeGenDAGPatterns.cpp 1000 MemoryVT->getName() + ") return false;\n")
1038 Code += ("if (cast<" + SDNodeName +
1077 Code += ("if (cast<" + SDNodeName +
1078 ">(N)->getMemoryVT().getScalarType() != MVT::" +
1079 ScalarMemoryVT->getName() + ") return false;\n")
1295 std::string Result = (" " + getImmType() + " Imm = ").str();
1320 return (Twine(Result) + " (void)N;\n" + getPredCode()).str();
1320 return (Twine(Result) + " (void)N;\n" + getPredCode()).str();
1475 "Unrecognized SDTypeConstraint '" + R->getName() + "'!\n");
2037 TP.error("'" + Op->getName() + "' fragment requires " +
2037 TP.error("'" + Op->getName() + "' fragment requires " +
2038 Twine(Frag->getNumArgs()) + " operands!");
2317 TP.error("Instruction '" + InstName + "' was provided " + Twine(Actual) +
2317 TP.error("Instruction '" + InstName + "' was provided " + Twine(Actual) +
2317 TP.error("Instruction '" + InstName + "' was provided " + Twine(Actual) +
2318 " operands but expected only " + Twine(Expected) + "!");
2318 " operands but expected only " + Twine(Expected) + "!");
2324 TP.error("Instruction '" + InstName +
2325 "' expects more than the provided " + Twine(Actual) + " operands!");
2325 "' expects more than the provided " + Twine(Actual) + " operands!");
2372 TP.error("Integer value '" + Twine(II->getValue()) +
2372 TP.error("Integer value '" + Twine(II->getValue()) +
2373 "' is out of range for type '" + getEnumName(VT) + "'!");
2373 "' is out of range for type '" + getEnumName(VT) + "'!");
2393 TP.error("Intrinsic '" + Int->Name + "' expects " + Twine(NumParamVTs) +
2393 TP.error("Intrinsic '" + Int->Name + "' expects " + Twine(NumParamVTs) +
2394 " operands, not " + Twine(getNumChildren() - 1) + " operands!");
2394 " operands, not " + Twine(getNumChildren() - 1) + " operands!");
2417 TP.error(getOperator()->getName() + " node requires exactly " +
2418 Twine(NI.getNumOperands()) + " operands!");
2486 TP.error("REG_SEQUENCE requires a SubRegIndex for operand " +
2487 Twine(I + 1) + "!");
2588 TP.error("Node transform '" + getOperator()->getName() +
2681 PrintError(TheRecord->getLoc(), "In " + TheRecord->getName() + ": " + Msg);
2681 PrintError(TheRecord->getLoc(), "In " + TheRecord->getName() + ": " + Msg);
2787 error("Unrecognized node '" + Operator->getName() + "'!");
2793 error("Cannot use '" + Operator->getName() + "' in an input pattern!");
2796 error("Cannot use '" + Operator->getName() + "' in an output pattern!");
2812 error("Cannot use '" + Operator->getName() + "' in an output pattern!");
3147 P->error("'" + ArgNameStr +
3155 *OperandsSet.begin() + "'!");
3223 PrintFatalError("Value #" + Twine(i) + " of OperandWithDefaultOps '" +
3223 PrintFatalError("Value #" + Twine(i) + " of OperandWithDefaultOps '" +
3223 PrintFatalError("Value #" + Twine(i) + " of OperandWithDefaultOps '" +
3224 DefaultOps[i]->getName() +
3245 I.error("Input " + DI->getDef()->getName() + " must be named!");
3497 PrintError(PatDef->getLoc(), "Pattern doesn't match hasSideEffects = " +
3504 PrintError(PatDef->getLoc(), "Pattern doesn't match mayStore = " +
3513 PrintError(PatDef->getLoc(), "Pattern doesn't match mayLoad = " +
3701 I.error("Operand #" + Twine(i) + " in operands list has no name!");
3701 I.error("Operand #" + Twine(i) + " in operands list has no name!");
3880 Twine("Pattern can never match: ") + Reason);
4031 PrintError(PTM.getSrcRecord()->getLoc(), Twine(Msg) + " on the " +
4031 PrintError(PTM.getSrcRecord()->getLoc(), Twine(Msg) + " on the " +
utils/TableGen/CodeGenHwModes.cpp 35 PrintError(R->getLoc(), "in record " + R->getName() +
utils/TableGen/CodeGenInstruction.cpp 72 PrintFatalError(R->getLoc(), "Illegal operand for the '" + R->getName() +
100 Rec->getName() + "'\n");
118 PrintFatalError(R->getLoc(), "Unknown operand class '" + Rec->getName() +
119 "' in '" + R->getName() +
119 "' in '" + R->getName() +
124 PrintFatalError(R->getLoc(), "In instruction '" + R->getName() +
125 "', operand #" + Twine(i) +
125 "', operand #" + Twine(i) +
129 "In instruction '" + R->getName() + "', operand #" +
129 "In instruction '" + R->getName() + "', operand #" +
130 Twine(i) +
155 PrintFatalError(TheDef->getLoc(), "'" + TheDef->getName() +
156 "' does not have an operand named '$" +
157 Name + "'!");
177 TheDef->getName() + ": Illegal operand name: '" + Op + "'");
177 TheDef->getName() + ": Illegal operand name: '" + Op + "'");
189 ": illegal empty suboperand name in '" + Op + "'");
189 ": illegal empty suboperand name in '" + Op + "'");
202 " whole operand part of complex operand '" +
203 Op + "'");
213 ": unknown suboperand name in '" +
214 Op + "'");
223 ": unknown suboperand name in '" + Op +
223 ": unknown suboperand name in '" + Op +
240 Rec->getName() + "': '" + CStr + "'");
240 Rec->getName() + "': '" + CStr + "'");
240 Rec->getName() + "': '" + CStr + "'");
247 Rec->getLoc(), "Operand '" + Name + "' of '" + Rec->getName() +
247 Rec->getLoc(), "Operand '" + Name + "' of '" + Rec->getName() +
259 "' in '" + Rec->getName() + "'");
259 "' in '" + Rec->getName() + "'");
267 Rec->getName() + "': '" + CStr + "'");
267 Rec->getName() + "': '" + CStr + "'");
267 Rec->getName() + "': '" + CStr + "'");
291 "' of '" + Rec->getName() + "' cannot be tied!");
291 "' of '" + Rec->getName() + "' cannot be tied!");
295 "' of '" + Rec->getName() + "' cannot be tied!");
295 "' of '" + Rec->getName() + "' cannot be tied!");
302 Rec->getLoc(), "Operand '" + SrcOpName + "' of '" + Rec->getName() +
302 Rec->getLoc(), "Operand '" + SrcOpName + "' of '" + Rec->getName() +
302 Rec->getLoc(), "Operand '" + SrcOpName + "' of '" + Rec->getName() +
314 Rec->getLoc(), "Operand '" + DestOpName + "' of '" + Rec->getName() +
314 Rec->getLoc(), "Operand '" + DestOpName + "' of '" + Rec->getName() +
314 Rec->getLoc(), "Operand '" + DestOpName + "' of '" + Rec->getName() +
539 PrintFatalError(Loc, "result argument #" + Twine(AliasOpNo) +
539 PrintFatalError(Loc, "result argument #" + Twine(AliasOpNo) +
577 PrintFatalError(Loc, "fixed register " + ADI->getDef()->getName() +
578 " is not a member of the " + InstOpRec->getName() +
578 " is not a member of the " + InstOpRec->getName() +
611 PrintFatalError(Loc, "result argument #" + Twine(AliasOpNo) +
611 PrintFatalError(Loc, "result argument #" + Twine(AliasOpNo) +
691 PrintFatalError(R->getLoc(), "result value $" + Result->getArgNameStr(i) +
692 " is both " + Entry->getName() + " and " +
692 " is both " + Entry->getName() + " and " +
692 " is both " + Entry->getName() + " and " +
693 ADI->getDef()->getName() + "!");
764 PrintFatalError(R->getLoc(), "result argument #" + Twine(AliasOpNo) +
764 PrintFatalError(R->getLoc(), "result argument #" + Twine(AliasOpNo) +
765 " does not match instruction operand class " +
771 PrintFatalError(R->getLoc(), "result argument #" + Twine(AliasOpNo) +
771 PrintFatalError(R->getLoc(), "result argument #" + Twine(AliasOpNo) +
772 " does not match instruction operand class " +
utils/TableGen/CodeGenMapTable.cpp 132 MapRec->getName() + "' has empty " + "`ValueCols' field!");
132 MapRec->getName() + "' has empty " + "`ValueCols' field!");
140 PrintFatalError(MapRec->getLoc(), "Record `" + MapRec->getName() +
141 "', field `ValueCols' entries don't match with " +
248 RowField->getAsString() + " found in \"" +
249 CurInstr->getName() + "\" instruction description.");
354 PrintFatalError("Multiple matches found for `" + KeyInstr->getName() +
355 "', for the relation `" + InstrMapDesc.getName() + "', row fields [" +
355 "', for the relation `" + InstrMapDesc.getName() + "', row fields [" +
355 "', for the relation `" + InstrMapDesc.getName() + "', row fields [" +
356 KeyValueStr + "], column `" + CurValueCol->getAsString() + "'");
356 KeyValueStr + "], column `" + CurValueCol->getAsString() + "'");
356 KeyValueStr + "], column `" + CurValueCol->getAsString() + "'");
527 PrintFatalError("Record `" + CurMap->getName() + "', field "
utils/TableGen/CodeGenRegisters.cpp 283 " appears twice in Register " + getName());
363 PrintFatalError(Loc, "Register " + getName() +
381 SubReg.second->getName() + " available as " +
381 SubReg.second->getName() + " available as " +
382 SubReg.first->getName() + " and " + Ins->second->getName());
382 SubReg.first->getName() + " and " + Ins->second->getName());
540 SI->second->getName() + " in " + getName());
540 SI->second->getName() + " in " + getName());
752 "RegTypes list member '" + Type->getName() +
784 PrintFatalError(R->getLoc(), " AltOrder register " + Reg->getName() +
935 return (Namespace + "::" + getName()).str();
1407 PrintWarning(Twine("SubRegIndex ") + Idx1->getQualifiedName() +
1407 PrintWarning(Twine("SubRegIndex ") + Idx1->getQualifiedName() +
1408 " and " + Idx2->getQualifiedName() +
1408 " and " + Idx2->getQualifiedName() +
1409 " compose ambiguously as " + Prev->getQualifiedName() +
1409 " compose ambiguously as " + Prev->getQualifiedName() +
1410 " or " + Idx3->getQualifiedName());
1434 + Idx.getName());
utils/TableGen/CodeGenSchedule.cpp 250 PrintError(R->getLoc(), "STIPredicate " + Name + " multiply declared.");
456 "TIIPredicate " + Name + " is multiply defined.");
458 " Previous definition of " + Name + " was here.");
1089 Inst->getName() +
1090 "\" also matches previous \"" +
1091 RWD->getValue("Instrs")->getValue()->getAsString() +
1125 InstDef->getName() +
1126 "\" also matches previous \"" +
1127 OldRWDef->getValue("Instrs")->getValue()->getAsString() +
1260 + " in ItinResources for " + PM.ModelName);
1260 + " in ItinResources for " + PM.ModelName);
1778 + " but no supergroup contains both.");
1946 Inst->TheDef->getName() + "' in SchedMachineModel '" +
1946 Inst->TheDef->getName() + "' in SchedMachineModel '" +
1947 ProcModel.ModelDef->getName() + "'");
1966 "' lacks information for '" +
1967 Inst->TheDef->getName() + "'");
2000 + " in ItinResources for " + PM.ModelName);
2000 + " in ItinResources for " + PM.ModelName);
utils/TableGen/CodeGenTarget.cpp 258 PrintFatalError("Target does not have an AsmParser #" +
259 Twine(AsmParserNum) + "!");
270 PrintFatalError("Target does not have an AsmParserVariant #" + Twine(i) +
270 PrintFatalError("Target does not have an AsmParserVariant #" + Twine(i) +
289 PrintFatalError("Target does not have an AsmWriter #" +
290 Twine(AsmWriterNum) + "!");
418 PrintFatalError(Twine("Could not find '") + Name + "' instruction!");
418 PrintFatalError(Twine("Could not find '") + Name + "' instruction!");
567 PropList[i]->getName() +
568 "' on ComplexPattern '" + R->getName() +
568 "' on ComplexPattern '" + R->getName() +
721 "Parameter #" + Twine(i) + " has out of bounds matching "
721 "Parameter #" + Twine(i) + " has out of bounds matching "
722 "number " + Twine(MatchTy));
724 Twine("ParamTypes is ") + TypeList->getAsString());
utils/TableGen/DAGISelMatcherGen.cpp 521 Names.push_back(("pred:" + Twine(Name.getScope()) + ":" + Name.getIdentifier()).str());
521 Names.push_back(("pred:" + Twine(Name.getScope()) + ":" + Name.getIdentifier()).str());
521 Names.push_back(("pred:" + Twine(Name.getScope()) + ":" + Name.getIdentifier()).str());
542 ("pred:" + Twine(Pred.Scope) + ":" + TP->getArgName(i)).str();
542 ("pred:" + Twine(Pred.Scope) + ":" + TP->getArgName(i)).str();
542 ("pred:" + Twine(Pred.Scope) + ":" + TP->getArgName(i)).str();
utils/TableGen/GlobalISelEmitter.cpp 205 (Separator + P.getOrigPatFragRecord()->getRecord()->getName()).str();
280 return (" (" + Operator->getValueAsString("Opcode") + ")").str();
283 return (" (Operator is an Intrinsic, " + Operator->getName() + ")").str();
286 return (" (Operator is an unmapped ComplexPattern, " + Operator->getName() +
291 return (" (Operator is an unmapped SDNodeXForm, " + Operator->getName() +
295 return (" (Operator " + Operator->getName() + " not understood)").str();
362 Explanation += (Separator + "first-failing:" +
521 return MatchTableRecord(None, (Namespace + "::" + NamedValue).str(), 1,
526 return MatchTableRecord(None, (Namespace + "::" + NamedValue).str(), 1,
925 SymbolicName + ")");
3033 PrintFatalError(SrcLoc, "Register " + Reg->getName() +
3045 PrintFatalError(SrcLoc, "Operand " + Name + " was not declared in matcher");
3069 << MatchTable::Comment(("Rule ID " + Twine(RuleID) + " //").str())
3069 << MatchTable::Comment(("Rule ID " + Twine(RuleID) + " //").str())
3147 Table << MatchTable::Comment(("GIR_Coverage, " + Twine(RuleID) + ",").str())
3147 Table << MatchTable::Comment(("GIR_Coverage, " + Twine(RuleID) + ",").str())
3761 return failedImport("SelectionDAG ComplexPattern (" + R->getName() +
4826 (" = GIPFP_" + TypeIdentifier + "_Invalid + 1,\n").str();
5021 Target.getName() + " target").str(), OS);
utils/TableGen/InfoByHwMode.cpp 29 return (Twine('m') + Twine(Mode)).str();
utils/TableGen/IntrinsicEmitter.cpp 866 "Intrinsic '" + Ints[i].TheDef->getName() +
867 "': duplicate " + CompilerName + " builtin name!");
867 "': duplicate " + CompilerName + " builtin name!");
utils/TableGen/OptParserEmitter.cpp 129 if (Prefixes.insert(std::make_pair(prfkey, (Twine("prefix_") +
315 std::string S = (Pref + R.getValueAsString("Name")).str();
utils/TableGen/PseudoLoweringEmitter.cpp 94 "Pseudo operand type '" + DI->getDef()->getName() +
95 "' does not match expansion operand type '" +
96 Insn.Operands[BaseIdx + i].Rec->getName() + "'");
136 PrintFatalError(Rec->getLoc(), "Pseudo result '" + Operator->getName() +
142 PrintFatalError(Rec->getLoc(), "Pseudo result '" + Operator->getName() +
146 PrintFatalError(Rec->getLoc(), "Pseudo result '" + Operator->getName() +
182 "Pseudo output operand '" + Dag->getArgNameStr(i) +
utils/TableGen/RISCVCompressInstEmitter.cpp 206 "'Register: '" + DI->getDef()->getName() +
206 "'Register: '" + DI->getDef()->getName() +
207 "' is not in register class '" +
208 Inst.Operands[i].Rec->getName() + "'");
219 "Error in Dag '" + Dag->getAsString() + "'. Operand '" +
220 Dag->getArgNameStr(i - TiedCount) + "' has type '" +
220 Dag->getArgNameStr(i - TiedCount) + "' has type '" +
221 DI->getDef()->getName() +
222 "' which does not match the type '" +
223 Inst.Operands[i].Rec->getName() +
257 "Input operands for Inst '" + Inst.TheDef->getName() +
262 "Inst '" + Inst.TheDef->getName() +
274 "Inst '" + Inst.TheDef->getName() +
318 "Input Operand '" + SourceDag->getArgNameStr(i) +
323 PrintFatalError(Rec->getLoc(), "Operand " + SourceDag->getArgNameStr(i) +
331 SourceDag->getArgNameStr(i) + "'!");
373 DestDag->getArgNameStr(DagArgIdx) +
417 PrintFatalError(Rec->getLoc(), "Input instruction '" + Operator->getName() +
430 DestOperator->getName() +
629 "::" + Op.substr(1) + "]")
629 "::" + Op.substr(1) + "]")
634 << ("STI.getFeatureBits()[" + Namespace + "::" + Op + "]").str() +
634 << ("STI.getFeatureBits()[" + Namespace + "::" + Op + "]").str() +
utils/TableGen/RegisterBankEmitter.cpp 185 (Twine(Kind) + " (" + PossibleSubclass.getName() + ")").str();
185 (Twine(Kind) + " (" + PossibleSubclass.getName() + ")").str();
185 (Twine(Kind) + " (" + PossibleSubclass.getName() + ")").str();
203 std::string TmpKind2 = (Twine(TmpKind) + " " + RC->getName() +
203 std::string TmpKind2 = (Twine(TmpKind) + " " + RC->getName() +
203 std::string TmpKind2 = (Twine(TmpKind) + " " + RC->getName() +
204 " class-with-subregs: " + RC->getName())
231 (Twine(RC->Namespace) + "::" + RC->getName() + "RegClassID").str();
231 (Twine(RC->Namespace) + "::" + RC->getName() + "RegClassID").str();
231 (Twine(RC->Namespace) + "::" + RC->getName() + "RegClassID").str();
244 (TargetName + "::" + Bank.getEnumeratorName()).str();
utils/TableGen/RegisterInfoEmitter.cpp 357 PrintWarning(Reg->getLoc(), Twine("DWARF numbers for register ") +
358 getQualifiedName(Reg) +
utils/TableGen/SDNodeProperties.cpp 42 Property->getName() + "' on node '" +
42 Property->getName() + "' on node '" +
43 R->getName() + "'!");
utils/TableGen/SearchableTableEmitter.cpp 124 PrintFatalError(Twine("invalid field type for field '") + Field.Name +
124 PrintFatalError(Twine("invalid field type for field '") + Field.Name +
164 PrintFatalError(Twine("bitfield '") + Field.Name +
164 PrintFatalError(Twine("bitfield '") + Field.Name +
168 PrintFatalError(Twine("Field '") + Field.Name + "' has unknown type '" +
168 PrintFatalError(Twine("Field '") + Field.Name + "' has unknown type '" +
168 PrintFatalError(Twine("Field '") + Field.Name + "' has unknown type '" +
169 Field.RecType->getAsString() + "' to search by");
283 emitIfdef((Twine("GET_") + Enum.PreprocessorGuard + "_DECL").str(), OS);
283 emitIfdef((Twine("GET_") + Enum.PreprocessorGuard + "_DECL").str(), OS);
414 "comparison of field '") +
415 Field.Name + "' in table '" + Table.Name + "'");
415 Field.Name + "' in table '" + Table.Name + "'");
415 Field.Name + "' in table '" + Table.Name + "'");
482 emitIfdef((Twine("GET_") + Table.PreprocessorGuard + "_DECL").str(), OS);
482 emitIfdef((Twine("GET_") + Table.PreprocessorGuard + "_DECL").str(), OS);
496 emitIfdef((Twine("GET_") + Table.PreprocessorGuard + "_IMPL").str(), OS);
496 emitIfdef((Twine("GET_") + Table.PreprocessorGuard + "_IMPL").str(), OS);
551 PrintFatalError(Twine("Search index '") + Name +
551 PrintFatalError(Twine("Search index '") + Name +
552 "' refers to non-existing field '" + FieldName +
552 "' refers to non-existing field '" + FieldName +
553 "' in table '" + Table.Name + "'");
553 "' in table '" + Table.Name + "'");
559 "Early-out is not supported for string types (in search index '" +
560 Twine(Name) + "'");
603 Twine("Record '") + EntryRec->getName() +
603 Twine("Record '") + EntryRec->getName() +
604 "' in table '" + Table.Name +
604 "' in table '" + Table.Name +
605 "' is missing field '" + Field.Name + "'");
605 "' is missing field '" + Field.Name + "'");
612 PrintFatalError(Twine("Field '") + Field.Name + "' of table '" +
612 PrintFatalError(Twine("Field '") + Field.Name + "' of table '" +
612 PrintFatalError(Twine("Field '") + Field.Name + "' of table '" +
613 Table.Name + "' has incompatible type: " +
613 Table.Name + "' has incompatible type: " +
614 Field.RecType->getAsString() + " vs. " +
614 Field.RecType->getAsString() + " vs. " +
657 PrintFatalError(EnumRec->getLoc(), Twine("Enum FilterClass '") +
658 FilterClass + "' does not exist");
679 Twine("Table '") + Table->Name +
679 Twine("Table '") + Table->Name +
680 "' has bad 'TypeOf_" + FieldName +
680 "' has bad 'TypeOf_" + FieldName +
681 "': " + TypeOfVal->getValue()->getAsString());
710 Twine("SearchIndex '") + IndexRec->getName() +
710 Twine("SearchIndex '") + IndexRec->getName() +
711 "' refers to non-existing table '" +
737 Enum->Name = (Twine(Class->getName()) + "Values").str();
747 Table->Name = (Twine(Class->getName()) + "sList").str();
769 (Twine("lookup") + Table->CppTypeName + "By" + Field).str();
769 (Twine("lookup") + Table->CppTypeName + "By" + Field).str();
769 (Twine("lookup") + Table->CppTypeName + "By" + Field).str();
utils/TableGen/SubtargetEmitter.cpp 875 Twine("Processor does not define resources for ") +
927 Twine("Processor does not define resources for ") +