mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
b6e0946d40
The target specific parser should return `false' if the target AsmParser handles the directive, and `true' if the generic parser should handle the directive. Many of the target specific directive handlers would `return Error' which does not follow these semantics. This change simply changes the target specific routines to conform to the semantis of the ParseDirective correctly. Conformance to the semantics improves diagnostics emitted for the invalid directives. X86 is taken as a sample to ensure that multiple diagnostics are not presented for a single error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199068 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
152 B
ArmAsm
8 lines
152 B
ArmAsm
# RUN: not llvm-mc -triple i386 -filetype asm -o - %s 2>&1 | FileCheck %s
|
|
|
|
.code42
|
|
|
|
# CHECK: unknown directive .code42
|
|
# CHECK-NOT: unknown directive
|
|
|