Skip to content

Remove unused ID encoding functions from SwiftLookupTable #10003

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
Jun 1, 2017
Merged
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
14 changes: 0 additions & 14 deletions lib/ClangImporter/SwiftLookupTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,6 @@ class SwiftLookupTable {
return bits | 0x01;
}

/// Encode a declaration ID as an entry in the table.
static uintptr_t encodeDeclID(clang::serialization::DeclID id) {
auto upper = static_cast<uintptr_t>(id) << 2;
assert(upper >> 2 == id);
return upper | 0x02;
}

/// Encode a macro ID as an entry in the table.
static uintptr_t encodeMacroID(clang::serialization::MacroID id) {
auto upper = static_cast<uintptr_t>(id) << 2;
assert(upper >> 2 == id);
return upper | 0x02 | 0x01;
}

private:
/// A table mapping from the base name of Swift entities to all of
/// the C entities that have that name, in all contexts.
Expand Down