Skip to content

Commit

Permalink
simplify COFF module assembly test and move it to Object
Browse files Browse the repository at this point in the history
Reviewers: pcc, rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D57192

llvm-svn: 352142
inglorion committed Jan 25, 2019
1 parent 0e7ba66 commit 6710cc7
Showing 2 changed files with 13 additions and 21 deletions.
21 changes: 0 additions & 21 deletions llvm/test/MC/COFF/module-asm-coff.ll

This file was deleted.

13 changes: 13 additions & 0 deletions llvm/test/Object/X86/coff-asm.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
; Check that llvm-nm doesn't crash on COFF-specific assembly directives
; (PR36789).

; RUN: llvm-as %s -o %t.bc
; RUN: llvm-nm %t.bc

target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc19.0.24210"

module asm ".text"
module asm ".def foo; .scl 2; .type 32; .endef"
module asm "foo:"
module asm " ret"

0 comments on commit 6710cc7

Please sign in to comment.