From cddd3faf5debdfd2c09bb5b723f579fa8c8d5027 Mon Sep 17 00:00:00 2001 From: Zi Xuan Wu Date: Mon, 11 Jan 2021 16:18:01 +0800 Subject: [PATCH] [CSKY] Add visibility macro to fix link error Add LLVM_EXTERNAL_VISIBILITY macro to fix link error of https://reviews.llvm.org/D88466#2476378 --- llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp b/llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp index 800b105..1af2e67 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 X(getTheCSKYTarget(), "csky", "C-SKY", "CSKY"); } -- 2.7.4