mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Cleanup a couple of comments in DIBuilder.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241966 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -595,7 +595,7 @@ DILocalVariable *DIBuilder::createLocalVariable(
|
|||||||
DIType *Ty, bool AlwaysPreserve, unsigned Flags, unsigned ArgNo) {
|
DIType *Ty, bool AlwaysPreserve, unsigned Flags, unsigned ArgNo) {
|
||||||
// FIXME: Why getNonCompileUnitScope()?
|
// FIXME: Why getNonCompileUnitScope()?
|
||||||
// FIXME: Why is "!Context" okay here?
|
// FIXME: Why is "!Context" okay here?
|
||||||
// FIXME: WHy doesn't this check for a subprogram or lexical block (AFAICT
|
// FIXME: Why doesn't this check for a subprogram or lexical block (AFAICT
|
||||||
// the only valid scopes)?
|
// the only valid scopes)?
|
||||||
DIScope *Context = getNonCompileUnitScope(Scope);
|
DIScope *Context = getNonCompileUnitScope(Scope);
|
||||||
|
|
||||||
@@ -603,7 +603,7 @@ DILocalVariable *DIBuilder::createLocalVariable(
|
|||||||
VMContext, Tag, cast_or_null<DILocalScope>(Context), Name, File, LineNo,
|
VMContext, Tag, cast_or_null<DILocalScope>(Context), Name, File, LineNo,
|
||||||
DITypeRef::get(Ty), ArgNo, Flags);
|
DITypeRef::get(Ty), ArgNo, Flags);
|
||||||
if (AlwaysPreserve) {
|
if (AlwaysPreserve) {
|
||||||
// The optimizer may remove local variable. If there is an interest
|
// The optimizer may remove local variables. If there is an interest
|
||||||
// to preserve variable info in such situation then stash it in a
|
// to preserve variable info in such situation then stash it in a
|
||||||
// named mdnode.
|
// named mdnode.
|
||||||
DISubprogram *Fn = getDISubprogram(Scope);
|
DISubprogram *Fn = getDISubprogram(Scope);
|
||||||
@@ -867,7 +867,7 @@ void DIBuilder::replaceArrays(DICompositeType *&T, DINodeArray Elements,
|
|||||||
if (!T->isResolved())
|
if (!T->isResolved())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If "T" is resolved, it may be due to a self-reference cycle. Track the
|
// If T is resolved, it may be due to a self-reference cycle. Track the
|
||||||
// arrays explicitly if they're unresolved, or else the cycles will be
|
// arrays explicitly if they're unresolved, or else the cycles will be
|
||||||
// orphaned.
|
// orphaned.
|
||||||
if (Elements)
|
if (Elements)
|
||||||
|
Reference in New Issue
Block a user