summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Local static block variable referecned in itsFariborz Jahanian2010-09-073-5/+62
| | | | | | | | block-literal initializer expression causes IRgen to crash. This patch fixes by saving it in StaticLocalDecl map already used for such purposes. (radar 8390455). llvm-svn: 113307
* tests: Use -ffreestanding when including stdint.h, to avoid platform ↵Daniel Dunbar2010-09-078-11/+11
| | | | | | dependencies. llvm-svn: 113301
* Fix DeclPrinter to not include '=' in printing when no initializer is ↵Ted Kremenek2010-09-071-3/+3
| | | | | | provided for a VarDecl. Patch by Jim Goodnow II! llvm-svn: 113296
* typoGabor Greif2010-09-071-1/+1
| | | | llvm-svn: 113295
* Improve source-location information for CXXNewExpr, by hanging on toDouglas Gregor2010-09-0710-36/+86
| | | | | | the TypeSourceInfo for the allocated type. Fixes PR7501. llvm-svn: 113291
* Fix null pointer dereference in StreamChecker::Fseek (reported in PR 8081) ↵Ted Kremenek2010-09-072-17/+18
| | | | | | and simplify surrounding checking logic. llvm-svn: 113282
* Re-enabled truncation/extension checking in IdempotentOperationChecker and ↵Tom Care2010-09-072-6/+12
| | | | | | added a test case. llvm-svn: 113269
* Add function attributes to the output of -ast-print-xml, from Martin Vejnar!Douglas Gregor2010-09-072-0/+11
| | | | llvm-svn: 113266
* get rid of a warning.Fariborz Jahanian2010-09-071-3/+3
| | | | llvm-svn: 113256
* Have Sema check for validity of CGString literalFariborz Jahanian2010-09-075-17/+22
| | | | | | instead of asserting in IRGen. Fixes radar 8390459. llvm-svn: 113253
* Allow 'o' and 'V' as constraints for output asm operands.Dale Johannesen2010-09-071-3/+9
| | | | | | Allow '<' and '>' as constraints for input or output. llvm-svn: 113246
* Improve error recovery when we see ':' and expect a ';'.John McCall2010-09-073-1/+27
| | | | | | I, at least, make this typo all the time. llvm-svn: 113243
* Adjust a test that's expecting optimizations to be doneDale Johannesen2010-09-071-3/+3
| | | | | | on MMX palignr; we don't do this for the intrinsics. llvm-svn: 113234
* Driver/Darwin: Catch another case where ld ends up using ld_classic.Daniel Dunbar2010-09-071-0/+10
| | | | llvm-svn: 113226
* Driver/Darwin: Don't pass -demangle to the linker when we know it is going toDaniel Dunbar2010-09-071-1/+7
| | | | | | | use ld_classic. This is a temporary workaround, the linkr itself should handle this. llvm-svn: 113212
* Provide a specific diagnostic when trying to redefine an "externDouglas Gregor2010-09-073-1/+13
| | | | | | | inline" function outside of GNU89 mode. Fixes <rdar://problem/6880464>. llvm-svn: 113204
* Improve recovery when there is a stray ']' or ')' before the ';' atDouglas Gregor2010-09-077-20/+53
| | | | | | the end of a statement. Fixes <rdar://problem/6896493>. llvm-svn: 113202
* Improve recovery when a comma is missing between enumerators in anDouglas Gregor2010-09-074-5/+22
| | | | | | enumeration definition. Fixes <rdar://problem/7159693>. llvm-svn: 113201
* Improve diagnostic and recovery when missing a comma between base orDouglas Gregor2010-09-073-0/+18
| | | | | | member initializers in a C++ constructor. Fixes <rdar://problem/7796492>. llvm-svn: 113199
* Replace loops with SmallVector::append.Benjamin Kramer2010-09-062-6/+3
| | | | llvm-svn: 113185
* Due to asmparser improvements, this error message is now betterChris Lattner2010-09-061-1/+1
| | | | llvm-svn: 113177
* Fix a C++ PCH problem which was exposed by r113019. ↵Argyrios Kyrtzidis2010-09-063-0/+14
| | | | | | CXXBaseOrMemberInitializer's IsWritten and source order is not set. llvm-svn: 113161
* remove curly quotes, patch by Dimitry Andric!Chris Lattner2010-09-063-5/+5
| | | | llvm-svn: 113156
* LastFieldBitfield in CGObjCCommonMac::BuildAggrIvarLayout keeps bitfields or ↵Argyrios Kyrtzidis2010-09-062-15/+39
| | | | | | | | unnamed fields but later the code assumes that it's always a bitfield. This can lead to a crash (reported at rdar://8368320). llvm-svn: 113154
* FinishBlock() is essentially doing nothing except returning '!badCFG'.Zhongxing Xu2010-09-061-55/+42
| | | | llvm-svn: 113149
* Simplify CFG construction: bail out early when we have a bad CFG.Zhongxing Xu2010-09-061-36/+32
| | | | llvm-svn: 113148
* Make "-ccc-cxx" option work on Linux.Rafael Espindola2010-09-064-7/+12
| | | | | | | | | Patch by nobled. I also took the opportunity to make the field private since now it is only ready from the outside. llvm-svn: 113138
* Get rid of unnecessary return.Eli Friedman2010-09-061-1/+0
| | | | llvm-svn: 113132
* Update test for r113128.Eli Friedman2010-09-061-1/+1
| | | | llvm-svn: 113131
* move the hackaround for PR6537 to catch unions as well,Chris Lattner2010-09-062-16/+35
| | | | | | fixing the ICE in PR7151 llvm-svn: 113130
* clean up some formatting.Chris Lattner2010-09-062-16/+15
| | | | llvm-svn: 113129
* PR7242: Make sure to use a different context for evaluating constantEli Friedman2010-09-062-1/+13
| | | | | | | | initializers, so the result of the evaluation doesn't leak through inconsistently. Also, don't evaluate references to variables with initializers with side-effects. llvm-svn: 113128
* fix PR7192 by defining wchar_t in a more conventional way. TheChris Lattner2010-09-052-1/+7
| | | | | | type of L"x" can change based on command line arguments. llvm-svn: 113127
* Tell the VS headers that char16_t and char32_t are keywords, so yvals.h ↵Steven Watanabe2010-09-051-0/+4
| | | | | | doesn't try to define them as typedefs. llvm-svn: 113126
* fix 7320: we can't delete a trailing space if it doesn't exist.Chris Lattner2010-09-051-1/+3
| | | | llvm-svn: 113125
* PR8023: Don't crash on invalid uses of __real__ on class types in C++.Eli Friedman2010-09-052-1/+7
| | | | llvm-svn: 113124
* No functional change. Replace Out << 'a' << 'b' with Out << "ab" and spellNick Lewycky2010-09-051-3/+3
| | | | | | David Vandevoorde's name correctly. llvm-svn: 113103
* "const id<NSFoo> *" instead of "id<NSFoo> const *".Chris Lattner2010-09-053-11/+13
| | | | | | I think this wraps up all the legal cases. llvm-svn: 113096
* "const id<NSFoo> *" not "id<NSFoo> const*"Chris Lattner2010-09-051-1/+3
| | | | llvm-svn: 113095
* "const std::vector<int>*" not "std::vector<int> const*"Chris Lattner2010-09-053-3/+3
| | | | llvm-svn: 113094
* "const _Complex float *" not "_Complex float const *"Chris Lattner2010-09-051-1/+2
| | | | llvm-svn: 113093
* 'const std::type_info*' instead of 'std::type_info const*'Chris Lattner2010-09-0521-47/+47
| | | | llvm-svn: 113092
* print "const intptr_t" instead of "intptr_t const"Chris Lattner2010-09-054-4/+5
| | | | llvm-svn: 113091
* make clang print types as "const int *" instead of "int const*",Chris Lattner2010-09-0545-69/+89
| | | | | | | which is should have done from the beginning. As usual, the most fun with this sort of change is updating all the testcases. llvm-svn: 113090
* revert this, it isn't safe.Chris Lattner2010-09-041-1/+2
| | | | llvm-svn: 113088
* tidy upChris Lattner2010-09-042-3/+2
| | | | llvm-svn: 113087
* revise r112365 to fix the actual problem: the isa<TagType>(Underlying)Chris Lattner2010-09-041-15/+12
| | | | | | | check in the "typedef for anonymous type" check should have been a getAs. llvm-svn: 113085
* Casting of a property reference to 'void' did notFariborz Jahanian2010-09-042-2/+25
| | | | | | | generate the necessary code. This patch fixes it. // rdar://8389655 llvm-svn: 113079
* zap more dead code.Chris Lattner2010-09-042-7/+4
| | | | llvm-svn: 113076
* zap dead code.Chris Lattner2010-09-042-8/+2
| | | | llvm-svn: 113074
OpenPOWER on IntegriCloud