llvm-6502/test/DebugInfo/X86/main-file-name.s
Eric Christopher 6c583141bf Add support for passing -main-file-name all the way through to
the assembler.

Part of PR14624

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170390 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-18 00:31:01 +00:00

18 lines
337 B
ArmAsm

// RUN: llvm-mc -triple x86_64-unknown-linux-gnu -filetype obj -main-file-name foo.S -g -o %t %s
// RUN: llvm-dwarfdump %t | FileCheck %s
// CHECK: DW_TAG_compile_unit [1]
// CHECK-NOT: DW_TAG_
// CHECK: DW_AT_name [DW_FORM_string] ("foo.S")
# 1 "foo.S"
# 1 "<built-in>" 1
# 1 "foo.S" 2
foo:
nop
nop
nop