Home
last modified time | relevance | path

Searched refs:LineInfo (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DSourcePrinter.cpp340 bool SourcePrinter::cacheSource(const DILineInfo &LineInfo) { in cacheSource() argument
342 if (LineInfo.Source) { in cacheSource()
343 Buffer = MemoryBuffer::getMemBuffer(*LineInfo.Source); in cacheSource()
346 MemoryBuffer::getFile(LineInfo.FileName, /*IsText=*/true); in cacheSource()
348 if (MissingSources.insert(LineInfo.FileName).second) in cacheSource()
349 reportWarning("failed to find source " + LineInfo.FileName, in cacheSource()
358 std::vector<StringRef> &Lines = LineCache[LineInfo.FileName]; in cacheSource()
367 SourceCache[LineInfo.FileName] = std::move(Buffer); in cacheSource()
379 DILineInfo LineInfo = DILineInfo(); in printSourceLine() local
383 LineInfo = *ExpectedLineInfo; in printSourceLine()
[all …]
H A DSourcePrinter.h147 void printLines(formatted_raw_ostream &OS, const DILineInfo &LineInfo,
150 void printSources(formatted_raw_ostream &OS, const DILineInfo &LineInfo,
156 StringRef getLine(const DILineInfo &LineInfo, StringRef ObjectFilename);
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymContext.cpp24 DILineInfo &LineInfo) { in fillLineInfoFromLocation() argument
27 LineInfo.FunctionName = Location.Name.str(); in fillLineInfoFromLocation()
38 LineInfo.FileName = DILineInfo::BadString; in fillLineInfoFromLocation()
40 LineInfo.FileName = Location.Base.str(); in fillLineInfoFromLocation()
44 LineInfo.FileName = static_cast<std::string>(Path); in fillLineInfoFromLocation()
49 LineInfo.FileName = Location.Base.str(); in fillLineInfoFromLocation()
55 LineInfo.Line = Location.Line; in fillLineInfoFromLocation()
78 DILineInfo LineInfo; in getLineInfoForAddress() local
85 LineInfo.FunctionName = Result.FuncName.str(); in getLineInfoForAddress()
87 LineInfo)) in getLineInfoForAddress()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBContext.cpp56 auto LineInfo = LineNumbers->getNext(); in getLineInfoForAddress() local
57 assert(LineInfo); in getLineInfoForAddress()
58 auto SourceFile = Session->getSourceFileById(LineInfo->getSourceFileId()); in getLineInfoForAddress()
63 Result.Column = LineInfo->getColumnNumber(); in getLineInfoForAddress()
64 Result.Line = LineInfo->getLineNumber(); in getLineInfoForAddress()
87 while (auto LineInfo = LineNumbers->getNext()) { in getLineInfoForAddressRange() local
89 {LineInfo->getVirtualAddress(), Address.SectionIndex}, Specifier)) in getLineInfoForAddressRange()
91 std::make_pair(LineInfo->getVirtualAddress(), *LineEntry)); in getLineInfoForAddressRange()
126 DILineInfo LineInfo; in getInliningInfoForAddress() local
127 LineInfo.FunctionName = Frame->getName(); in getInliningInfoForAddress()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DDIPrinter.cpp303 static json::Object toJSON(const DILineInfo &LineInfo) { in toJSON() argument
305 {{"FunctionName", LineInfo.FunctionName != DILineInfo::BadString in toJSON()
306 ? LineInfo.FunctionName in toJSON()
308 {"StartFileName", LineInfo.StartFileName != DILineInfo::BadString in toJSON()
309 ? LineInfo.StartFileName in toJSON()
311 {"StartLine", LineInfo.StartLine}, in toJSON()
313 LineInfo.StartAddress ? toHex(*LineInfo.StartAddress) : ""}, in toJSON()
315 LineInfo.FileName != DILineInfo::BadString ? LineInfo.FileName : ""}, in toJSON()
316 {"Line", LineInfo.Line}, in toJSON()
317 {"Column", LineInfo.Column}, in toJSON()
[all …]
H A DSymbolizableObjectFile.cpp279 DILineInfo LineInfo; in symbolizeCode() local
283 LineInfo = *DBGLineInfo; in symbolizeCode()
291 LineInfo.FunctionName = FunctionName; in symbolizeCode()
292 LineInfo.StartAddress = Start; in symbolizeCode()
296 LineInfo.FileName = FileName; in symbolizeCode()
299 return LineInfo; in symbolizeCode()
H A DSymbolize.cpp74 DILineInfo LineInfo = Info->symbolizeCode( in symbolizeCodeCommon() local
80 LineInfo.FunctionName = DemangleName(LineInfo.FunctionName, Info); in symbolizeCodeCommon()
81 return LineInfo; in symbolizeCodeCommon()
256 DILineInfo LineInfo = Info->symbolizeCode( in findSymbolCommon() local
259 if (LineInfo.FileName != DILineInfo::BadString) { in findSymbolCommon()
261 LineInfo.FunctionName = DemangleName(LineInfo.FunctionName, Info); in findSymbolCommon()
262 Result.push_back(std::move(LineInfo)); in findSymbolCommon()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/BTF/
H A DBTFContext.cpp26 const BTF::BPFLineInfo *LineInfo = BTF.findLineInfo(Address); in getLineInfoForAddress() local
28 if (!LineInfo) in getLineInfoForAddress()
31 Result.LineSource = BTF.findString(LineInfo->LineOff); in getLineInfoForAddress()
32 Result.FileName = BTF.findString(LineInfo->FileNameOff); in getLineInfoForAddress()
33 Result.Line = LineInfo->getLine(); in getLineInfoForAddress()
34 Result.Column = LineInfo->getCol(); in getLineInfoForAddress()
H A DBTFParser.cpp275 BTFLinesVector::const_iterator LineInfo = findLineInfo() local
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DLine.h21 class LineInfo {
36 LLVM_ABI LineInfo(uint32_t StartLine, uint32_t EndLine, bool IsStatement);
37 LineInfo(uint32_t LineData) : LineData(LineData) {} in LineInfo() function
94 LineInfo LineInf;
103 Line(int32_t CodeOffset, LineInfo LineInf, ColumnInfo ColumnInf) in Line()
106 LineInfo getLineInfo() const { return LineInf; } in getLineInfo()
H A DDebugLinesSubsection.h126 void addLineInfo(uint32_t Offset, const LineInfo &Line);
127 void addLineAndColumnInfo(uint32_t Offset, const LineInfo &Line,
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp245 std::vector<LineNumberInfo> LineInfo; in notifyObjectLoaded() local
296 LineInfo.push_back( in notifyObjectLoaded()
299 if (LineInfo.size() == 0) { in notifyObjectLoaded()
310 LineNumberInfo last = LineInfo.back(); in notifyObjectLoaded()
312 LineInfo.push_back(last); in notifyObjectLoaded()
313 for (size_t i = LineInfo.size() - 2; i > 0; --i) in notifyObjectLoaded()
314 LineInfo[i].LineNumber = LineInfo[i - 1].LineNumber; in notifyObjectLoaded()
319 FunctionMessage.line_number_size = LineInfo.size(); in notifyObjectLoaded()
320 FunctionMessage.line_number_table = &*LineInfo.begin(); in notifyObjectLoaded()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DJITLoaderVTune.cpp66 std::vector<LineNumberInfo> LineInfo; in registerJITLoaderVTuneRegisterImpl() local
68 LineInfo.push_back(LineNumberInfo{LInfo.first, LInfo.second}); in registerJITLoaderVTuneRegisterImpl()
71 if (LineInfo.size() == 0) { in registerJITLoaderVTuneRegisterImpl()
75 MethodMessage.line_number_size = LineInfo.size(); in registerJITLoaderVTuneRegisterImpl()
76 MethodMessage.line_number_table = &*LineInfo.begin(); in registerJITLoaderVTuneRegisterImpl()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/
H A DPerfJITEventListener.cpp476 LLVMPerfJitDebugEntry LineInfo; in NotifyDebug() local
479 LineInfo.Addr = It->first; in NotifyDebug()
483 LineInfo.Addr += 0x40; in NotifyDebug()
484 LineInfo.Lineno = Line.Line; in NotifyDebug()
485 LineInfo.Discrim = Line.Discriminator; in NotifyDebug()
487 Dumpstream->write(reinterpret_cast<const char *>(&LineInfo), in NotifyDebug()
488 sizeof(LineInfo)); in NotifyDebug()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DLine.cpp14 LineInfo::LineInfo(uint32_t StartLine, uint32_t EndLine, bool IsStatement) { in LineInfo() function in LineInfo
H A DDebugLinesSubsection.cpp81 void DebugLinesSubsection::addLineInfo(uint32_t Offset, const LineInfo &Line) { in addLineInfo()
90 const LineInfo &Line, in addLineAndColumnInfo()
/freebsd/contrib/libedit/
H A Dhistedit.h66 } LineInfo; typedef
182 const LineInfo *el_line(EditLine *);
250 int tok_line(Tokenizer *, const LineInfo *,
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DNativeLineNumber.h23 const codeview::LineInfo Line,
43 const codeview::LineInfo Line;
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCCodeView.h109 struct LineInfo { struct
115 LineInfo InlinedAt;
125 DenseMap<unsigned, LineInfo> InlinedAtMap;
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1129 BTFLineInfo LineInfo; in constructLineInfo() local
1131 LineInfo.Label = Label; in constructLineInfo()
1132 LineInfo.FileNameOff = addString(FileName); in constructLineInfo()
1136 LineInfo.LineOff = addString(Content[Line]); in constructLineInfo()
1138 LineInfo.LineOff = 0; in constructLineInfo()
1139 LineInfo.LineNum = Line; in constructLineInfo()
1140 LineInfo.ColumnNum = Column; in constructLineInfo()
1141 LineInfoTable[SecNameOff].push_back(LineInfo); in constructLineInfo()
1254 for (const auto &LineInfo : LineSec.second) { in emitBTFExtSection() local
1255 Asm->emitLabelReference(LineInfo.Label, 4); in emitBTFExtSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DGCOV.cpp57 struct LineInfo { struct
67 std::vector<LineInfo> lines;
86 void collectSourceLine(SourceInfo &si, Summary *summary, LineInfo &line,
714 LineInfo &line = locSource.lines[lineNum]; in collectFunction()
730 LineInfo &line, size_t lineNum) const { in collectSourceLine()
780 for (LineInfo &line : si.lines) { in collectSource()
806 const LineInfo &line = si.lines[lineNum]; in annotateSource()
851 const LineInfo &line = si.lines[lineNum]; in printSourceToIntermediate()
/freebsd/contrib/libedit/TEST/
H A Dtc1.c93 const LineInfo *lf = el_line(el); in complete()
181 const LineInfo *li; in main()
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DASTConsumers.h37 bool SilenceRewriteMacroWarning, bool LineInfo);
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeLineNumber.cpp16 const codeview::LineInfo Line, in NativeLineNumber()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCCodeView.cpp105 MCCVFunctionInfo::LineInfo InlinedAt; in recordInlinedCallSiteId()
281 MCCVFunctionInfo::LineInfo &IA = I->second; in getFunctionLineEntries()
380 LineData |= LineInfo::StatementFlag; in emitLineTableForFunction()
507 MCCVFunctionInfo::LineInfo LastSourceLoc, CurSourceLoc; in encodeInlineLineTable()

12