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:
Benjamin Kramer 2012-05-12 11:18:59 +00:00
parent dec06ef431
commit e14a3c5084
2 changed files with 8 additions and 0 deletions

View File

@ -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")

View File

@ -0,0 +1,4 @@
# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
# CHECK-NOT: foo
.extern foo