mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
80-column and whitespace fixups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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 << "]";
|
||||
|
||||
Reference in New Issue
Block a user