Skip to content

Remove API notes compilation support from swiftc #21759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 0 additions & 79 deletions test/APINotes/Inputs/roundtrip.apinotes

This file was deleted.

7 changes: 0 additions & 7 deletions test/APINotes/yaml-roundtrip.swift

This file was deleted.

1 change: 0 additions & 1 deletion tools/driver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_swift_host_tool(swift
api_notes.cpp
driver.cpp
autolink_extract_main.cpp
modulewrap_main.cpp
Expand Down
158 changes: 0 additions & 158 deletions tools/driver/api_notes.cpp

This file was deleted.

6 changes: 0 additions & 6 deletions tools/driver/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ static bool shouldRunAsSubcommand(StringRef ExecName,
return true;
}

extern int apinotes_main(ArrayRef<const char *> Args);

static int run_driver(StringRef ExecName,
const ArrayRef<const char *> argv) {
// Handle integrated tools.
Expand All @@ -128,10 +126,6 @@ static int run_driver(StringRef ExecName,
argv.data()+argv.size()),
argv[0], (void *)(intptr_t)getExecutablePath);
}
if (FirstArg == "-apinotes") {
return apinotes_main(llvm::makeArrayRef(argv.data()+1,
argv.data()+argv.size()));
}
}

std::string Path = getExecutablePath(argv[0]);
Expand Down