[CSKY] Add visibility macro to fix link error
authorZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Mon, 11 Jan 2021 08:18:01 +0000 (16:18 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Mon, 11 Jan 2021 08:18:01 +0000 (16:18 +0800)
Add LLVM_EXTERNAL_VISIBILITY macro to fix link error of
https://reviews.llvm.org/D88466#2476378

llvm/lib/Target/CSKY/TargetInfo/CSKYTargetInfo.cpp

index 800b105..1af2e67 100644 (file)
@@ -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");
 }