The error check for using -g with a .s file already containing dwarf .file
authorKevin Enderby <enderby@apple.com>
Wed, 11 Jan 2012 18:04:47 +0000 (18:04 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 11 Jan 2012 18:04:47 +0000 (18:04 +0000)
commit8704b7897db5d877970bde2c8d6766488c457b90
tree81e81f6dbcd74fa2459ac7a212c531b1191343ab
parent46df3adb4e12e7f607a5bd21335311604834ba7e
The error check for using -g with a .s file already containing dwarf .file
directives was in the wrong place and getting triggered incorectly with a
cpp .file directive.  This change fixes that and adds a test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147951 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/directive_file-errors.s [new file with mode: 0644]