Home
last modified time | relevance | path

Searched refs:DwarfVersion (Results 1 – 25 of 29) sorted by relevance

12

/openbsd-src/gnu/llvm/llvm/lib/MC/
H A DMCTargetOptionsCommandFlags.cpp39 MCOPT(int, DwarfVersion) in MCOPT_EXP()
68 static cl::opt<int> DwarfVersion("dwarf-version", cl::desc("Dwarf version"), in MCOPT_EXP() local
70 MCBINDOPT(DwarfVersion); in MCOPT_EXP()
130 Options.DwarfVersion = getDwarfVersion(); in InitMCTargetOptionsFromFlags()
H A DMCDwarf.cpp565 uint16_t DwarfVersion, unsigned FileNumber) { in tryGetFile() argument
566 return Header.tryGetFile(Directory, FileName, Checksum, Source, DwarfVersion, in tryGetFile()
582 uint16_t DwarfVersion, unsigned FileNumber) { in tryGetFile() argument
596 if (DwarfVersion >= 5 && isRootFile(RootFile, Directory, FileName, Checksum)) in tryGetFile()
1549 static unsigned getCIEVersion(bool IsEH, unsigned DwarfVersion) { in getCIEVersion() argument
1552 switch (DwarfVersion) { in getCIEVersion()
H A DMCContext.cpp977 return Table.tryGetFile(Directory, FileName, Checksum, Source, DwarfVersion, in getDwarfFile()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.h152 unsigned DwarfVersion : 4; variable
285 DwarfExpression(unsigned DwarfVersion, DwarfCompileUnit &CU) in DwarfExpression() argument
288 LocationFlags(Unknown), DwarfVersion(DwarfVersion) {} in DwarfExpression()
399 DebugLocDwarfExpression(unsigned DwarfVersion, BufferByteStreamer &BS, in DebugLocDwarfExpression() argument
401 : DwarfExpression(DwarfVersion, CU), OutBS(BS) {} in DebugLocDwarfExpression()
H A DDwarfDebug.cpp325 static AccelTableKind computeAccelTableKind(unsigned DwarfVersion, in computeAccelTableKind() argument
340 if (DwarfVersion >= 5) in computeAccelTableKind()
386 unsigned DwarfVersionNumber = Asm->TM.Options.MCOptions.DwarfVersion; in DwarfDebug()
387 unsigned DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber in DwarfDebug() local
390 DwarfVersion = in DwarfDebug()
391 TT.isNVPTX() ? 2 : (DwarfVersion ? DwarfVersion : dwarf::DWARF_VERSION); in DwarfDebug()
393 bool Dwarf64 = DwarfVersion >= 3 && // DWARF64 was introduced in DWARFv3. in DwarfDebug()
423 DwarfVersion, GenerateTypeUnits, DebuggerTuning, A->TM.getTargetTriple()); in DwarfDebug()
430 UseGNUTLSOpcode = tuneForGDB() || DwarfVersion < 3; in DwarfDebug()
432 UseDWARF2Bitfields = DwarfVersion < 4; in DwarfDebug()
[all …]
H A DDwarfExpression.cpp186 if (DwarfVersion >= 4) in addStackValue()
308 DwarfVersion >= 4) in addMachineRegExpression()
323 if (DwarfVersion < 4) in addMachineRegExpression()
592 if (DwarfVersion >= 5 && CU.getDwarfDebug().useOpConvert()) { in addExpression()
/openbsd-src/gnu/llvm/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp439 unsigned DwarfVersion = MCOptions.DwarfVersion ? MCOptions.DwarfVersion : 4; in main() local
440 if (DwarfVersion < 2 || DwarfVersion > 5) { in main()
441 errs() << ProgName << ": Dwarf version " << DwarfVersion in main()
445 Ctx.setDwarfVersion(DwarfVersion); in main()
448 if (DwarfVersion < 3) { in main()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFExpression.h56 enum DwarfVersion : uint8_t { enum
66 DwarfVersion Version; ///< Dwarf version where the Op was introduced.
69 Description(DwarfVersion Version = DwarfNA, Encoding Op1 = SizeNA,
/openbsd-src/gnu/llvm/llvm/include/llvm/DWARFLinker/
H A DDWARFStreamer.h63 void switchToDebugInfoSection(unsigned DwarfVersion);
70 void emitCompileUnitHeader(CompileUnit &Unit, unsigned DwarfVersion) override;
77 unsigned DwarfVersion) override;
H A DDWARFLinker.h99 unsigned DwarfVersion) = 0;
173 unsigned DwarfVersion) = 0;
H A DDWARFLinkerCompileUnit.h169 uint64_t computeNextUnitOffset(uint16_t DwarfVersion);
/openbsd-src/gnu/llvm/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp123 void DwarfStreamer::switchToDebugInfoSection(unsigned DwarfVersion) { in switchToDebugInfoSection() argument
125 MC->setDwarfVersion(DwarfVersion); in switchToDebugInfoSection()
145 unsigned DwarfVersion) { in emitCompileUnitHeader() argument
146 switchToDebugInfoSection(DwarfVersion); in emitCompileUnitHeader()
156 Asm->emitInt16(DwarfVersion); in emitCompileUnitHeader()
158 if (DwarfVersion >= 5) { in emitCompileUnitHeader()
181 unsigned DwarfVersion) { in emitAbbrevs() argument
183 MC->setDwarfVersion(DwarfVersion); in emitAbbrevs()
238 if (DwarfVersion >= 5) { in emitStrings()
242 Asm->emitInt16(DwarfVersion); in emitStrings()
H A DDWARFLinkerCompileUnit.cpp89 uint64_t CompileUnit::computeNextUnitOffset(uint16_t DwarfVersion) { in computeNextUnitOffset() argument
92 NextUnitOffset += (DwarfVersion >= 5) ? 12 : 11; // Header size in computeNextUnitOffset()
H A DDWARFLinker.cpp2271 const uint16_t DwarfVersion = CurrentUnit->getOrigUnit().getVersion(); in cloneAllCompileUnits() local
2272 const uint32_t UnitHeaderSize = DwarfVersion >= 5 ? 12 : 11; in cloneAllCompileUnits()
2276 OutputDebugInfoSize = CurrentUnit->computeNextUnitOffset(DwarfVersion); in cloneAllCompileUnits()
2289 OutputDebugInfoSize = CurrentUnit->computeNextUnitOffset(DwarfVersion); in cloneAllCompileUnits()
2333 unsigned DwarfVersion = CurrentUnit->getOrigUnit().getVersion(); in cloneAllCompileUnits() local
2337 Emitter->emitCompileUnitHeader(*CurrentUnit, DwarfVersion); in cloneAllCompileUnits()
2340 CurrentUnit->computeNextUnitOffset(DwarfVersion)); in cloneAllCompileUnits()
/openbsd-src/gnu/llvm/llvm/include/llvm/MC/
H A DMCDwarf.h275 uint16_t DwarfVersion, unsigned FileNumber = 0);
336 uint16_t DwarfVersion, std::optional<StringRef> Source) { in getFile() argument
339 DwarfVersion)); in getFile()
366 uint16_t DwarfVersion, unsigned FileNumber = 0);
369 std::optional<StringRef> Source, uint16_t DwarfVersion,
372 DwarfVersion, FileNumber));
H A DMCTargetOptions.h63 int DwarfVersion = 0; variable
H A DMCContext.h231 uint16_t DwarfVersion = 4; variable
827 void setDwarfVersion(uint16_t v) { DwarfVersion = v; } in setDwarfVersion()
828 uint16_t getDwarfVersion() const { return DwarfVersion; } in getDwarfVersion()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLine.cpp73 uint16_t DwarfVersion = getVersion(); in hasFileAtIndex() local
74 assert(DwarfVersion != 0 && in hasFileAtIndex()
76 if (DwarfVersion >= 5) in hasFileAtIndex()
85 uint16_t DwarfVersion = getVersion(); in getLastValidFileIndex() local
86 assert(DwarfVersion != 0 && in getLastValidFileIndex()
89 if (DwarfVersion >= 5) in getLastValidFileIndex()
96 uint16_t DwarfVersion = getVersion(); in getFileNameEntry() local
97 assert(DwarfVersion != 0 && in getFileNameEntry()
100 if (DwarfVersion >= 5) in getFileNameEntry()
H A DDWARFVerifier.cpp585 unsigned DwarfVersion = U->getVersion(); in verifyDebugInfoAttribute() local
586 const DWARFSection &RangeSection = DwarfVersion < 5 in verifyDebugInfoAttribute()
594 StringRef(DwarfVersion < 5 ? ".debug_ranges" : ".debug_rnglists") + in verifyDebugInfoAttribute()
/openbsd-src/gnu/llvm/clang/tools/driver/
H A Dcc1as_main.cpp96 unsigned DwarfVersion; member
181 DwarfVersion = 0; in AssemblerInvocation()
266 Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 2, Diags); in CreateFromArgs()
481 Ctx.setDwarfVersion(Opts.DwarfVersion); in ExecuteAssemblerImpl()
/openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/
H A DCommonArgs.cpp1638 unsigned DwarfVersion = ParseDebugDefaultVersion(TC, Args); in getDwarfVersion() local
1641 DwarfVersion = N; in getDwarfVersion()
1642 if (DwarfVersion == 0) { in getDwarfVersion()
1643 DwarfVersion = TC.GetDefaultDwarfVersion(); in getDwarfVersion()
1644 assert(DwarfVersion && "toolchain default DWARF version must be nonzero"); in getDwarfVersion()
1646 return DwarfVersion; in getDwarfVersion()
H A DClang.cpp974 unsigned DwarfVersion, in RenderDebugEnablingArgs() argument
998 if (DwarfVersion > 0) in RenderDebugEnablingArgs()
1000 Args.MakeArgString("-dwarf-version=" + Twine(DwarfVersion))); in RenderDebugEnablingArgs()
2604 unsigned DwarfVersion = DwarfVersionNum(Value); in CollectArgsForIntegratedAssembler() local
2605 if (DwarfVersion == 0) { // Send it onward, and let cc1as complain. in CollectArgsForIntegratedAssembler()
2610 DwarfVersion, llvm::DebuggerKind::Default); in CollectArgsForIntegratedAssembler()
4078 unsigned DwarfVersion) { in renderDwarfFormat() argument
4085 if (DwarfVersion < 3) in renderDwarfFormat()
8062 const unsigned DwarfVersion = getDwarfVersion(getToolChain(), Args); in ConstructJob() local
8063 RenderDebugEnablingArgs(Args, CmdArgs, DebugInfoKind, DwarfVersion, in ConstructJob()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DDIE.h944 dwarf::Form BestForm(unsigned DwarfVersion) const { in BestForm() argument
945 if (DwarfVersion > 3) in BestForm()
/openbsd-src/gnu/llvm/llvm/lib/DWP/
H A DDWP.cpp30 uint16_t DwarfVersion) { in debugStrOffsetsHeaderSize() argument
31 if (DwarfVersion <= 4) in debugStrOffsetsHeaderSize()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGDebugInfo.cpp354 CGM.getCodeGenOpts().DwarfVersion < 5) in computeChecksum()
566 else if (CGO.DebugStrictDwarf && CGO.DwarfVersion < 5) in CreateCompileUnit()
577 CGM.getCodeGenOpts().DwarfVersion >= 5)) { in CreateCompileUnit()
581 } else if (LO.C11 && !(CGO.DebugStrictDwarf && CGO.DwarfVersion < 5)) { in CreateCompileUnit()
3137 CGM.getCodeGenOpts().DwarfVersion < 4) in CreateType()
3951 if (CGM.getCodeGenOpts().DwarfVersion < 5 && !OMD->isDirectMethod()) in getObjCMethodDeclaration()
5677 if (CGM.getCodeGenOpts().DwarfVersion >= 5 || SubprogramDirect.getInt()) in finalize()
5758 CGM.getCodeGenOpts().DwarfVersion == 4 && in getCallSiteRelatedAttrs()
5762 if (!SupportsDWARFv4Ext && CGM.getCodeGenOpts().DwarfVersion < 5) in getCallSiteRelatedAttrs()

12