mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
GlobalValue: Assert symbols with local linkage have default visibility
The change to ExtractGV.cpp has no functionality change except to avoid the asserts. Existing testcases already cover this, so I didn't add a new one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,11 +27,10 @@ using namespace llvm;
|
||||
/// the split module remain valid.
|
||||
static void makeVisible(GlobalValue &GV, bool Delete) {
|
||||
bool Local = GV.hasLocalLinkage();
|
||||
if (Local)
|
||||
GV.setVisibility(GlobalValue::HiddenVisibility);
|
||||
|
||||
if (Local || Delete) {
|
||||
GV.setLinkage(GlobalValue::ExternalLinkage);
|
||||
if (Local)
|
||||
GV.setVisibility(GlobalValue::HiddenVisibility);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user