mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
5a445395de
The .end directive indicates the end of the file. No further instructions are processed after a .end directive is encountered. One potential (glaringly obvious) optimisation that could be pursued here is to extend MCAsmParser with a DiscardRemainder method to avoid processing lexemes to the end of the file. It was unclear at this point if that would be worth adding, and could easily be added in a follow on change. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197547 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
275 B
ArmAsm
15 lines
275 B
ArmAsm
# RUN: llvm-mc -triple i386-unknown-unknown %s -I %p -filetype obj -o - \
|
|
# RUN: | llvm-readobj -t | FileCheck %s
|
|
|
|
rock:
|
|
movl $42, %eax
|
|
|
|
.include "directive_end.s"
|
|
|
|
hard_place:
|
|
movl $42, %ebx
|
|
|
|
# CHECK: Symbol {
|
|
# CHECK: Name: rock
|
|
# CHECK-NOT: Name: hard_place
|