Skip to content

Remove LLVM_EXPORT references #13

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
Mar 29, 2019

Conversation

gmittert
Copy link
Contributor

LLVM_EXPORT no longer exists in llvm, remove it in preparation to pull in a new version

Copy link
Contributor

@benlangmuir benlangmuir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to be able to use this code with -fvisibility=hidden, so we should add a new macro to replace this. I suggest the name INDEXSTOREDB_EXPORT, which should be okay since it's not used in very many places.

@gmittert
Copy link
Contributor Author

We want to be able to use this code with -fvisibility=hidden, so we should add a new macro to replace this. I suggest the name INDEXSTOREDB_EXPORT, which should be okay since it's not used in very many places.

Fair enough!

//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2019

#ifndef LLVM_INDEXSTOREDB_SUPPORT_VISIBILITY_H
#define LLVM_INDEXSTOREDB_SUPPORT_VISIBILITY_H

#if __has_attribute(visibility)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#ifndef __has_attribute
#define __has_attribute(x) 0
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, added.

LLVM_EXPORT no longer exists in LLVM so we define it instead now
@benlangmuir
Copy link
Contributor

@swift-ci please test

@benlangmuir
Copy link
Contributor

Build is running, but the status isn't showing up for some reason. I'll verify it manually once it's done.

@benlangmuir benlangmuir merged commit 31ff487 into swiftlang:master Mar 29, 2019
@gmittert gmittert deleted the RemoveLLVMEXPORT branch April 1, 2019 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants