summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* stop claiming unicode escape sequences are too long in strings, because they ↵Seth Cantrell2012-01-181-2/+0
| | | | | | never are llvm-svn: 148391
* Fix char literal types in CSeth Cantrell2012-01-181-8/+6
| | | | | | | | L'x' is actually wchar_t support C11 u and U char literals llvm-svn: 148390
* Improves support for Unicode in character literalsSeth Cantrell2012-01-182-66/+121
| | | | | | | | | | | | | | | | | | | | Updates ProcessUCNExcape() for C++. C++11 allows UCNs in character and string literals that represent control characters and basic source characters. Also C++03 allows UCNs that refer to surrogate codepoints. UTF-8 sequences in character literals are now handled as single c-chars. Added error for multiple characters in Unicode character literals. Added errors for when a the execution charset encoding of a c-char cannot be represented as a single code unit in the associated character type. Note that for the purposes of this error the asso- ciated character type for a narrow character literal is char, not int, even though in C narrow character literals have type int. llvm-svn: 148389
* test svn commit accessSeth Cantrell2012-01-181-0/+1
| | | | llvm-svn: 148388
* Follow-up for r148386: deleted compiler-rt/lib/asan/sysinfoAlexander Potapenko2012-01-180-0/+0
| | | | llvm-svn: 148387
* Delete sysinfo/* and all references to it.Alexander Potapenko2012-01-1810-1335/+7
| | | | llvm-svn: 148386
* Implement AsanProcMaps for Mac OS. The code from sysinfo/ is not needed ↵Alexander Potapenko2012-01-184-14/+114
| | | | | | anymore and should be cleaned up. llvm-svn: 148385
* Remove dead code.Bill Wendling2012-01-181-45/+0
| | | | llvm-svn: 148384
* Fix a bug in the type-legalization of vector integers. When we bitcast one ↵Nadav Rotem2012-01-182-2/+18
| | | | | | vector type to another, we must not bitcast the result if one type is widened while the other is promoted. llvm-svn: 148383
* Convert DiagnoseEmptyLookup to use correction callbacks.Kaelyn Uhrain2012-01-184-7/+13
| | | | | | | | | | | | No new unit tests yet as there is no behavioral change (except for slightly more specific filtering in Sema::ActOnStartOfLambdaDefinition). Tests will be added as the code paths are traced in greater depth to determine how to improve the results--there are at least one or two known bugs that require those improvements. This commit lays the groundwork for those changes. llvm-svn: 148382
* Move narrowing conversion detection code from SemaInit to SemaOverload, readyRichard Smith2012-01-187-210/+326
| | | | | | | | | | | | | for it to be used in converted constant expression checking, and fix a couple of issues: - Conversion operators implicitly invoked prior to the narrowing conversion were not being correctly handled when determining whether a constant value was narrowed. - For conversions from floating-point to integral types, the diagnostic text incorrectly always claimed that the source expression was not a constant expression. llvm-svn: 148381
* Bump version number past lldb-107.Jason Molenda2012-01-182-16/+16
| | | | llvm-svn: 148380
* Add a '-X excluded-dir' option to the test driver to exclude a directory ↵Johnny Chen2012-01-181-0/+18
| | | | | | | | | | from consideration during test discovery. For example: ./dotest.py -X types -v from the test dir will ignore test cases under test/types. llvm-svn: 148379
* Add testcase for r148375!Nick Lewycky2012-01-182-0/+19
| | | | llvm-svn: 148378
* Fix ISD::REG_SEQUENCE to accept physical registers and change ↵Pete Cooper2012-01-182-16/+24
| | | | | | TwoAddressInstructionPass to insert copies for any physical reg operands of the REG_SEQUENCE llvm-svn: 148377
* Make PotentiallyPotentiallyEvaluated contexts work correctly when ↵Eli Friedman2012-01-182-15/+52
| | | | | | referencing a class field from outside an instance method. llvm-svn: 148376
* Fix a string over-run detected by ASAN.Nick Lewycky2012-01-181-2/+3
| | | | llvm-svn: 148375
* A call to strlen is not a constant expression, even if we're treating it as aRichard Smith2012-01-182-1/+23
| | | | | | builtin. llvm-svn: 148374
* The value of a case statement is a potentially evaluated context. Found by ↵Eli Friedman2012-01-182-2/+8
| | | | | | inspection. llvm-svn: 148373
* [analyzer] Refactor: prePropagateTaint ->Anna Zaks2012-01-181-43/+27
| | | | | | | | | TaintPropagationRule::process(). Also remove the "should be a pointer argument" warning - should be handled elsewhere. llvm-svn: 148372
* [analyzer] Taint: warn when tainted data is used to specify a bufferAnna Zaks2012-01-182-4/+84
| | | | | | | | | | size (Ex: in malloc, memcpy, strncpy..) (Maybe some of this could migrate to the CString checker. One issue with that is that we might want to separate security issues from regular API misuse.) llvm-svn: 148371
* [analyzer] Taint: add taint propagation rules for string and memory copyAnna Zaks2012-01-184-58/+177
| | | | | | functions. llvm-svn: 148370
* Constify FunctionDecl::getmemoryFunctionKind().Anna Zaks2012-01-182-2/+2
| | | | llvm-svn: 148369
* Fix special king of typo.Nick Lewycky2012-01-181-1/+1
| | | | llvm-svn: 148368
* Fix a couple issues where we didn't correctly delay diagnostics in ↵Eli Friedman2012-01-185-25/+136
| | | | | | PotentiallyPotentiallyEvaluated contexts. In preparation for making sizeof() PotentiallyPotentiallyEvaluated. llvm-svn: 148367
* Thumb2 load/store fixups don't set the thumb bit.Jim Grosbach2012-01-181-4/+8
| | | | | | | | | | Load/store instructions w/ a fixup to be relative a function marked as thumb don't use the low bit to specify thumb vs. non-thumb like interworking branches do, so don't set it when dealing with those fixups. rdar://10348687. llvm-svn: 148366
* Create target installhdrs as a synonym for do-installhdrs.Howard Hinnant2012-01-181-0/+2
| | | | llvm-svn: 148365
* Move some ARM specific MCAssmebler bits into the ARMAsmBackend.Jim Grosbach2012-01-183-9/+27
| | | | llvm-svn: 148364
* Add a CoveredBySubRegs property to Register descriptions.Jakob Stoklund Olesen2012-01-188-14/+53
| | | | | | | | | | | | | | | | When set, this bit indicates that a register is completely defined by the value of its sub-registers. Use the CoveredBySubRegs property to infer which super-registers are call-preserved given a list of callee-saved registers. For example, the ARM registers D8-D15 are callee-saved. This now automatically implies that Q4-Q7 are call-preserved. Conversely, Win64 callees save XMM6-XMM15, but the corresponding YMM6-YMM15 registers are not call-preserved because they are not fully defined by their sub-registers. llvm-svn: 148363
* [lit] Add a --filter option which is useful when dealing with virtual testDaniel Dunbar2012-01-181-0/+18
| | | | | | paths. llvm-svn: 148362
* output body of folded case again.Fariborz Jahanian2012-01-172-2/+4
| | | | llvm-svn: 148361
* Remove unneeded include.Jakub Staszak2012-01-171-1/+0
| | | | llvm-svn: 148360
* Folding away unreachable case statement.Fariborz Jahanian2012-01-172-7/+36
| | | | | | patch (slightly revised) by Aaron Ballman. llvm-svn: 148359
* Make sure to initialize ExternalProtocolPtrTyDouglas Gregor2012-01-171-1/+2
| | | | llvm-svn: 148358
* Implement ARMBaseRegisterInfo::getCallPreservedMask().Jakob Stoklund Olesen2012-01-173-19/+17
| | | | | | Move ARM callee-saved lists into ARMCallingConv.td. llvm-svn: 148357
* Fix MCJIT memory leak of owned TargetMachine.Jim Grosbach2012-01-171-0/+1
| | | | | | | The JIT is expected to take ownership of the TM that's passed in. The MCJIT wasn't freeing it, resulting in leaks. llvm-svn: 148356
* objc-arc: when 'assign' attribute is unspecified,Fariborz Jahanian2012-01-172-4/+43
| | | | | | | | rely on property's type for its life-time to avoid bogus warning with -Warc-unsafe-retained-assign. // rdar://10694932 llvm-svn: 148355
* Add Sema::isInitListConstructor. This will be needed for upcoming work.Sebastian Redl2012-01-172-0/+21
| | | | llvm-svn: 148354
* Auto deduction support for std::initializer_list, including for-range ↵Sebastian Redl2012-01-178-25/+107
| | | | | | | | support. This means you can now write: for (int i : {1, 4, 512, 23, 251}) {} llvm-svn: 148353
* Template argument deduction for std::initializer_list arguments from ↵Sebastian Redl2012-01-173-23/+94
| | | | | | initializer lists. llvm-svn: 148352
* Rename the first of 11 DeduceTemplateArguments overloads.Sebastian Redl2012-01-171-114/+117
| | | | | | | | | | | | | | | There are 5 functions of this name in Sema, and 6 more static helpers in SemaTemplateDeduction.cpp. The Sema functions have jobs like "deduce for function call", "deduce for taking the address", etc. The static helpers have jobs like "deduce by comparing two types", "deduce by comparing two lists of types", "deduce by comparing two template arguments", etc. The fact that they all are called the same and only differ in two of their 6 or more arguments makes the code using them very hard to read. Here I rename the one function that concerns me most at the moment, but as a matter of cleanup, the others will eventually be renamed as well. llvm-svn: 148351
* Basic overloading support for std::initializer_list.Sebastian Redl2012-01-172-3/+58
| | | | llvm-svn: 148350
* Sema support for initialization of std::initializer_list from initializer lists.Sebastian Redl2012-01-175-10/+181
| | | | | | This does not yet support CodeGen. llvm-svn: 148349
* Add Sema::isStdInitializerList, which will be necessary for the upcoming ↵Sebastian Redl2012-01-173-1/+62
| | | | | | operations. llvm-svn: 148348
* Move X86 callee saved register lists to the X86CallConv .td file.Jakob Stoklund Olesen2012-01-173-37/+37
| | | | | | Add a trivial implementation of the getCallPreservedMask() hook. llvm-svn: 148347
* Add TableGen support for callee saved registers.Jakob Stoklund Olesen2012-01-174-0/+67
| | | | | | | | | Targets can now add CalleeSavedRegs defs to their *CallingConv.td file. TableGen will use this to create a *_SaveList array suitable for returning from getCalleeSavedRegs() as well as a *_RegMask bit mask suitable for returning from getCallPreservedMask(). llvm-svn: 148346
* fix for PR11655Anton Yartsev2012-01-171-0/+3
| | | | | | changes i64 alignment from 64 to 32 for powerpc-darwin llvm-svn: 148345
* Test case renameAndrew Trick2012-01-171-0/+0
| | | | llvm-svn: 148344
* Disable -Wduplicate-method-match by default. <rdar://problem/10663536>Bob Wilson2012-01-174-4/+4
| | | | llvm-svn: 148343
* Move includes to the .cpp file.Jakub Staszak2012-01-172-2/+2
| | | | llvm-svn: 148342
OpenPOWER on IntegriCloud