mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Debug info: some more refactoring for rdar://problem/14845534.
Swift SVN r9571
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user