LLVM 20.0.0git
|
#include "llvm/Transforms/IPO/ExtractGV.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
Go to the source code of this file.
Functions | |
static void | makeVisible (GlobalValue &GV, bool Delete) |
Make sure GV is visible from both modules. | |
|
static |
Make sure GV is visible from both modules.
Delete is true if it is being deleted from this module. This also makes sure GV cannot be dropped so that references from the split module remain valid.
Definition at line 23 of file ExtractGV.cpp.
References assert(), llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::getLinkage(), llvm::GlobalValue::hasLinkOnceLinkage(), llvm::GlobalValue::hasLocalLinkage(), llvm::GlobalValue::HiddenVisibility, llvm::GlobalValue::isDiscardableIfUnused(), llvm::GlobalValue::LinkOnceAnyLinkage, llvm::GlobalValue::LinkOnceODRLinkage, llvm_unreachable, Local, llvm::GlobalValue::setLinkage(), llvm::GlobalValue::setVisibility(), llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
Referenced by llvm::ExtractGVPass::run().