Skip to content

IRGen: Weak-link opaque type entry points. #24822

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
May 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
4 changes: 4 additions & 0 deletions include/swift/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace clang {
namespace swift {
class ASTContext;
enum class Associativity : unsigned char;
class AvailabilityContext;
class BoundGenericType;
class ClangNode;
class ConstructorDecl;
Expand Down Expand Up @@ -584,6 +585,9 @@ class ASTContext final {
void addDestructorCleanup(T &object) {
addCleanup([&object]{ object.~T(); });
}

/// Get the runtime availability of the opaque types language feature for the target platform.
AvailabilityContext getOpaqueTypeAvailability();

//===--------------------------------------------------------------------===//
// Diagnostics Helper functions
Expand Down
3 changes: 3 additions & 0 deletions include/swift/Runtime/RuntimeFnWrappersGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "llvm/ADT/ArrayRef.h"

namespace swift {

class AvailabilityContext;

/// Generate an llvm declaration for a runtime entry with a
/// given name, return types, argument types, attributes and
Expand All @@ -28,6 +30,7 @@ llvm::Constant *getRuntimeFn(llvm::Module &Module,
llvm::Constant *&cache,
char const *name,
llvm::CallingConv::ID cc,
bool isWeakLinked,
llvm::ArrayRef<llvm::Type*> retTypes,
llvm::ArrayRef<llvm::Type*> argTypes,
llvm::ArrayRef<llvm::Attribute::AttrKind> attrs);
Expand Down
Loading