Index: include/llvm/Transforms/Scalar/SROA.h =================================================================== --- include/llvm/Transforms/Scalar/SROA.h +++ include/llvm/Transforms/Scalar/SROA.h @@ -112,16 +112,19 @@ /// Helper used by both the public run method and by the legacy pass. PreservedAnalyses runImpl(Function &F, DominatorTree &RunDT, - AssumptionCache &RunAC); + AssumptionCache &RunAC) LLVM_LIBRARY_VISIBILITY; - bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS); + bool presplitLoadsAndStores(AllocaInst &AI, sroa::AllocaSlices &AS) + LLVM_LIBRARY_VISIBILITY; AllocaInst *rewritePartition(AllocaInst &AI, sroa::AllocaSlices &AS, - sroa::Partition &P); - bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS); - bool runOnAlloca(AllocaInst &AI); - void clobberUse(Use &U); - void deleteDeadInstructions(SmallPtrSetImpl &DeletedAllocas); - bool promoteAllocas(Function &F); + sroa::Partition &P) LLVM_LIBRARY_VISIBILITY; + bool splitAlloca(AllocaInst &AI, sroa::AllocaSlices &AS) + LLVM_LIBRARY_VISIBILITY; + bool runOnAlloca(AllocaInst &AI) LLVM_LIBRARY_VISIBILITY; + void clobberUse(Use &U) LLVM_LIBRARY_VISIBILITY; + void deleteDeadInstructions(SmallPtrSetImpl &DeletedAllocas) + LLVM_LIBRARY_VISIBILITY; + bool promoteAllocas(Function &F) LLVM_LIBRARY_VISIBILITY; }; } Index: lib/Transforms/Scalar/SROA.cpp =================================================================== --- lib/Transforms/Scalar/SROA.cpp +++ lib/Transforms/Scalar/SROA.cpp @@ -206,7 +206,7 @@ /// for the slices used and we reflect that in this structure. The uses are /// stored, sorted by increasing beginning offset and with unsplittable slices /// starting at a particular offset before splittable slices. -class llvm::sroa::AllocaSlices { +class LLVM_LIBRARY_VISIBILITY llvm::sroa::AllocaSlices { public: /// \brief Construct the slices of a particular alloca. AllocaSlices(const DataLayout &DL, AllocaInst &AI); @@ -4274,7 +4274,7 @@ static char ID; }; -char SROALegacyPass::ID = 0; +char LLVM_LIBRARY_VISIBILITY SROALegacyPass::ID = 0; FunctionPass *llvm::createSROAPass() { return new SROALegacyPass(); }