mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-03 08:41:44 +00:00
MC: Allow .common as alias for .comm assembler directive. PR10116.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22a54c1cd7
commit
5cc6491f50
@ -1146,7 +1146,7 @@ bool AsmParser::ParseStatement() {
|
|||||||
if (IDVal == ".weak_def_can_be_hidden")
|
if (IDVal == ".weak_def_can_be_hidden")
|
||||||
return ParseDirectiveSymbolAttribute(MCSA_WeakDefAutoPrivate);
|
return ParseDirectiveSymbolAttribute(MCSA_WeakDefAutoPrivate);
|
||||||
|
|
||||||
if (IDVal == ".comm")
|
if (IDVal == ".comm" || IDVal == ".common")
|
||||||
return ParseDirectiveComm(/*IsLocal=*/false);
|
return ParseDirectiveComm(/*IsLocal=*/false);
|
||||||
if (IDVal == ".lcomm")
|
if (IDVal == ".lcomm")
|
||||||
return ParseDirectiveComm(/*IsLocal=*/true);
|
return ParseDirectiveComm(/*IsLocal=*/true);
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
# CHECK: TEST0:
|
# CHECK: TEST0:
|
||||||
# CHECK: .comm a,6,2
|
# CHECK: .comm a,6,2
|
||||||
# CHECK: .comm b,8
|
# CHECK: .comm b,8
|
||||||
|
# CHECK: .comm c,8
|
||||||
TEST0:
|
TEST0:
|
||||||
.comm a, 4+2, 2
|
.comm a, 4+2, 2
|
||||||
.comm b,8
|
.comm b,8
|
||||||
|
.common c,8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user