summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Apply the emulated nullptr_t with constexpr. This is an unusual ↵Howard Hinnant2012-09-241-11/+11
| | | | | | configuration that would take advantage of this. But it has popped up in the wild and does no harm to support it. llvm-svn: 164575
* Making sure we do not try to compare a NULL string - which would cause us to ↵Enrico Granata2012-09-241-3/+5
| | | | | | crash llvm-svn: 164574
* Added a new Xcode build configuration, DebugClang,Sean Callanan2012-09-242-1/+393
| | | | | | | | | | which builds a Debug+Asserts build of Clang and links LLDB against it. The Debug configuration builds Clang with Release+Asserts, for faster linking and smaller memory footprint when debugging the build LLDB. llvm-svn: 164573
* Removed some debugging cruft.Sean Callanan2012-09-241-3/+0
| | | | llvm-svn: 164572
* Mark jump tables in code sections with DataRegion directives.Jim Grosbach2012-09-243-0/+24
| | | | | | | | | Even out-of-line jump tables can be in the code section, so mark them as data-regions for those targets which support the directives. rdar://12362871&12362974 llvm-svn: 164571
* Typo.Chad Rosier2012-09-241-1/+1
| | | | llvm-svn: 164570
* Handle C++ functional casts in a similar way to C-style casts inEli Friedman2012-09-242-0/+13
| | | | | | unused expression warnings. <rdar://problem/12359208>. llvm-svn: 164569
* Update for r164567.Chad Rosier2012-09-241-2/+2
| | | | llvm-svn: 164568
* Rather then have a wrapper function, have tblgen instantiate the implementation.Chad Rosier2012-09-246-44/+7
| | | | | | Also remove an unused argument. llvm-svn: 164567
* objective-C: use 'instance variables' as plural when referringFariborz Jahanian2012-09-246-12/+12
| | | | | | to the feature. llvm-svn: 164566
* Clear UNIVERSAL_SDK_PATH setting when building host tools. <rdar://12360497>Bob Wilson2012-09-241-2/+4
| | | | | | | | | I also moved the SDKROOT setting into the make flags, since clearing it from the environment isn't good enough to override a setting on the make command line. That hasn't been a problem but it could be, and it's good to be consistent with the way UNIVERSAL_SDK_PATH is handled. llvm-svn: 164565
* Fix string comparisons in ABIMacOSX_i386::RegisterIsCalleeSaved soJason Molenda2012-09-241-4/+4
| | | | | | | | that volatile registers are correctly reported for this ABI. We were incorrectly passing up volatile registers from callee frames. llvm-svn: 164564
* Brought LLDB top-of-tree into sync with LLVM/ClangSean Callanan2012-09-2417-3621/+222
| | | | | | | | | | | | | top-of-tree. Removed all local patches and llvm.zip. The intent is that fron now on top-of-tree will always build against LLVM/Clang top-of-tree, and that problems building will be resolved as they occur. Stable release branches of LLDB can be constructed as needed and linked to specific release branches of LLVM/Clang. llvm-svn: 164563
* Teach DSE that strcpy, strncpy, strcat and strncat are all stores which may beNick Lewycky2012-09-242-32/+117
| | | | | | dead. llvm-svn: 164561
* Move all the calls to AA.getTargetLibraryInfo() to using a TLI member variable.Nick Lewycky2012-09-241-12/+11
| | | | | | No functionality change. llvm-svn: 164560
* objective-C: remove use of 'ivar' in favor ofFariborz Jahanian2012-09-2422-69/+69
| | | | | | | 'instance variable' in text of all diagnostics for objective-C: // rdar://12352442 llvm-svn: 164559
* Made TestHiddenIvars an expected failure withSean Callanan2012-09-241-0/+2
| | | | | | | "frame variable". "expr" finds hidden ivars correctly. llvm-svn: 164558
* Add clarifying comment.Ted Kremenek2012-09-241-0/+2
| | | | llvm-svn: 164557
* More tests for r164545 (change extension warning about 'long long').Dmitri Gribenko2012-09-241-0/+7
| | | | llvm-svn: 164556
* StringRef'ize Preprocessor::CreateString().Dmitri Gribenko2012-09-247-16/+13
| | | | llvm-svn: 164555
* Replace raw call to snprintf() by llvm streams.Dmitri Gribenko2012-09-241-21/+24
| | | | llvm-svn: 164554
* Specify MachinePointerInfo as refering to the argument value and offset of theRoman Divacky2012-09-242-3/+32
| | | | | | | store when handling byval arguments. Thus preventing reordering of the store with load with post-RA scheduler. llvm-svn: 164553
* Replace an assertion with an error for empty __asm statements.Bob Wilson2012-09-243-4/+18
| | | | llvm-svn: 164551
* Fix a comment typo and clean up formatting.Bob Wilson2012-09-241-4/+5
| | | | llvm-svn: 164550
* Make sure that we don't end up making an #undef'd macro visible afterDouglas Gregor2012-09-242-4/+11
| | | | | | | the fact. Test cases will come when we're actually (de-)serializing macro history. llvm-svn: 164549
* Rather then have a wrapper function, have tblgen instantiate the implementation.Chad Rosier2012-09-245-18/+2
| | | | llvm-svn: 164548
* [libclang] Bring CXCursor_AsmStmt back as an alias for CXCursor_GCCAsmStmt.Argyrios Kyrtzidis2012-09-241-0/+1
| | | | | | | This was renamed in r162632 which was badness because the C API needs to be stable. rdar://12360096 llvm-svn: 164547
* Include 'long long' extension warning in the LongLong group so that it can beDmitri Gribenko2012-09-242-3/+5
| | | | | | silenced by -Wno-long-long. Thanks Richard Smith for the fix idea! llvm-svn: 164546
* Change the wording of the extension warning fromDmitri Gribenko2012-09-249-26/+75
| | | | | | | | | > 'long long' is an extension when C99 mode is not enabled to > 'long long' is a C++11 extension while compiling in C++98 mode. llvm-svn: 164545
* Remove a couple of debugging printf's from the testsuite.Jim Ingham2012-09-241-2/+0
| | | | llvm-svn: 164544
* [analyzer] Really turn on dynamic-bifurcation on by default.Anna Zaks2012-09-242-3/+1
| | | | | | | Thanks to Byoungyoung for realizing taht we are not passing the default option correctly. llvm-svn: 164543
* [analyzer] Remove unused.Anna Zaks2012-09-241-1/+1
| | | | llvm-svn: 164542
* [analyzer]Prevent infinite recursion(assume->checker:evalAssume->assume)Anna Zaks2012-09-241-1/+3
| | | | | | (Unfortunately, I do not have a good reduced test case for this.) llvm-svn: 164541
* Add missing : in CHECK line.Richard Osborne2012-09-241-1/+1
| | | | llvm-svn: 164540
* Add missing check for presence of target data.Richard Osborne2012-09-242-20/+41
| | | | | | This avoids a crash in visitAllocaInst when target data isn't available. llvm-svn: 164539
* Updating email addressMarshall Clow2012-09-241-2/+1
| | | | llvm-svn: 164490
* Updating email addressMarshall Clow2012-09-241-1/+1
| | | | llvm-svn: 164489
* [TSan] one more attempt to fix sleep_sync test: call sleep in the spawned ↵Alexey Samsonov2012-09-241-7/+6
| | | | | | thread so that sleep-synchronization will be detected even if child thread is started late. llvm-svn: 164488
* [TSan] Provide replacements for operators new/delete instead of declaring ↵Alexey Samsonov2012-09-248-178/+181
| | | | | | extern C functions with weirdly mangled names (same strategy is used in ASan). llvm-svn: 164487
* [ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the ↵Alexey Samsonov2012-09-246-4/+19
| | | | | | same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state. llvm-svn: 164486
* Use an explicit target to test that source fortification is off when ↵Alexander Potapenko2012-09-241-2/+2
| | | | | | building for Darwin with -faddress-sanitizer. llvm-svn: 164485
* Small cleanup of literal semantic analysis: hiding 'char *' pointers behindDmitri Gribenko2012-09-244-24/+26
| | | | | | | StringRef makes code cleaner. Also, make the temporary buffer smaller: 512 characters is unreasonably large for integer literals. llvm-svn: 164484
* [TSan] increase sleep time in test to ensure correct event orderingAlexey Samsonov2012-09-241-2/+1
| | | | llvm-svn: 164483
* Update the Clang tests which run with a full optimization pipeline forChandler Carruth2012-09-241-2/+2
| | | | | | | the new SROA pass. This is a benign change: the order of PHI nodes changed. llvm-svn: 164481
* Enable the new SROA pass by default.Chandler Carruth2012-09-241-1/+1
| | | | | | Queue the fallout. ;] llvm-svn: 164480
* Address one of the original FIXMEs for the new SROA pass by implementingChandler Carruth2012-09-242-21/+161
| | | | | | | | | | | | | | | | integer promotion analogous to vector promotion. When there is an integer alloca being accessed both as its integer type and as a narrower integer type, promote the narrower access to "insert" and "extract" the smaller integer from the larger one, and make the integer alloca a candidate for promotion. In the new formulation, we don't care about target legal integer or use thresholds to control things. Instead, we only perform this promotion to an integer type which the frontend has already emitted a load or store for. This bounds the scope and prevents optimization passes from coalescing larger and larger entities into a single integer. llvm-svn: 164479
* unittests/AST/StmtPrinterTest.cpp: Suppress a LP64-assumed test, ↵NAKAMURA Takumi2012-09-241-2/+0
| | | | | | | | "0x100000000i128 => 4294967296L", for now. LONG_MAX is 2147483647L on common 32 bit and LLP64 (Windows x64). llvm-svn: 164478
* As a followup for r164303, add some tests for printing literals that testDmitri Gribenko2012-09-232-0/+175
| | | | | | printing directly rather than through a complicated machinery of ObjC rewriter. llvm-svn: 164477
* Emit dtors into proper section while compiling in vcpp-compatible mode.Anton Korobeynikov2012-09-232-12/+31
| | | | | | Patch by Kai! llvm-svn: 164476
* Switch to a signed representation for the dynamic offsets while walkingChandler Carruth2012-09-232-26/+133
| | | | | | | | | | | | | | | | | | | across the uses of the alloca. It's entirely possible for negative numbers to come up here, and in some rare cases simply doing the 2's complement arithmetic isn't the correct decision. Notably, we can't zext the index of the GEP. The definition of GEP is that these offsets are sign extended or truncated to the size of the pointer, and then wrapping 2's complement arithmetic used. This patch fixes an issue that comes up with *no* input from the buildbots or bootstrap afaict. The only place where it manifested, disturbingly, is Clang's own regression test suite. A reduced and targeted collection of tests are added to cope with this. Note that I've tried to pin down the potential cases of overflow, but may have missed some cases. I've tried to add a few cases to test this, but its hard because LLVM has quite limited support for >64bit constructs. llvm-svn: 164475
OpenPOWER on IntegriCloud