Skip to content

Commit 6cdaf7e

Browse files
committed
APINotes: remove accidentally committed downstream changes
Remove the inferAsMember downstream changes which are not meant to be part of the APINotes support.
1 parent 9c3f1f4 commit 6cdaf7e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

clang/lib/APINotes/APINotesWriter.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ class APINotesWriter::Implementation {
3030
/// Scratch space for bitstream writing.
3131
llvm::SmallVector<uint64_t, 64> Scratch;
3232

33-
#if defined(__APPLE__) && defined(SWIFT_DOWNSTREAM)
34-
bool SwiftImportAsMember = false;
35-
#endif
36-
3733
/// Mapping from strings to identifier IDs.
3834
llvm::StringMap<IdentifierID> IdentifierIDs;
3935

@@ -227,13 +223,6 @@ void APINotesWriter::Implementation::writeControlBlock(
227223
control_block::ModuleNameLayout ModuleName(Stream);
228224
ModuleName.emit(Scratch, this->ModuleName);
229225

230-
#if defined(__APPLE__) && defined(SWIFT_DOWNSTREAM)
231-
if (SwiftInferImportAsMember) {
232-
control_block::ModuleOptionsLayout ModuleOptions(Stream);
233-
ModuleOptions.emit(Scratch, SwiftInferImportAsMember);
234-
}
235-
#endif
236-
237226
if (SourceFile) {
238227
control_block::SourceFileLayout SourceFile(Stream);
239228
SourceFile.emit(Scratch, this->SourceFile->getSize(),

0 commit comments

Comments
 (0)