[CSKY] Add visibility macro to fix link error

Add LLVM_EXTERNAL_VISIBILITY macro to fix link error of
https://reviews.llvm.org/D88466#2476378
This commit is contained in:
Zi Xuan Wu 2021-01-11 16:18:01 +08:00
parent af339f89a1
commit cddd3faf5d

View 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");
}