mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Implement protected visibility. This partly implements PR1363. Linker
should be taught to deal with protected symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1099,7 +1099,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
|
||||
%token NORETURN INREG SRET NOUNWIND
|
||||
|
||||
// Visibility Styles
|
||||
%token DEFAULT HIDDEN
|
||||
%token DEFAULT HIDDEN PROTECTED
|
||||
|
||||
%start Module
|
||||
%%
|
||||
@@ -1180,9 +1180,10 @@ GVExternalLinkage
|
||||
;
|
||||
|
||||
GVVisibilityStyle
|
||||
: /*empty*/ { $$ = GlobalValue::DefaultVisibility; }
|
||||
| DEFAULT { $$ = GlobalValue::DefaultVisibility; }
|
||||
| HIDDEN { $$ = GlobalValue::HiddenVisibility; }
|
||||
: /*empty*/ { $$ = GlobalValue::DefaultVisibility; }
|
||||
| DEFAULT { $$ = GlobalValue::DefaultVisibility; }
|
||||
| HIDDEN { $$ = GlobalValue::HiddenVisibility; }
|
||||
| PROTECTED { $$ = GlobalValue::ProtectedVisibility; }
|
||||
;
|
||||
|
||||
FunctionDeclareLinkage
|
||||
|
Reference in New Issue
Block a user