summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ObjectFileELF::GetModuleSpecifications on Linux should work now.Michael Sartain2013-05-236-42/+168
| | | | | | | Which means "platform process list" should work and list the architecture. We are now parsing the elf build-id if it exists, which should allow us to load stripped symbols (looking at that next). llvm-svn: 182610
* Add ${ansi.XX} parsing to lldb prompt, use-color setting, and -no-use-colors ↵Michael Sartain2013-05-2310-226/+170
| | | | | | | | | | command line options. settings set use-color [false|true] settings set prompt "${ansi.bold}${ansi.fg.green}(lldb)${ansi.normal} " also "--no-use-colors" on the command prompt llvm-svn: 182609
* Fix aligning of comments.Manuel Klimek2013-05-232-4/+25
| | | | | | | | | | | | | | | | | Previously we started sequences to align for single line comments when the previous line had a trailing comment, but the sequence was broken for other reasons. Now we re-format: // a // b f(); // c to: // a // b f(); // c llvm-svn: 182608
* <rdar://problem/13966084>Greg Clayton2013-05-231-1/+1
| | | | | | Make sure to not call "regexec" from <regex.h> with a NULL C string, otherwise we can crash. llvm-svn: 182607
* Adding .arcconfig file to LLDB to allow using Phabricator for reviewsDaniel Malea2013-05-231-0/+4
| | | | llvm-svn: 182606
* Fix aligning of comments that are at the start of the line.Manuel Klimek2013-05-232-3/+11
| | | | | | | | | | Now correctly leaves: f(); // comment // comment g(); // comment ... alone if the middle comment was aligned with g() before formatting. llvm-svn: 182605
* Add caveat to __builtin_readcyclecounter documentation.Tim Northover2013-05-231-1/+3
| | | | | | | The ARM cycle-counter can be restricted by the operating system; it's worth warning potential users of this issue. llvm-svn: 182604
* ARM: implement @llvm.readcyclecounter intrinsicTim Northover2013-05-233-1/+70
| | | | | | | | | | | | | This implements the @llvm.readcyclecounter intrinsic as the specific MRC instruction specified in the ARM manuals for CPUs with the Power Management extensions. Older CPUs had slightly different methods which may also have to be implemented eventually, but this should cover all v7 cases. rdar://problem/13939186 llvm-svn: 182603
* ARM: Add Performance Monitor Extensions featureTim Northover2013-05-233-1/+10
| | | | | | | | | | Performance monitors, including a basic cycle counter, are an official extension in the ARMv7 specification. This adds support for enabling and disabling them, orthogonally from CPU selection. rdar://problem/13939186 llvm-svn: 182602
* Increase test coverage for braced init lists.Daniel Jasper2013-05-232-1/+14
| | | | | | Also fix a minor bug for constructor initializers with braced init lists. llvm-svn: 182601
* R600: Fix R600ControlFlowFinalizer not considering VTX_READ 128 bit dst regTom Stellard2013-05-232-2/+31
| | | | | | | | | Patch by: Vincent Lejeune https://bugs.freedesktop.org/show_bug.cgi?id=64877 NOTE: This is a candidate for the 3.3 branch. llvm-svn: 182600
* Don't override 'mode' and cleanup some variable names.Bill Wendling2013-05-231-22/+21
| | | | llvm-svn: 182599
* Add 'mode' parameter when using 'O_CREAT'. Thanks to Evgeniy for pointing ↵Bill Wendling2013-05-231-2/+3
| | | | | | this out. llvm-svn: 182598
* Improve formatting of braced lists.Daniel Jasper2013-05-233-8/+6
| | | | | | Before: vector<int> v{ -1}; After: vector<int> v{-1}; llvm-svn: 182597
* clang-format integration for git.Daniel Jasper2013-05-231-0/+513
| | | | | | | | | | Put this somewhere on your path and use: git clang-format Awesome work by Mark Lodato. Many thanks! llvm-svn: 182596
* [lld][LayoutPass] Add comment on _followOn{Nexts,Roots}.Rui Ueyama2013-05-231-0/+11
| | | | | | | | | | Reviewers: shankarke CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D847 llvm-svn: 182595
* Move passes from namespace llvm into anonymous namespaces. Sort includes ↵Benjamin Kramer2013-05-2315-37/+37
| | | | | | while there. llvm-svn: 182594
* Fix PR16110: Handle DBG_VALUE in ConnectedVNInfoEqClasses::Distribute().Jakob Stoklund Olesen2013-05-232-2/+123
| | | | | | | | | | | | Now that the LiveDebugVariables pass is running *after* register coalescing, the ConnectedVNInfoEqClasses class needs to deal with DBG_VALUE instructions. This only comes up when rematerialization during coalescing causes the remaining live range of a virtual register to separate into two connected components. llvm-svn: 182592
* More symbols that should be static.Benjamin Kramer2013-05-232-7/+5
| | | | llvm-svn: 182590
* Make helper functions static.Benjamin Kramer2013-05-232-4/+5
| | | | llvm-svn: 182589
* Hexagon: Make helper functions static.Benjamin Kramer2013-05-232-3/+5
| | | | llvm-svn: 182588
* R600: Hide symbols of implementation details.Benjamin Kramer2013-05-234-63/+25
| | | | | | Also removes an unused function. llvm-svn: 182587
* InlineSpiller: Store bucket pointers instead of iterators.Benjamin Kramer2013-05-231-9/+9
| | | | | | Lets us use a SetVector instead of an explicit set + vector combination. llvm-svn: 182586
* Setting the default value (fixes CRT assertions about uninitialized variable ↵Aaron Ballman2013-05-231-3/+3
| | | | | | use when doing debug MSVC builds), and fixing coding style. llvm-svn: 182585
* Fix 32 bit build in c++11 mode.Rafael Espindola2013-05-231-1/+1
| | | | | | | | The error was: error: non-constant-expression cannot be narrowed from type 'long long' to 'long' in initializer list [-Wc++11-narrowing] MI.getOperand(6).getImm() & 0x1F, llvm-svn: 182584
* [lsan] Add lit test support.Sergey Matveev2013-05-237-29/+106
| | | | | | | "check-lsan" now runs both the tests from lib/lsan/tests and any lit tests found under lib/lsan/lit_tests. llvm-svn: 182583
* [TSan] Try to fix the Go-TSan build.Alexander Potapenko2013-05-231-0/+8
| | | | llvm-svn: 182582
* [tsan] Remove -Wgnu from Makefile.old.Evgeniy Stepanov2013-05-231-3/+0
| | | | llvm-svn: 182580
* [ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every ↵Alexander Potapenko2013-05-235-13/+51
| | | | | | | | platform except Linux (because we don't support sandboxing anywhere else yet) On Linux we pre-cache the value of readlink("/proc/self/exe"), so that it can be later used when the sandbox has been turned on. llvm-svn: 182579
* [msan] Fix line >80 chars.Evgeniy Stepanov2013-05-231-1/+2
| | | | llvm-svn: 182578
* Stop aligning trailing comments which are aligned with the next line.Manuel Klimek2013-05-232-1/+28
| | | | | | | | | | | | | | | | | | | | | | | Previously we would align: f(); // comment // other comment g(); Even if // other comment was at the start of the line. Now we do not align trailing comments if they have been already aligned correctly with the next line. Thus, f(); // comment // other comment g(); will not be changed, while: f(); // comment // other commment g(); will lead to the two trailing comments being aligned. llvm-svn: 182577
* [sanitizer] Fix Windows build.Evgeniy Stepanov2013-05-231-0/+2
| | | | llvm-svn: 182576
* [ASan] Rename a atomic_compare_exchange_strong parameter to avoid a compiler ↵Timur Iskhodzhanov2013-05-231-2/+2
| | | | | | warning llvm-svn: 182575
* [sanitizer] Intercept getsockopt.Evgeniy Stepanov2013-05-235-2/+33
| | | | llvm-svn: 182574
* [sanitizer] Interceptors for gethostbyname and friends.Evgeniy Stepanov2013-05-238-1/+288
| | | | llvm-svn: 182573
* Use a SourceRange for the whitespace location in FormatToken.Manuel Klimek2013-05-235-41/+53
| | | | | | | | | | | Replaces the use of WhitespaceStart + WhitspaceLength. This made a bug in the formatter obvous where we would incorrectly calculate the next column. FIXME: There's a similar bug left regarding TokenLength. We should probably also move to have a TokenRange instead. llvm-svn: 182572
* [lsan] Ensure lsan is initialized when interceptors are called.Sergey Matveev2013-05-233-9/+7
| | | | | | Also remove unnecessary ifdefs. llvm-svn: 182571
* Improve formatting of braced lists.Daniel Jasper2013-05-234-18/+46
| | | | | | | | | | | | | Before: vector<int> x { 1, 2, 3 }; After: vector<int> x{ 1, 2, 3 }; Also add a style option to remove the spaces inside braced lists, so that the above becomes: std::vector<int> v{1, 2, 3}; llvm-svn: 182570
* Fix no-assert compiles.Manuel Klimek2013-05-231-1/+4
| | | | llvm-svn: 182569
* Expand parsing of braced init lists.Manuel Klimek2013-05-233-21/+174
| | | | | | | | | | | | | | | | Allows formatting of C++11 braced init list constructs, like: vector<int> v { 1, 2, 3 }; f({ 1, 2 }); This involves some changes of how tokens are handled in the UnwrappedLineFormatter. Note that we have a plan to evolve the design of the token flow into one where we create all tokens up-front and then annotate them in the various layers (as we currently already have to create all tokens at once anyway, the current abstraction does not help). Thus, this introduces FIXMEs towards that goal. llvm-svn: 182568
* [ASan] Rename __asan_preinit to __local_asan_preinit to avoid warnings from ↵Alexander Potapenko2013-05-231-1/+3
| | | | | | the linker which is trying to export all the __asan_* symbols llvm-svn: 182567
* Add missing test from r175092.Nick Lewycky2013-05-231-0/+13
| | | | llvm-svn: 182564
* Performance improvement.Bill Wendling2013-05-2311-66/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using fwrite and fread was very *very* slow. The resulting code was multiple times slower than GCC's implementation of gcov. Replace the fwrite/fread system with an mmap() version. If the `.gcda' file doesn't exist, we (re)allocate a buffer that we write into. That gets written to the `.gcda' file in one chunk. If the `.gcda' file already exists, we simply mmap() the file, modify the mapped data, and use msync() to write the contents out to disk. It's much easier than implementing our own buffering scheme, and we don't have to use fwrite's and fread's buffering. For those who are numbers-oriented, here are some timings: GCC Verison ----------- `.gcda' files don't exist: 23s `.gcda' files do exist: 14s LLVM Version (before this change) --------------------------------- `.gcda' files don't exist: 28s `.gcda' files do exist: 28s LLVM Version (with this change) ------------------------------- `.gcda' files don't exist: 18s `.gcda' files do exist: 4s It's a win-win-win-win-lose-win-win scenario! <rdar://problem/13466086> llvm-svn: 182563
* [analyzer;alternate edges] fix type that was causing the wrong path piece to ↵Ted Kremenek2013-05-231-1/+1
| | | | | | get removed. llvm-svn: 182562
* Fix a leak on the r600 backend.Rafael Espindola2013-05-232-8/+12
| | | | | | This should bring the valgrind bot back to life. llvm-svn: 182561
* clang-format this file.Rafael Espindola2013-05-231-29/+25
| | | | llvm-svn: 182560
* Remove redundant rpath.Rafael Espindola2013-05-231-6/+1
| | | | | | | | These are not needed since we added the $ORIGIN based rpath. Fixes pr12517. llvm-svn: 182559
* Fix indentation.Rafael Espindola2013-05-231-9/+9
| | | | llvm-svn: 182558
* [objc-arc] Fixed number of prefixing slashes in some comments in a function ↵Michael Gottesman2013-05-231-6/+6
| | | | | | from 3 to 2 to match the rest of ObjCARCOpts. llvm-svn: 182557
* Fixed trailing whitespace.Michael Gottesman2013-05-231-5/+5
| | | | llvm-svn: 182556
OpenPOWER on IntegriCloud