Eric Christopher
b3e4c78741
Revert "Use the 'count' attribute instead of the 'upper_bound' attribute."
...
temporarily as it is breaking the gdb bots.
This reverts commit r167806/e7ff4c14b157746b3e0228d2dce9f70712d1c126.
llvm-svn: 167886
2012-11-13 23:30:43 +00:00
Bill Wendling
ab44d906b6
Use the 'count' attribute instead of the 'upper_bound' attribute.
...
If we have a type 'int a[1]' and a type 'int b[0]', the generated DWARF is the
same for both of them because we use the 'upper_bound' attribute. Instead use
the 'count' attrbute, which gives the correct number of elements in the array.
<rdar://problem/12566646>
llvm-svn: 167806
2012-11-13 02:31:47 +00:00
David Blaikie
b050e5ef7b
Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs.
...
llvm-svn: 167334
2012-11-02 23:33:23 +00:00
Eli Friedman
cf7d009911
Make sure to generate the right kind of MDNode for enum forward declarations.
...
PR14029, LLVM part.
llvm-svn: 165288
2012-10-05 01:49:14 +00:00
Eric Christopher
853a000638
Recommit, with fixes:
...
Add some support for dealing with an object pointer on arguments.
Part of rdar://9797999
which now supports adding the object pointer attribute to the
subprogram as it should.
llvm-svn: 163754
2012-09-12 23:36:19 +00:00
Eric Christopher
e2dae503e6
Revert "Add some support for dealing with an object pointer on arguments."
...
This should be done on the subprogram, not the variable itself.
llvm-svn: 163734
2012-09-12 18:42:31 +00:00
Eric Christopher
9a8f37667b
Add some support for dealing with an object pointer on arguments.
...
Part of rdar://9797999
llvm-svn: 163667
2012-09-12 00:26:55 +00:00
Bill Wendling
fe7effd5c8
Remove trailing comma in array initialization list.
...
llvm-svn: 159843
2012-07-06 17:49:19 +00:00
Bill Wendling
094156a2b9
Remove unnecessary 'llvm::'.
...
llvm-svn: 159842
2012-07-06 17:47:36 +00:00
Eric Christopher
82c89ee6c9
Untabify and move a function near similar functions dealing with struct
...
types.
llvm-svn: 159801
2012-07-06 02:35:57 +00:00
Bill Wendling
74b96ac7b8
The DIBuilder class is just a wrapper around debug info creation
...
(a.k.a. MDNodes). The module doesn't belong in Analysis. Move it to the VMCore
instead.
llvm-svn: 159414
2012-06-29 08:32:07 +00:00