summaryrefslogtreecommitdiff
path: root/test/Bitcode/drop-debug-info.3.5.ll.bc
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-25 01:10:03 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-25 01:10:03 +0000
commitaaff953db4f72876e481e16e352c7488b5643fb4 (patch)
treed9653adce570ee39c269e8dceb3914869d52c3c6 /test/Bitcode/drop-debug-info.3.5.ll.bc
parent6606ad944bb4e88fc41dca522c02f8f8d54aab2d (diff)
llvm-dis: Stop crashing when dropping debug info
Since r199356, we've printed a warning when dropping debug info. r225562 started crashing on that, since it registered a diagnostic handler that only expected errors. This fixes the handler to expect other severities. As a side effect, it now prints "error: " at the start of error messages, similar to `llvm-as`. There was a testcase for r199356, but it only really checked the assembler. Move `test/Bitcode/drop-debug-info.ll` to `test/Assembler`, and introduce `test/Bitcode/drop-debug-info.3.5.ll` (and companion `.bc`) to test the bitcode reader. Note: tools/gold/gold-plugin.cpp has an equivalent bug, but I'm not sure what the best fix is there. I'll file a PR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode/drop-debug-info.3.5.ll.bc')
-rw-r--r--test/Bitcode/drop-debug-info.3.5.ll.bcbin0 -> 1264 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/test/Bitcode/drop-debug-info.3.5.ll.bc b/test/Bitcode/drop-debug-info.3.5.ll.bc
new file mode 100644
index 00000000000..c40198999b2
--- /dev/null
+++ b/test/Bitcode/drop-debug-info.3.5.ll.bc
Binary files differ