-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
There was a problem hiding this 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.
423de1c
to
5561e35
Compare
Fair enough! |
5561e35
to
9514343
Compare
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
9514343
to
bfd6478
Compare
@swift-ci please test |
Build is running, but the status isn't showing up for some reason. I'll verify it manually once it's done. |
LLVM_EXPORT no longer exists in llvm, remove it in preparation to pull in a new version