forked from OSchip/llvm-project
Fix a small bug in the parsing of anonymous globals.
It was able to parse hidden dllexport global i32 42 but not dllexport global i32 42 llvm-svn: 210121
This commit is contained in:
parent
52b7442c28
commit
63e92fb166
|
@ -261,6 +261,8 @@ bool LLParser::ParseTopLevelEntities() {
|
|||
case lltok::kw_default: // OptionalVisibility
|
||||
case lltok::kw_hidden: // OptionalVisibility
|
||||
case lltok::kw_protected: // OptionalVisibility
|
||||
case lltok::kw_dllimport: // OptionalDLLStorageClass
|
||||
case lltok::kw_dllexport: // OptionalDLLStorageClass
|
||||
case lltok::kw_thread_local: // OptionalThreadLocal
|
||||
case lltok::kw_addrspace: // OptionalAddrSpace
|
||||
case lltok::kw_constant: // GlobalType
|
||||
|
|
|
@ -16,3 +16,5 @@ define i32 @foo(i32 %blah) {
|
|||
ret i32 %blah
|
||||
}
|
||||
|
||||
hidden dllexport global i32 42
|
||||
dllexport global i32 42
|
||||
|
|
Loading…
Reference in New Issue