Implement visibility checking during linking. Also implement protected
visibility support for bitcode. llvm-svn: 36577
This commit is contained in:
@@ -187,8 +187,9 @@ static unsigned getEncodedLinkage(const GlobalValue *GV) {
|
||||
static unsigned getEncodedVisibility(const GlobalValue *GV) {
|
||||
switch (GV->getVisibility()) {
|
||||
default: assert(0 && "Invalid visibility!");
|
||||
case GlobalValue::DefaultVisibility: return 0;
|
||||
case GlobalValue::HiddenVisibility: return 1;
|
||||
case GlobalValue::DefaultVisibility: return 0;
|
||||
case GlobalValue::HiddenVisibility: return 1;
|
||||
case GlobalValue::ProtectedVisibility: return 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user