mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 12:50:00 +00:00
AsmParser: ignore the .extern directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dec06ef431
commit
e14a3c5084
@ -1220,6 +1220,10 @@ bool AsmParser::ParseStatement() {
|
||||
|
||||
// Symbol attribute directives
|
||||
|
||||
if (IDVal == ".extern") {
|
||||
EatToEndOfStatement(); // .extern is the default, ignore it.
|
||||
return false;
|
||||
}
|
||||
if (IDVal == ".globl" || IDVal == ".global")
|
||||
return ParseDirectiveSymbolAttribute(MCSA_Global);
|
||||
if (IDVal == ".indirect_symbol")
|
||||
|
4
test/MC/AsmParser/extern.s
Normal file
4
test/MC/AsmParser/extern.s
Normal file
@ -0,0 +1,4 @@
|
||||
# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
||||
|
||||
# CHECK-NOT: foo
|
||||
.extern foo
|
Loading…
Reference in New Issue
Block a user