git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352541
91177308-0d34-0410-b5e6-
96231b3b80d8
eatToEndOfStatement();
}
+ // Make sure we get proper DWARF even for empty files.
+ (void)enabledGenDwarfForAssembly();
+
getTargetParser().onEndOfFile();
printPendingErrors();
--- /dev/null
+ # RUN: llvm-mc -triple i386-linux-gnu -g -dwarf-version 4 < %s | FileCheck %s
+ # RUN: llvm-mc -triple i386-linux-gnu -g -dwarf-version 5 < %s | FileCheck %s
+ # CHECK: .section .debug_info
+ # CHECK: .section .debug_info
+ # CHECK-NOT: .section
+ # CHECK: .ascii "<stdin>"