mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Reformat, 80-col, tab characters, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207444 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -118,7 +118,6 @@ bool DbgVariable::isBlockByrefVariable() const {
|
|||||||
return Var.isBlockByrefVariable(DD->getTypeIdentifierMap());
|
return Var.isBlockByrefVariable(DD->getTypeIdentifierMap());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
DIType DbgVariable::getType() const {
|
DIType DbgVariable::getType() const {
|
||||||
DIType Ty = Var.getType().resolve(DD->getTypeIdentifierMap());
|
DIType Ty = Var.getType().resolve(DD->getTypeIdentifierMap());
|
||||||
// FIXME: isBlockByrefVariable should be reformulated in terms of complex
|
// FIXME: isBlockByrefVariable should be reformulated in terms of complex
|
||||||
@ -210,9 +209,8 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
|||||||
else
|
else
|
||||||
HasDwarfPubSections = DwarfPubSections == Enable;
|
HasDwarfPubSections = DwarfPubSections == Enable;
|
||||||
|
|
||||||
DwarfVersion = DwarfVersionNumber
|
DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber
|
||||||
? DwarfVersionNumber
|
: MMI->getModule()->getDwarfVersion();
|
||||||
: MMI->getModule()->getDwarfVersion();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||||
@ -546,7 +544,8 @@ DIE *DwarfDebug::createScopeChildrenDIE(
|
|||||||
return ObjectPointer;
|
return ObjectPointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
DIE *DwarfDebug::constructSubprogramScopeDIE(DwarfCompileUnit &TheCU, LexicalScope *Scope) {
|
DIE *DwarfDebug::constructSubprogramScopeDIE(DwarfCompileUnit &TheCU,
|
||||||
|
LexicalScope *Scope) {
|
||||||
assert(Scope && Scope->getScopeNode());
|
assert(Scope && Scope->getScopeNode());
|
||||||
|
|
||||||
DIScope DS(Scope->getScopeNode());
|
DIScope DS(Scope->getScopeNode());
|
||||||
@ -620,11 +619,10 @@ std::unique_ptr<DIE> DwarfDebug::constructScopeDIE(DwarfCompileUnit &TheCU,
|
|||||||
// There is no need to emit empty lexical block DIE.
|
// There is no need to emit empty lexical block DIE.
|
||||||
std::pair<ImportedEntityMap::const_iterator,
|
std::pair<ImportedEntityMap::const_iterator,
|
||||||
ImportedEntityMap::const_iterator> Range =
|
ImportedEntityMap::const_iterator> Range =
|
||||||
std::equal_range(
|
std::equal_range(ScopesWithImportedEntities.begin(),
|
||||||
ScopesWithImportedEntities.begin(),
|
ScopesWithImportedEntities.end(),
|
||||||
ScopesWithImportedEntities.end(),
|
std::pair<const MDNode *, const MDNode *>(DS, nullptr),
|
||||||
std::pair<const MDNode *, const MDNode *>(DS, nullptr),
|
less_first());
|
||||||
less_first());
|
|
||||||
if (Children.empty() && Range.first == Range.second)
|
if (Children.empty() && Range.first == Range.second)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
ScopeDIE = constructLexicalScopeDIE(TheCU, Scope);
|
ScopeDIE = constructLexicalScopeDIE(TheCU, Scope);
|
||||||
@ -2074,7 +2072,7 @@ void DwarfDebug::emitDebugStr() {
|
|||||||
void DwarfDebug::emitDebugLocEntry(ByteStreamer &Streamer,
|
void DwarfDebug::emitDebugLocEntry(ByteStreamer &Streamer,
|
||||||
const DebugLocEntry &Entry) {
|
const DebugLocEntry &Entry) {
|
||||||
assert(Entry.getValues().size() == 1 &&
|
assert(Entry.getValues().size() == 1 &&
|
||||||
"multi-value entries are not supported yet.");
|
"multi-value entries are not supported yet.");
|
||||||
const DebugLocEntry::Value Value = Entry.getValues()[0];
|
const DebugLocEntry::Value Value = Entry.getValues()[0];
|
||||||
DIVariable DV(Value.getVariable());
|
DIVariable DV(Value.getVariable());
|
||||||
if (Value.isInt()) {
|
if (Value.isInt()) {
|
||||||
@ -2208,7 +2206,7 @@ void DwarfDebug::emitDebugARanges() {
|
|||||||
Asm->OutStreamer.SwitchSection(
|
Asm->OutStreamer.SwitchSection(
|
||||||
Asm->getObjFileLowering().getDwarfARangesSection());
|
Asm->getObjFileLowering().getDwarfARangesSection());
|
||||||
|
|
||||||
typedef DenseMap<DwarfCompileUnit *, std::vector<ArangeSpan> > SpansType;
|
typedef DenseMap<DwarfCompileUnit *, std::vector<ArangeSpan>> SpansType;
|
||||||
|
|
||||||
SpansType Spans;
|
SpansType Spans;
|
||||||
|
|
||||||
@ -2464,7 +2462,7 @@ void DwarfDebug::emitDebugInfoDWO() {
|
|||||||
assert(useSplitDwarf() && "No split dwarf debug info?");
|
assert(useSplitDwarf() && "No split dwarf debug info?");
|
||||||
// Don't pass an abbrev symbol, using a constant zero instead so as not to
|
// Don't pass an abbrev symbol, using a constant zero instead so as not to
|
||||||
// emit relocations into the dwo file.
|
// emit relocations into the dwo file.
|
||||||
InfoHolder.emitUnits(this, /* AbbrevSymbol */nullptr);
|
InfoHolder.emitUnits(this, /* AbbrevSymbol */ nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Emit the .debug_abbrev.dwo section for separated dwarf. This contains the
|
// Emit the .debug_abbrev.dwo section for separated dwarf. This contains the
|
||||||
@ -2536,7 +2534,8 @@ void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
|
|||||||
this, &InfoHolder, getDwoLineTable(CU));
|
this, &InfoHolder, getDwoLineTable(CU));
|
||||||
DwarfTypeUnit &NewTU = *OwnedUnit;
|
DwarfTypeUnit &NewTU = *OwnedUnit;
|
||||||
TU = &NewTU;
|
TU = &NewTU;
|
||||||
TypeUnitsUnderConstruction.push_back(std::make_pair(std::move(OwnedUnit), CTy));
|
TypeUnitsUnderConstruction.push_back(
|
||||||
|
std::make_pair(std::move(OwnedUnit), CTy));
|
||||||
|
|
||||||
NewTU.addUInt(*UnitDie, dwarf::DW_AT_language, dwarf::DW_FORM_data2,
|
NewTU.addUInt(*UnitDie, dwarf::DW_AT_language, dwarf::DW_FORM_data2,
|
||||||
CU.getLanguage());
|
CU.getLanguage());
|
||||||
|
Reference in New Issue
Block a user