diff options
author | Eric Christopher <echristo@gmail.com> | 2012-11-20 00:15:36 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2012-11-20 00:15:36 +0000 |
commit | b1d992fb358a390a64e0e9578520f5d9b9a0d261 (patch) | |
tree | 0cae8132570e5b10abe4f3e06ee5b416351dadda /llvm/lib/VMCore/DebugInfo.cpp | |
parent | b3d5d71dfa39082c72a33ae31d18ff3af5c0c8c5 (diff) | |
download | bcm5719-llvm-b1d992fb358a390a64e0e9578520f5d9b9a0d261.tar.gz bcm5719-llvm-b1d992fb358a390a64e0e9578520f5d9b9a0d261.zip |
80-column and whitespace fixups.
llvm-svn: 168344
Diffstat (limited to 'llvm/lib/VMCore/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/VMCore/DebugInfo.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/llvm/lib/VMCore/DebugInfo.cpp b/llvm/lib/VMCore/DebugInfo.cpp index 574d2fef119..5eea2ce9e0a 100644 --- a/llvm/lib/VMCore/DebugInfo.cpp +++ b/llvm/lib/VMCore/DebugInfo.cpp @@ -68,7 +68,8 @@ uint64_t DIDescriptor::getUInt64Field(unsigned Elt) const { return 0; if (Elt < DbgNode->getNumOperands()) - if (ConstantInt *CI = dyn_cast_or_null<ConstantInt>(DbgNode->getOperand(Elt))) + if (ConstantInt *CI + = dyn_cast_or_null<ConstantInt>(DbgNode->getOperand(Elt))) return CI->getZExtValue(); return 0; @@ -691,7 +692,7 @@ static void fixupObjcLikeName(StringRef Str, SmallVectorImpl<char> &Out) { } } -/// getFnSpecificMDNode - Return a NameMDNode, if available, that is +/// getFnSpecificMDNode - Return a NameMDNode, if available, that is /// suitable to hold function specific information. NamedMDNode *llvm::getFnSpecificMDNode(const Module &M, DISubprogram Fn) { SmallString<32> Name = StringRef("llvm.dbg.lv."); @@ -720,7 +721,7 @@ NamedMDNode *llvm::getOrInsertFnSpecificMDNode(Module &M, DISubprogram Fn) { if (FName.startswith(StringRef(&One, 1))) FName = FName.substr(1); fixupObjcLikeName(FName, Name); - + return M.getOrInsertNamedMetadata(Name.str()); } @@ -743,7 +744,7 @@ DIVariable llvm::cleanseInlinedVariable(MDNode *DV, LLVMContext &VMContext) { SmallVector<Value *, 16> Elts; // Insert inlined scope as 7th element. for (unsigned i = 0, e = DV->getNumOperands(); i != e; ++i) - i == 7 ? + i == 7 ? Elts.push_back(Constant::getNullValue(Type::getInt32Ty(VMContext))): Elts.push_back(DV->getOperand(i)); return DIVariable(MDNode::get(VMContext, Elts)); @@ -757,7 +758,7 @@ DISubprogram llvm::getDISubprogram(const MDNode *Scope) { if (D.isLexicalBlockFile()) return getDISubprogram(DILexicalBlockFile(Scope).getContext()); - + if (D.isLexicalBlock()) return getDISubprogram(DILexicalBlock(Scope).getContext()); @@ -820,9 +821,10 @@ void DebugInfoFinder::processModule(const Module &M) { } for (Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I) - for (Function::const_iterator FI = (*I).begin(), FE = (*I).end(); FI != FE; ++FI) - for (BasicBlock::const_iterator BI = (*FI).begin(), BE = (*FI).end(); BI != BE; - ++BI) { + for (Function::const_iterator FI = (*I).begin(), FE = (*I).end(); + FI != FE; ++FI) + for (BasicBlock::const_iterator BI = (*FI).begin(), BE = (*FI).end(); + BI != BE; ++BI) { if (const DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI)) processDeclare(DDI); @@ -1065,7 +1067,7 @@ void DIType::printInternal(raw_ostream &OS) const { << ", align " << getAlignInBits() << ", offset " << getOffsetInBits(); if (isBasicType()) - if (const char *Enc = + if (const char *Enc = dwarf::AttributeEncodingString(DIBasicType(DbgNode).getEncoding())) OS << ", enc " << Enc; OS << "]"; |