Author: Zi Xuan Wu Date: 2021-01-11T16:18:01+08:00 New Revision: cddd3faf5debdfd2c09bb5b723f579fa8c8d5027
URL: https://github.com/llvm/llvm-project/commit/cddd3faf5debdfd2c09bb5b723f579fa8c8d5027 DIFF: https://github.com/llvm/llvm-project/commit/cddd3faf5debdfd2c09bb5b723f579fa8c8d5027.diff LOG: [CSKY] Add visibility macro to fix link error Add LLVM_EXTERNAL_VISIBILITY macro to fix link error of https://reviews.llvm.org/D88466#2476378 Added: Modified: llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp Removed: ################################################################################ diff --git a/llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp b/llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp index 800b10517aa7..1af2e672ff42 100644 --- a/llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp +++ b/llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp @@ -15,6 +15,6 @@ Target &llvm::getTheCSKYTarget() { return TheCSKYTarget; } -extern "C" void LLVMInitializeCSKYTargetInfo() { +extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeCSKYTargetInfo() { RegisterTarget<Triple::csky> X(getTheCSKYTarget(), "csky", "C-SKY", "CSKY"); } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits