David Blaikie
6316ca45a7
DIEHash: Use DW_FORM_sdata for integers, per spec.
...
This allows us to produce the same hash as GCC for at least some simple
examples.
llvm-svn: 192855
2013-10-16 23:36:20 +00:00
David Blaikie
d398ac561f
Invert arguments to ASSERT_EQ to match gtest diagnostic printing
...
GTest assumes the left hand side of the assert is the expectation and
the right hand side is the test result. It's easier to read gtest
failures when these things are ordered correctly.
llvm-svn: 192854
2013-10-16 22:43:10 +00:00
David Blaikie
71a0ad66a9
DIEHash: Include the trailing zero byte after the children of a DIE
...
llvm-svn: 192836
2013-10-16 20:29:06 +00:00
David Blaikie
5980419379
Use ASSERT_EQ rather than ASSERT_TRUE for better unit test failures.
...
Also minor using namespace move so it's not hard-up against the function
definition and outside the namespace as is usual.
llvm-svn: 192744
2013-10-15 23:00:17 +00:00
Benjamin Kramer
0f01d4e309
Plug a memory leak in a unit test. Stack allocation is sufficient here.
...
llvm-svn: 191638
2013-09-29 11:29:20 +00:00
Eric Christopher
a923e7b78d
It's a very large constant. Say so.
...
llvm-svn: 189899
2013-09-04 00:58:10 +00:00
Eric Christopher
25b7adc8ce
Add a hashing routine that handles hashing types. Add a test for
...
hashing the contents of DW_FORM_data1 on top of a type with attributes.
llvm-svn: 189862
2013-09-03 21:57:57 +00:00