From 41ce9a3653c1d5a24b798015f0bf363e5405bd1f Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Wed, 2 Sep 2020 11:11:03 -0400 Subject: [PATCH] [VE] add LLVM_EXTERNAL_VISIBILITY --- llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp | 2 +- llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp | 2 +- llvm/lib/Target/VE/VEAsmPrinter.cpp | 2 +- llvm/lib/Target/VE/VETargetMachine.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp b/llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp index a35aa160a653..4f35713b52c8 100644 --- a/llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp +++ b/llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp @@ -47,7 +47,7 @@ static MCDisassembler *createVEDisassembler(const Target &T, return new VEDisassembler(STI, Ctx); } -extern "C" void LLVMInitializeVEDisassembler() { +extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeVEDisassembler() { // Register the disassembler. TargetRegistry::RegisterMCDisassembler(getTheVETarget(), createVEDisassembler); diff --git a/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp b/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp index a39cffc8f4a6..0bd2bbd6ffee 100644 --- a/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp +++ b/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp @@ -80,7 +80,7 @@ static MCInstPrinter *createVEMCInstPrinter(const Triple &T, return new VEInstPrinter(MAI, MII, MRI); } -extern "C" void LLVMInitializeVETargetMC() { +extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeVETargetMC() { // Register the MC asm info. RegisterMCAsmInfoFn X(getTheVETarget(), createVEMCAsmInfo); diff --git a/llvm/lib/Target/VE/VEAsmPrinter.cpp b/llvm/lib/Target/VE/VEAsmPrinter.cpp index 4588f3acdf14..2c6ad041703b 100644 --- a/llvm/lib/Target/VE/VEAsmPrinter.cpp +++ b/llvm/lib/Target/VE/VEAsmPrinter.cpp @@ -562,6 +562,6 @@ bool VEAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo, } // Force static initialization. -extern "C" void LLVMInitializeVEAsmPrinter() { +extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeVEAsmPrinter() { RegisterAsmPrinter X(getTheVETarget()); } diff --git a/llvm/lib/Target/VE/VETargetMachine.cpp b/llvm/lib/Target/VE/VETargetMachine.cpp index 9adddba059c1..a43584d0fbf8 100644 --- a/llvm/lib/Target/VE/VETargetMachine.cpp +++ b/llvm/lib/Target/VE/VETargetMachine.cpp @@ -22,7 +22,7 @@ using namespace llvm; -extern "C" void LLVMInitializeVETarget() { +extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeVETarget() { // Register the target. RegisterTargetMachine X(getTheVETarget()); }