Skip to content

Commit

Permalink
Merge pull request #19 from vchuravy/vc/llvm_external_visibility
Browse files Browse the repository at this point in the history
[VE] add LLVM_EXTERNAL_VISIBILITY
  • Loading branch information
simoll authored Sep 2, 2020
2 parents 4041dd6 + 41ce9a3 commit c1f26ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/VE/Disassembler/VEDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/VE/VEAsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<VEAsmPrinter> X(getTheVETarget());
}
2 changes: 1 addition & 1 deletion llvm/lib/Target/VE/VETargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

using namespace llvm;

extern "C" void LLVMInitializeVETarget() {
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeVETarget() {
// Register the target.
RegisterTargetMachine<VETargetMachine> X(getTheVETarget());
}
Expand Down

0 comments on commit c1f26ac

Please sign in to comment.