mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +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…
x
Reference in New Issue
Block a user