summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Let attribute((cdecl)) and company override -mrtd default calling convention.Roman Divacky2011-08-052-2/+2
| | | | llvm-svn: 136971
* ARM simplify the postidx_reg operand encoding.Jim Grosbach2011-08-054-11/+14
| | | | | | | The immediate portion of the operand is just a boolean (the 'U' bit indicating add vs. subtract). Treat it as such. llvm-svn: 136969
* ARM use a dedicated printer for postidx_reg operands.Jim Grosbach2011-08-053-1/+11
| | | | llvm-svn: 136968
* Flesh out the -Warray-bounds detection of C89 tail-padded one-elementChandler Carruth2011-08-053-13/+58
| | | | | | | | | | | | | | | | | | | | | | | | | arrays. This now suppresses the warning only in the case of a one-element array as the last field in a struct where the array size is a literal '1' rather than any macro expansion or template parameter. This doesn't distinguish between the language standard in use to allow code which dates from C89 era to compile without the warning even in C99 and C++ builds. We could add a separate warning (under a different flag) with fixit hints to switch to a flexible array, but its not clear that this would be desirable. Much of the code using this idiom is striving for maximum portability. Tests were also fleshed out a bit, and the diagnostic itself tweaked to be more pretty w.r.t. single elment arrays. This is more ugly than I would like due to APInt's not being supported by the diagnostic rendering engine. A pseudo-patch for this was proposed by Nicola Gigante, but I reworked it both for several correctness issues and for code style. Sorry this was so long in coming. llvm-svn: 136965
* Finally getting around to re-working this to more accurately white-listChandler Carruth2011-08-051-8/+22
| | | | | | | | | 1-element character arrays which are serving as flexible arrays. This is the initial step, which is to restrict the 1-element array whitelist to arrays that are member declarations. I'll refine it from here based on the proposed patch. llvm-svn: 136964
* Fixed FieldDecl source range.Abramo Bagnara2011-08-052-2/+8
| | | | llvm-svn: 136963
* Add missing register constraint for some VLD3/VLD4 pseudo instructions.Bob Wilson2011-08-051-1/+2
| | | | | | <rdar://problem/9878189> llvm-svn: 136962
* Change the this -W flag to 'return-stack-address'.Chandler Carruth2011-08-051-5/+5
| | | | | | | | ~or~ Paint the bikeshed green. llvm-svn: 136959
* The recently introduced SBTypeList is also iterable.Johnny Chen2011-08-051-2/+3
| | | | | | | This patch takes some time because the old Python constructor pattern was not a valid one, and breaks with SBTypeList's __init__ signature. Oops. llvm-svn: 136958
* Option --regex (-x) now also works for synthetic children:Enrico Granata2011-08-055-297/+442
| | | | | | | - Added a test case in python-synth Minor code improvements in categories, making them ready for adding new element types llvm-svn: 136957
* Silence unused variable warnings in release builds.Chandler Carruth2011-08-051-0/+2
| | | | llvm-svn: 136956
* Output to /dev/null, not "0"Matt Beaumont-Gay2011-08-051-1/+1
| | | | llvm-svn: 136955
* Fix http://llvm.org/bugs/show_bug.cgi?id=10583\n - test for 1 and 2 byte ↵Jason W Kim2011-08-051-15/+11
| | | | | | fixups to be added llvm-svn: 136954
* Temporarily revert r135528 which distinguishes between two copies of oneChandler Carruth2011-08-054-28/+3
| | | | | | | | | | | | | | | | | | | inlined variable, based on the discussion in PR10542. This explodes the runtime of several passes down the pipeline due to a large number of "copies" remaining live across a large function. This only shows up with both debug and opt, but when it does it creates a many-minute compile when self-hosting LLVM+Clang. There are several other cases that show these types of regressions. All of this is tracked in PR10542, and progress is being made on fixing the issue. Once its addressed, the re-instated, but until then this restores the performance for self-hosting and other opt+debug builds. Devang, let me know if this causes any trouble, or impedes fixing it in any way, and thanks for working on this! llvm-svn: 136953
* KeychainAPI checker: Generate an error on double allocation. Pull out ↵Anna Zaks2011-08-052-17/+54
| | | | | | getAsPointeeMemoryRegion so that it could be reused. llvm-svn: 136952
* Complete Host::Backtrace prototype. Fixes Linux build.Peter Collingbourne2011-08-051-0/+1
| | | | llvm-svn: 136951
* Extend memset/memcpy/memmove checking to include memcmpMatt Beaumont-Gay2011-08-053-11/+31
| | | | llvm-svn: 136950
* The continue label in an ARC for-in loop should not involveJohn McCall2011-08-052-1/+25
| | | | | | releasing the collection. llvm-svn: 136949
* Have the typo correction in DiagnoseEmptyLookup properly handle templateKaelyn Uhrain2011-08-054-14/+16
| | | | | | functions when performing function overload resolution. llvm-svn: 136948
* Remove expectedFailure decorator for test_SBType, which does not take an ↵Johnny Chen2011-08-052-30/+15
| | | | | | | | | empty constructor after the recent changes. And remove expectedFailure decorator for test_SBTypeMember, which no longer exists after the recent changes, replace it with test_SBTypeList. llvm-svn: 136947
* objc rewriter: Fixes a rewriting of implicit casting of an integralFariborz Jahanian2011-08-042-1/+22
| | | | | | argument to bool. // rdar://9899834 llvm-svn: 136946
* fixed a potential memory leak ; small improvement in the formatters lookup ↵Enrico Granata2011-08-043-10/+22
| | | | | | algorithm llvm-svn: 136945
* More whitespace and naming fixup. No functionality change.Chad Rosier2011-08-043-11/+11
| | | | llvm-svn: 136944
* Fix a small bug where DiagnoseEmptyLookup would no longer print any messagesKaelyn Uhrain2011-08-042-2/+20
| | | | | | | | | when performing typo correction involving any overloaded template functions. The added test cases, while currently demontrating sub-optimal behavior, will not trigger any messages without the 1-line change to SemaExpr.cpp. llvm-svn: 136943
* Fix broken encodings for the Thumb2 LDRD/STRD instructions.Owen Anderson2011-08-043-13/+42
| | | | llvm-svn: 136942
* Specialize diag::warn_unused_call for the "warn_unused_result" attribute, soMatt Beaumont-Gay2011-08-043-3/+7
| | | | | | it can be controlled with a distinct flag. llvm-svn: 136941
* ARM assembly parsing and encoding for LDR instructions.Jim Grosbach2011-08-042-8/+37
| | | | | | | Enhance support for LDR instruction assembly parsing for post-indexed addressing with immediate values. Add tests. llvm-svn: 136940
* Fix assertion failure in -Wuninitialized involving no-op casts. Fixes PR 10577.Ted Kremenek2011-08-042-5/+30
| | | | llvm-svn: 136939
* KeychainAPI checker: forgot to commit the test with r136930. This should fix ↵Anna Zaks2011-08-041-6/+67
| | | | | | the bot. llvm-svn: 136938
* Put a few warnings into a DiagGroup. Feel free to improve the flag name!Matt Beaumont-Gay2011-08-041-5/+10
| | | | llvm-svn: 136937
* Print out the stopwatch (which contains laps, total elapsed time, and average)Johnny Chen2011-08-041-2/+2
| | | | | | instead of just the average. llvm-svn: 136932
* Add a benchmark comparing lldb vs. gdb with disassembly on a large function ↵Johnny Chen2011-08-041-0/+127
| | | | | | | | | | | | | | | | | | | | | (lldb's Driver::MainLoop()). Sample run on my OSX Lion (MacBook Pro): 1: test_run_gdb_then_lldb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... gdb benchmark: Avg: 0.201802 (Laps: 5, Total Elapsed Time: 1.009008) lldb benchmark: Avg: 0.109569 (Laps: 5, Total Elapsed Time: 0.547843) lldb_avg/gdb_avg: 0.542952 ok 2: test_run_lldb_then_gdb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... lldb benchmark: Avg: 0.109580 (Laps: 5, Total Elapsed Time: 0.547902) gdb benchmark: Avg: 0.201587 (Laps: 5, Total Elapsed Time: 1.007936) lldb_avg/gdb_avg: 0.543588 ok llvm-svn: 136931
* KeychainAPI checker: Track additional pair of SecKeychain APIs. Also, keep ↵Anna Zaks2011-08-041-14/+45
| | | | | | exploring the transition on which a call to allocator function failed (to be able to find errors in examples like ErrorCodesFromDifferentAPISDoNotInterfere). llvm-svn: 136930
* Whitespace.Chad Rosier2011-08-041-9/+7
| | | | llvm-svn: 136929
* Fixed a problem that caused LLDB to fail to executeSean Callanan2011-08-043-207/+226
| | | | | | | | | | | | | | | | | | | | expressions that used function pointers. The problem was that IRForTarget previously only scanned the IR for the expression for call instructions; if a function was used in another context, it was ignored. Now LLDB scans the Module for functions that are only declared (not also defined -- so these are externals); it then constructs function pointers for these functions and substitutes them wherever the function is used. Also made some changes so that "expr main" works just as well as "expr &main"; they end up being the same code, but LLDB was generating the result variable in different ways. llvm-svn: 136928
* objective-c: diagnose protocol inconsistencies in following Fariborz Jahanian2011-08-045-5/+206
| | | | | | | | situation. When a class explicitly or implicitly (through inheritance) "conformsTo" two protocols which conflict (have methods which conflict). This is 2nd part of // rdar://6191214. llvm-svn: 136927
* Formatting.Chad Rosier2011-08-041-31/+31
| | | | llvm-svn: 136924
* Count the total amount of stack space used in compiled functions.Jakob Stoklund Olesen2011-08-041-1/+4
| | | | | | Patch by Ivan Krasin! llvm-svn: 136921
* Make sure we track CXX and objc method decls.Greg Clayton2011-08-043-0/+22
| | | | llvm-svn: 136920
* Fix some typos.Johnny Chen2011-08-041-2/+2
| | | | llvm-svn: 136919
* Remove an extra 'for' in the comment.Johnny Chen2011-08-041-1/+1
| | | | llvm-svn: 136918
* Fix makefile rules to prevent CFLAGS from appearing twice in the command line.Johnny Chen2011-08-041-5/+4
| | | | llvm-svn: 136917
* Print DBG_VALUE variable's location info as a comment.Devang Patel2011-08-041-1/+13
| | | | llvm-svn: 136916
* Increment counter inside insertDebugValue().Devang Patel2011-08-041-2/+1
| | | | llvm-svn: 136915
* Add a new libclang API to return a CXCompletionString for an arbitraryDouglas Gregor2011-08-048-0/+86
| | | | | | cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>. llvm-svn: 136911
* We need to map DebugLoc. It leads to Fuction * (through subprogram entry ↵Devang Patel2011-08-043-3/+51
| | | | | | node) which should be appropriately mapped. llvm-svn: 136910
* Linke NamedMDNodes after linking global values as comment suggests.Devang Patel2011-08-043-5/+63
| | | | llvm-svn: 136909
* allow \r's in .s files.Chris Lattner2011-08-041-1/+1
| | | | llvm-svn: 136908
* Fix style and remove obviously redundant code.Chad Rosier2011-08-042-3/+1
| | | | llvm-svn: 136907
* Introduce adjustFixupOffset that adjusts the fixup offset of a relocation.Roman Divacky2011-08-042-12/+16
| | | | | | | | This is meant to be overriden by backends. Implement an override on PowerPC which adjusts the offset by 2 for ha16/lo16 relocation kinds. This removes a commented out hack and enables hello world to be compiled on PowerPC. llvm-svn: 136905
OpenPOWER on IntegriCloud