Revert "[AST] Introduce internal attribute '_migration_id'."

This reverts commit 042efbfb26. We're
going to take a different approach to the migration attribute.
This commit is contained in:
Doug Gregor
2016-01-13 14:10:11 -08:00
parent f2c912afc8
commit 83412bc219
12 changed files with 1 additions and 209 deletions

View File

@@ -1999,21 +1999,6 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
break;
}
case decls_block::MigrationId_DECL_ATTR: {
uint64_t endOfIdentIndex;
serialization::decls_block::MigrationIdDeclAttrLayout::readRecord(
scratch, endOfIdentIndex);
StringRef ident = blobData.substr(0, endOfIdentIndex);
StringRef pattern = blobData.substr(endOfIdentIndex);
Attr = new (ctx) MigrationIdAttr(SourceLoc(), SourceLoc(),
SourceLoc(),
ctx.AllocateCopy(ident),
ctx.AllocateCopy(pattern),
SourceLoc(), /*isImplicit=*/false);
break;
}
#define SIMPLE_DECL_ATTR(NAME, CLASS, ...) \
case decls_block::CLASS##_DECL_ATTR: { \
bool isImplicit; \