mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-30 04:56:49 +00:00
More whitespace fixin'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9dcef2a00
commit
ef7e18e60c
@ -2783,7 +2783,7 @@ private:
|
|||||||
|
|
||||||
CompileUnit *Unit = new CompileUnit(ID, Die);
|
CompileUnit *Unit = new CompileUnit(ID, Die);
|
||||||
if (DIUnit.isMain()) {
|
if (DIUnit.isMain()) {
|
||||||
assert (!MainCU && "Multiple main compile units are found!");
|
assert(!MainCU && "Multiple main compile units are found!");
|
||||||
MainCU = Unit;
|
MainCU = Unit;
|
||||||
}
|
}
|
||||||
DW_CUs[DIUnit.getGV()] = Unit;
|
DW_CUs[DIUnit.getGV()] = Unit;
|
||||||
@ -2889,41 +2889,40 @@ public:
|
|||||||
/// SetDebugInfo - Create global DIEs and emit initial debug info sections.
|
/// SetDebugInfo - Create global DIEs and emit initial debug info sections.
|
||||||
/// This is inovked by the target AsmPrinter.
|
/// This is inovked by the target AsmPrinter.
|
||||||
void SetDebugInfo(MachineModuleInfo *mmi) {
|
void SetDebugInfo(MachineModuleInfo *mmi) {
|
||||||
|
// Create all the compile unit DIEs.
|
||||||
// Create all the compile unit DIEs.
|
ConstructCompileUnits();
|
||||||
ConstructCompileUnits();
|
|
||||||
|
|
||||||
if (DW_CUs.empty())
|
if (DW_CUs.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
MMI = mmi;
|
MMI = mmi;
|
||||||
shouldEmit = true;
|
shouldEmit = true;
|
||||||
MMI->setDebugInfoAvailability(true);
|
MMI->setDebugInfoAvailability(true);
|
||||||
|
|
||||||
// Create DIEs for each of the externally visible global variables.
|
// Create DIEs for each of the externally visible global variables.
|
||||||
ConstructGlobalVariableDIEs();
|
ConstructGlobalVariableDIEs();
|
||||||
|
|
||||||
// Create DIEs for each of the externally visible subprograms.
|
// Create DIEs for each of the externally visible subprograms.
|
||||||
ConstructSubprograms();
|
ConstructSubprograms();
|
||||||
|
|
||||||
// Prime section data.
|
// Prime section data.
|
||||||
SectionMap.insert(TAI->getTextSection());
|
SectionMap.insert(TAI->getTextSection());
|
||||||
|
|
||||||
// Print out .file directives to specify files for .loc directives. These
|
// Print out .file directives to specify files for .loc directives. These
|
||||||
// are printed out early so that they precede any .loc directives.
|
// are printed out early so that they precede any .loc directives.
|
||||||
if (TAI->hasDotLocAndDotFile()) {
|
if (TAI->hasDotLocAndDotFile()) {
|
||||||
for (unsigned i = 1, e = SrcFiles.size(); i <= e; ++i) {
|
for (unsigned i = 1, e = SrcFiles.size(); i <= e; ++i) {
|
||||||
sys::Path FullPath(Directories[SrcFiles[i].getDirectoryID()]);
|
sys::Path FullPath(Directories[SrcFiles[i].getDirectoryID()]);
|
||||||
bool AppendOk = FullPath.appendComponent(SrcFiles[i].getName());
|
bool AppendOk = FullPath.appendComponent(SrcFiles[i].getName());
|
||||||
assert(AppendOk && "Could not append filename to directory!");
|
assert(AppendOk && "Could not append filename to directory!");
|
||||||
AppendOk = false;
|
AppendOk = false;
|
||||||
Asm->EmitFile(i, FullPath.toString());
|
Asm->EmitFile(i, FullPath.toString());
|
||||||
Asm->EOL();
|
Asm->EOL();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Emit initial sections
|
// Emit initial sections
|
||||||
EmitInitial();
|
EmitInitial();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BeginModule - Emit all Dwarf sections that should come prior to the
|
/// BeginModule - Emit all Dwarf sections that should come prior to the
|
||||||
@ -3082,13 +3081,13 @@ public:
|
|||||||
unsigned Tag = DI.getTag();
|
unsigned Tag = DI.getTag();
|
||||||
switch (Tag) {
|
switch (Tag) {
|
||||||
case DW_TAG_variable:
|
case DW_TAG_variable:
|
||||||
assert (DIVariable(GV).Verify() && "Invalid DebugInfo value");
|
assert(DIVariable(GV).Verify() && "Invalid DebugInfo value");
|
||||||
break;
|
break;
|
||||||
case DW_TAG_compile_unit:
|
case DW_TAG_compile_unit:
|
||||||
assert (DICompileUnit(GV).Verify() && "Invalid DebugInfo value");
|
assert(DICompileUnit(GV).Verify() && "Invalid DebugInfo value");
|
||||||
break;
|
break;
|
||||||
case DW_TAG_subprogram:
|
case DW_TAG_subprogram:
|
||||||
assert (DISubprogram(GV).Verify() && "Invalid DebugInfo value");
|
assert(DISubprogram(GV).Verify() && "Invalid DebugInfo value");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -3102,7 +3101,7 @@ public:
|
|||||||
/// correspondence to the source line list.
|
/// correspondence to the source line list.
|
||||||
unsigned RecordSourceLine(Value *V, unsigned Line, unsigned Col) {
|
unsigned RecordSourceLine(Value *V, unsigned Line, unsigned Col) {
|
||||||
CompileUnit *Unit = DW_CUs[V];
|
CompileUnit *Unit = DW_CUs[V];
|
||||||
assert (Unit && "Unable to find CompileUnit");
|
assert(Unit && "Unable to find CompileUnit");
|
||||||
unsigned ID = MMI->NextLabelID();
|
unsigned ID = MMI->NextLabelID();
|
||||||
Lines.push_back(SrcLineInfo(Line, Col, Unit->getID(), ID));
|
Lines.push_back(SrcLineInfo(Line, Col, Unit->getID(), ID));
|
||||||
return ID;
|
return ID;
|
||||||
@ -3161,7 +3160,7 @@ public:
|
|||||||
DIVariable DV(GV);
|
DIVariable DV(GV);
|
||||||
Scope = getOrCreateScope(DV.getContext().getGV());
|
Scope = getOrCreateScope(DV.getContext().getGV());
|
||||||
}
|
}
|
||||||
assert (Scope && "Unable to find variable' scope");
|
assert(Scope && "Unable to find variable' scope");
|
||||||
DbgVariable *DV = new DbgVariable(DIVariable(GV), FrameIndex);
|
DbgVariable *DV = new DbgVariable(DIVariable(GV), FrameIndex);
|
||||||
Scope->AddVariable(DV);
|
Scope->AddVariable(DV);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user