mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
a538b5240e
Previously, an unsupported/unknown assembler directive issued a warning. That's generally unsafe, and inconsistent with the behaviour of pretty much every system assembler. Now that the MC assemblers are mature enough to be the default on multiple targets, it's reasonable to issue errors for these. For target or platform directives that need to stay warnings, we should add explicit handlers for them in, e.g., ELFAsmParser.cpp, DarwinAsmParser.cpp, et. al., and issue the warning there. rdar://9246275 llvm-svn: 155926
24 lines
437 B
ArmAsm
24 lines
437 B
ArmAsm
// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err
|
|
// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
|
|
|
|
.macro .test0
|
|
.endmacro
|
|
|
|
.macros_off
|
|
// CHECK-ERRORS: 9:1: error: unknown directive
|
|
.test0
|
|
.macros_on
|
|
|
|
.test0
|
|
|
|
// CHECK-ERRORS: macro '.test0' is already defined
|
|
.macro .test0
|
|
.endmacro
|
|
|
|
// CHECK-ERRORS: unexpected '.endmacro' in file
|
|
.endmacro
|
|
|
|
// CHECK-ERRORS: no matching '.endmacro' in definition
|
|
.macro dummy
|
|
|