Debug info: some more refactoring for rdar://problem/14845534.

Swift SVN r9571
This commit is contained in:
Adrian Prantl
2013-10-21 23:38:18 +00:00
parent 86481263ac
commit 5cf8999985
2 changed files with 17 additions and 24 deletions

View File

@@ -165,7 +165,7 @@ public:
}
LLVM_EXPLICIT operator bool() const { return !isNull(); }
/// \brief Marks the location as comming from auto-generated body.
/// \brief Marks the location as coming from auto-generated body.
void markAutoGenerated() { KindData |= (1 << AutoGeneratedBit); }
/// \brief Returns true if the location represents an artifically generated
@@ -325,10 +325,10 @@ class ImplicitReturnLocation : public SILLocation {
public:
ImplicitReturnLocation(AbstractClosureExpr *E)
: SILLocation(E, ImplicitReturnKind) {}
: SILLocation(E, ImplicitReturnKind) { pointToEnd(); }
ImplicitReturnLocation(AbstractFunctionDecl *AFD)
: SILLocation(AFD, ImplicitReturnKind) {}
: SILLocation(AFD, ImplicitReturnKind) { pointToEnd(); }
/// \brief Construct from a RegularLocation; preserve all special bits.
///
@@ -339,6 +339,7 @@ public:
L.isASTNode<AbstractFunctionDecl>() ||
(L.isNull() && L.isInTopLevel()));
L.setKind(ImplicitReturnKind);
L.pointToEnd();
return L;
}