Skip to content

Commit 0b02421

Browse files
committed
---
yaml --- r: 348965 b: refs/heads/master c: c9647bb h: refs/heads/master i: 348963: 2419c2e
1 parent 7009876 commit 0b02421

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8293bdc9e97dfacae2d5cfed8b8e45f33306cbff
2+
refs/heads/master: c9647bb02ecb503cfa59e63fd262702786590fcc
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/include/swift/AST/RawComment.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ struct LineColumn {
8787
struct BasicDeclLocs {
8888
StringRef SourceFilePath;
8989
LineColumn Loc;
90-
LineColumn NameLoc;
9190
LineColumn StartLoc;
9291
LineColumn EndLoc;
9392
};

trunk/lib/Serialization/ModuleFile.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,8 +2387,8 @@ Optional<BasicDeclLocs> ModuleFile::getBasicDeclLocsForDecl(const Decl *D) const
23872387
auto UsrId = *It;
23882388
uint32_t NumSize = 4;
23892389
// Size of BasicDeclLocs in the buffer.
2390-
// FilePathOffset + 4 * LineColumn
2391-
uint32_t LineColumnCount = 4;
2390+
// FilePathOffset + LocNum * LineColumn
2391+
uint32_t LineColumnCount = 3;
23922392
uint32_t RecordSize = NumSize + NumSize * 2 * LineColumnCount;
23932393
uint32_t RecordOffset = RecordSize * UsrId;
23942394
assert(RecordOffset < BasicDeclLocsData.size());
@@ -2408,7 +2408,6 @@ Optional<BasicDeclLocs> ModuleFile::getBasicDeclLocsForDecl(const Decl *D) const
24082408
Result.X.Line = ReadNext(); \
24092409
Result.X.Column = ReadNext();
24102410
READ_FIELD(Loc)
2411-
READ_FIELD(NameLoc)
24122411
READ_FIELD(StartLoc)
24132412
READ_FIELD(EndLoc)
24142413
#undef READ_FIELD

trunk/lib/Serialization/SerializeDoc.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ namespace {
513513
struct DeclLocationsTableData {
514514
uint32_t SourceFileOffset;
515515
LineColumn Loc;
516-
LineColumn NameLoc;
517516
LineColumn StartLoc;
518517
LineColumn EndLoc;
519518
};
@@ -621,7 +620,6 @@ struct BasicDeclLocsTableWriter : public ASTWalker {
621620
writer.write<uint32_t>(data.X.Line); \
622621
writer.write<uint32_t>(data.X.Column);
623622
WRITE_LINE_COLUMN(Loc)
624-
WRITE_LINE_COLUMN(NameLoc);
625623
WRITE_LINE_COLUMN(StartLoc);
626624
WRITE_LINE_COLUMN(EndLoc);
627625
#undef WRITE_LINE_COLUMN
@@ -657,13 +655,6 @@ writer.write<uint32_t>(data.X.Column);
657655
llvm::sys::fs::make_absolute(SourceFilePath);
658656
Result.SourceFileOffset = FWriter.getTextOffset(SourceFilePath);
659657
Result.Loc = getLineColumn(SM, D->getLoc());
660-
if (auto *VD = dyn_cast<ValueDecl>(D)) {
661-
Result.NameLoc = getLineColumn(SM, VD->getNameLoc());
662-
} else if(auto *OD = dyn_cast<OperatorDecl>(D)) {
663-
Result.NameLoc = getLineColumn(SM, OD->getNameLoc());
664-
} else if(auto *PD = dyn_cast<PrecedenceGroupDecl>(D)) {
665-
Result.NameLoc = getLineColumn(SM, PD->getNameLoc());
666-
}
667658
Result.StartLoc = getLineColumn(SM, D->getStartLoc());
668659
Result.EndLoc = getLineColumn(SM, D->getEndLoc());
669660
return Result;
@@ -685,7 +676,6 @@ writer.write<uint32_t>(data.X.Column);
685676
Result.X.Line = Locs->X.Line; \
686677
Result.X.Column = Locs->X.Column;
687678
COPY_LINE_COLUMN(Loc)
688-
COPY_LINE_COLUMN(NameLoc)
689679
COPY_LINE_COLUMN(StartLoc)
690680
COPY_LINE_COLUMN(EndLoc)
691681
#undef COPY_LINE_COLUMN

0 commit comments

Comments
 (0)