Daniel Jasper
7b5773e9c7
Avoid confusing identations for multi-parameter functions.
...
Before:
aaaaaaaa(aaaaaaaaa(
aaaaaaaaaa(),
aaaaaaaaa);
After:
aaaaaaaa(aaaaaaaaa(
aaaaaaaaaa(),
aaaaaaaaa);
llvm-svn: 173673
2013-01-28 07:35:34 +00:00
Nadav Rotem
f0705254d1
A bugfix for tblgen, in the function ‘emitSourceFileHeader’.
...
When the first parameter (‘Desc’) is more than 80 characters long, it will result the header line that contains the description to be more
Than (4GB!) long. Not only it takes forever to produce, the output file cannot be open, since its ginormous.
Patch by Elior Malul.
llvm-svn: 173672
2013-01-28 07:35:33 +00:00
Kostya Serebryany
6c17547ef1
[asan] two more internal flags for asan-rt: print_stats (0) and print_legend (1)
...
llvm-svn: 173671
2013-01-28 07:34:22 +00:00
Alexey Samsonov
2cbcf1a320
Print warning instead of error if optional ASan features are enabled w/o specifying -fsanitize=address
...
llvm-svn: 173670
2013-01-28 07:20:44 +00:00
Craig Topper
71d99ffe4a
Add missing break in 256-bit palignr comment printing. No test case yet because the comment itself is still wrong.
...
llvm-svn: 173669
2013-01-28 07:19:11 +00:00
Alexey Samsonov
5311754b62
[CMake] Fix compiler-rt tests after r173617
...
llvm-svn: 173668
2013-01-28 07:16:22 +00:00
Craig Topper
8fb09f0abb
Fix inconsistent usage of PALIGN and PALIGNR when referring to the same instruction.
...
llvm-svn: 173667
2013-01-28 06:48:25 +00:00
Michael Gottesman
5ed40afe17
Created ObjCARCUtil.cpp for functions which in my humble opinion are too large to static inline and place in a header file such as ObjCARC.h.
...
llvm-svn: 173666
2013-01-28 06:39:31 +00:00
Michael J. Spencer
d269a3e281
[ELF] Use correct regex in test.
...
llvm-svn: 173665
2013-01-28 06:11:39 +00:00
Craig Topper
b3ede5e3b1
Remove addToNoHelperNeeded function that was left unused after r173649. Fixes a -Wunused warning.
...
llvm-svn: 173664
2013-01-28 06:09:24 +00:00
Michael Gottesman
9bfcf28d88
Cleaned up includes in various ObjCARC files and removed some whitespace violations.
...
llvm-svn: 173663
2013-01-28 05:51:58 +00:00
Michael Gottesman
294e7daaac
Refactor ObjCARCAliasAnalysis into its own file.
...
llvm-svn: 173662
2013-01-28 05:51:54 +00:00
Bill Wendling
892711b0db
Mid-air collision. reapply r173656.
...
llvm-svn: 173661
2013-01-28 05:51:40 +00:00
Bill Wendling
8e31efdbbf
Rewrite the removeAttr() method.
...
This now uses the AttributeSet object instead of the Attribute /
AttributeWithIndex objects. It's fairly simple now. It goes through all of the
subsets before the one we're modifying, adds them to the new set. It then adds
the modified subset (with the requested attributes removed). And then adds the
rest of the subsets.
llvm-svn: 173660
2013-01-28 05:44:14 +00:00
Bill Wendling
1aa9d9e260
Rewrite the addAttr() method.
...
This now uses the AttributeSet object instead of the Attribute /
AttributeWithIndex objects. It's fairly simple now. It goes through all of the
subsets before the one we're modifying, adds them to the new set. It then adds
the modified subset. And then adds the rest of the subsets.
llvm-svn: 173659
2013-01-28 05:23:28 +00:00
Hal Finkel
1d3e3d70ad
Fix a typo in the name of a tooling unit test
...
llvm-svn: 173658
2013-01-28 04:37:38 +00:00
Hal Finkel
2109f23000
Fix the indentation of the first line of preprocessor output
...
The -E output from clang did not produce the correct indentation on the first line.
This is because MoveToLine returned false, and when this happens,
the regular process for producing initial indentation is skipped.
Thanks to Eli for suggesting a way to simplify this to a one-line change.
llvm-svn: 173657
2013-01-28 04:37:37 +00:00
NAKAMURA Takumi
55ec92004f
Revert r173646, "Use proper type for the index."
...
Unfortunately, msvc miscompiles it. Investigating.
llvm-svn: 173656
2013-01-28 04:29:01 +00:00
Michael J. Spencer
990ec2b223
[ELF] Use entry point from LinkerOptions.
...
Patch by Ahmed Bougacha!
llvm-svn: 173655
2013-01-28 04:15:44 +00:00
Michael Gottesman
fa0939f790
Refactored out pass ObjCARCAPElim from ObjCARCOpts.cpp => ObjCARCAPElim.cpp.
...
llvm-svn: 173654
2013-01-28 04:12:07 +00:00
Michael Gottesman
283e079fa6
Fixed case insensitive issue.
...
llvm-svn: 173653
2013-01-28 03:35:20 +00:00
Michael Gottesman
0d90b12acc
Removed extraneous doxygen end module statement.
...
llvm-svn: 173652
2013-01-28 03:30:34 +00:00
Michael Gottesman
08904e3ba4
Extracted pass ObjCARCExpand from ObjCARC.cpp => ObjCARCExpand.cpp.
...
I also added the local header ObjCARC.h for common functions used by the
various passes.
llvm-svn: 173651
2013-01-28 03:28:38 +00:00
Edwin Vane
1290640392
Improved svn repo searching for 'make update'
...
Use a simple recursive bash function to search for svn repos for the 'make
update' target thus including projects like clang-tools-extra.
Reviewers: bkramer, echristo
llvm-svn: 173650
2013-01-28 03:19:57 +00:00
Reed Kotler
97f8e2fa8f
Make some code a little simpler.
...
llvm-svn: 173649
2013-01-28 02:46:49 +00:00
Michael Gottesman
90cae77322
Since ObjCARC has been refactored into its own library with its own declaration header, we need to include the declaration header alongside Scalar.h in BackendUtil.
...
llvm-svn: 173648
2013-01-28 01:36:00 +00:00
Michael Gottesman
79d8d81226
Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer.
...
llvm-svn: 173647
2013-01-28 01:35:51 +00:00
Bill Wendling
63ab99829a
Use proper type for the index.
...
llvm-svn: 173646
2013-01-28 01:30:29 +00:00
Richard Smith
cc7e882701
Tests and a minor bugfix for [dcl.attr.depend]p1 (C++11 [[carries_dependency]]
...
attribute).
llvm-svn: 173645
2013-01-28 01:15:38 +00:00
Bill Wendling
2b173121fe
Remove another use of AttributeWithIndex, using the AttributeSetImpl accessors instead.
...
llvm-svn: 173644
2013-01-28 01:11:42 +00:00
Richard Smith
254d2666e4
Add a -pedantic warning: an anonymous union within an anonymous union is not
...
permitted in standard C++, despite being silently accepted by many (all?) major
C++ implementations.
llvm-svn: 173643
2013-01-28 00:54:05 +00:00
Bill Wendling
73fe152cd8
Remove another use of AttributeWithIndex, using the AttributeSetImpl accessors instead.
...
llvm-svn: 173642
2013-01-28 00:46:02 +00:00
Bill Wendling
9eb689cf1c
Remove a use of AttributeWithIndex.
...
We want to remove AttributeWithIndex because it provides a non-encapsulated view
of the AttributeSetImpl object. Instead, use accessor methods and iterators.
Eventually, this code can be simplified because the Attribute object will hold
only one attribute instead of multiple attributes.
llvm-svn: 173641
2013-01-28 00:21:34 +00:00
Bill Wendling
ad6217c76f
Improve the debug output a bit.
...
llvm-svn: 173640
2013-01-27 23:53:56 +00:00
Bill Wendling
3217eb652b
Use proper return type for attribute index.
...
llvm-svn: 173639
2013-01-27 23:50:44 +00:00
Bill Wendling
dbbe7fe865
Use proper return type for attribute index.
...
llvm-svn: 173638
2013-01-27 23:49:44 +00:00
Bill Wendling
1f786a7371
Push the calculation of the 'Raw' attribute mask down into the implementation. It in turn uses the correct list for calculating the 'Raw' value.
...
llvm-svn: 173637
2013-01-27 23:41:29 +00:00
Bill Wendling
71ead26439
Don't erase these methods. They're used during testing.
...
llvm-svn: 173636
2013-01-27 22:46:17 +00:00
Bill Wendling
4bbe9db48f
Add special 'get' methods to create an Attribute with an alignment. Also do some random cleanup. No functionality change.
...
llvm-svn: 173635
2013-01-27 22:43:04 +00:00
Richard Osborne
038d24f90c
[XCore] Add missing l2rus instructions.
...
These instructions are not targeted by the compiler but they are
needed for the MC layer.
llvm-svn: 173634
2013-01-27 22:28:30 +00:00
Dmitri Gribenko
4b9e70766b
Comment parsing: fix test in r173626 for -fms-extensions -fms-compatibility
...
llvm-svn: 173633
2013-01-27 22:11:38 +00:00
Bill Wendling
97b4f70b2e
Privitize some the copy c'tor and assignment operator of uniquified objects.
...
llvm-svn: 173632
2013-01-27 21:38:03 +00:00
Bill Wendling
5c8b2dff4d
Add some helpful comments.
...
llvm-svn: 173631
2013-01-27 21:32:11 +00:00
Dmitri Gribenko
6835e37cec
Decl printer: fix CXXConstructExpr with implicit default argument
...
Patch by Will Wilson.
llvm-svn: 173630
2013-01-27 21:28:24 +00:00
Richard Osborne
f2ecd40929
[XCore] Add missing l2r instructions.
...
These instructions are not targeted by the compiler but they are
needed for the MC layer.
llvm-svn: 173629
2013-01-27 21:26:02 +00:00
Bill Wendling
56b0b2a8e4
s/AttrList/pImpl/g in AttributeSet. No functionality change.
...
llvm-svn: 173628
2013-01-27 21:23:46 +00:00
Bill Wendling
72223f2959
Start using more of the AttrNode in the AttributeSetImpl class.
...
Also add some asserts.
llvm-svn: 173627
2013-01-27 21:20:06 +00:00
Dmitri Gribenko
01b065117b
Comment parsing: attach any tag type's documentation to its typedef if latter
...
does not have one of its own. // rdar://13067629
Original patch (r173586 and r173587) by Fariborz Jahanian, modified by me.
llvm-svn: 173626
2013-01-27 21:18:39 +00:00
Benjamin Kramer
cf9dae17b7
Legalizer: Reword comment again, per Duncan's suggestion.
...
llvm-svn: 173625
2013-01-27 21:02:52 +00:00
Richard Osborne
7fe8f63544
[XCore] Add missing 1r instructions.
...
These instructions are not targeted by the compiler but they are
needed for the MC layer.
llvm-svn: 173624
2013-01-27 20:46:21 +00:00