80-column cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2009-11-22 19:20:36 +00:00
parent e0239930eb
commit 7ab38dfccb

View File

@ -119,7 +119,8 @@ public:
return IndexTyDie; return IndexTyDie;
} }
// setIndexTyDie - Set D as anonymous type for index which can be reused later. // setIndexTyDie - Set D as anonymous type for index which can be reused
// later.
void setIndexTyDie(DIE *D) { void setIndexTyDie(DIE *D) {
IndexTyDie = D; IndexTyDie = D;
} }
@ -982,7 +983,8 @@ DIE *DwarfDebug::constructEnumTypeDIE(CompileUnit *DW_Unit, DIEnumerator *ETy) {
/// createGlobalVariableDIE - Create new DIE using GV. /// createGlobalVariableDIE - Create new DIE using GV.
DIE *DwarfDebug::createGlobalVariableDIE(CompileUnit *DW_Unit, DIE *DwarfDebug::createGlobalVariableDIE(CompileUnit *DW_Unit,
const DIGlobalVariable &GV) { const DIGlobalVariable &GV) {
// If the global variable was optmized out then no need to create debug info entry. // If the global variable was optmized out then no need to create debug info
// entry.
if (!GV.getGlobal()) return NULL; if (!GV.getGlobal()) return NULL;
if (!GV.getDisplayName()) return NULL; if (!GV.getDisplayName()) return NULL;
@ -1080,9 +1082,10 @@ DIE *DwarfDebug::createSubprogramDIE(CompileUnit *DW_Unit,
const char *LinkageName = SP.getLinkageName(); const char *LinkageName = SP.getLinkageName();
if (LinkageName) { if (LinkageName) {
// Skip special LLVM prefix that is used to inform the asm printer to not emit // Skip special LLVM prefix that is used to inform the asm printer to not
// usual symbol prefix before the symbol name. This happens for Objective-C // emit usual symbol prefix before the symbol name. This happens for
// symbol names and symbol whose name is replaced using GCC's __asm__ attribute. // Objective-C symbol names and symbol whose name is replaced using GCC's
// __asm__ attribute.
if (LinkageName[0] == 1) if (LinkageName[0] == 1)
LinkageName = &LinkageName[1]; LinkageName = &LinkageName[1];
addString(SPDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string, addString(SPDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string,
@ -1387,7 +1390,8 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DbgScope *Scope) {
I = InlineInfo.find(InlinedSP.getNode()); I = InlineInfo.find(InlinedSP.getNode());
if (I == InlineInfo.end()) { if (I == InlineInfo.end()) {
InlineInfo[InlinedSP.getNode()].push_back(std::make_pair(StartID, ScopeDIE)); InlineInfo[InlinedSP.getNode()].push_back(std::make_pair(StartID,
ScopeDIE));
InlinedSPNodes.push_back(InlinedSP.getNode()); InlinedSPNodes.push_back(InlinedSP.getNode());
} else } else
I->second.push_back(std::make_pair(StartID, ScopeDIE)); I->second.push_back(std::make_pair(StartID, ScopeDIE));
@ -1796,7 +1800,8 @@ void DwarfDebug::endModule() {
} }
/// findAbstractVariable - Find abstract variable, if any, associated with Var. /// findAbstractVariable - Find abstract variable, if any, associated with Var.
DbgVariable *DwarfDebug::findAbstractVariable(DIVariable &Var, unsigned FrameIdx, DbgVariable *DwarfDebug::findAbstractVariable(DIVariable &Var,
unsigned FrameIdx,
DILocation &ScopeLoc) { DILocation &ScopeLoc) {
DbgVariable *AbsDbgVariable = AbstractVariables.lookup(Var.getNode()); DbgVariable *AbsDbgVariable = AbstractVariables.lookup(Var.getNode());
@ -1837,7 +1842,8 @@ void DwarfDebug::collectVariableInfo() {
DbgVariable *RegVar = new DbgVariable(DV, VP.first); DbgVariable *RegVar = new DbgVariable(DV, VP.first);
Scope->addVariable(RegVar); Scope->addVariable(RegVar);
if (DbgVariable *AbsDbgVariable = findAbstractVariable(DV, VP.first, ScopeLoc)) if (DbgVariable *AbsDbgVariable = findAbstractVariable(DV, VP.first,
ScopeLoc))
RegVar->setAbstractVariable(AbsDbgVariable); RegVar->setAbstractVariable(AbsDbgVariable);
} }
} }
@ -2134,7 +2140,8 @@ unsigned DwarfDebug::getOrCreateSourceID(const std::string &DirName,
/// computeSizeAndOffset - Compute the size and offset of a DIE. /// computeSizeAndOffset - Compute the size and offset of a DIE.
/// ///
unsigned DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) { unsigned
DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) {
// Get the children. // Get the children.
const std::vector<DIE *> &Children = Die->getChildren(); const std::vector<DIE *> &Children = Die->getChildren();
@ -2808,7 +2815,8 @@ void DwarfDebug::emitDebugInlineInfo() {
// for (ValueMap<MDNode *, SmallVector<InlineInfoLabels, 4> >::iterator // for (ValueMap<MDNode *, SmallVector<InlineInfoLabels, 4> >::iterator
// I = InlineInfo.begin(), E = InlineInfo.end(); I != E; ++I) { // I = InlineInfo.begin(), E = InlineInfo.end(); I != E; ++I) {
MDNode *Node = *I; MDNode *Node = *I;
ValueMap<MDNode *, SmallVector<InlineInfoLabels, 4> >::iterator II = InlineInfo.find(Node); ValueMap<MDNode *, SmallVector<InlineInfoLabels, 4> >::iterator II
= InlineInfo.find(Node);
SmallVector<InlineInfoLabels, 4> &Labels = II->second; SmallVector<InlineInfoLabels, 4> &Labels = II->second;
DISubprogram SP(Node); DISubprogram SP(Node);
const char *LName = SP.getLinkageName(); const char *LName = SP.getLinkageName();