summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move Blacklist.h to include/ to enable use from clang.Will Dietz2013-01-185-17/+18
| | | | llvm-svn: 172806
* [sanitizer] Common *scanf interceptors.Evgeniy Stepanov2013-01-1813-42/+383
| | | | llvm-svn: 172805
* Reduce penalty for splitting between ")" and ".".Daniel Jasper2013-01-183-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ').' is likely part of a builder pattern statement. This is based upon a patch developed by Nico Weber. Thank you! Before: int foo() { return llvm::StringSwitch<Reference::Kind>(name).StartsWith( ".eh_frame_hdr", ORDER_EH_FRAMEHDR).StartsWith( ".eh_frame", ORDER_EH_FRAME).StartsWith(".init", ORDER_INIT).StartsWith( ".fini", ORDER_FINI).StartsWith(".hash", ORDER_HASH).Default(ORDER_TEXT); } After: int foo() { return llvm::StringSwitch<Reference::Kind>(name) .StartsWith(".eh_frame_hdr", ORDER_EH_FRAMEHDR) .StartsWith(".eh_frame", ORDER_EH_FRAME) .StartsWith(".init", ORDER_INIT).StartsWith(".fini", ORDER_FINI) .StartsWith(".hash", ORDER_HASH).Default(ORDER_TEXT); } Probably not ideal, but makes many cases much more readable. The changes to overriding-ftemplate-comments.cpp don't seem better or worse. We should address those soon. llvm-svn: 172804
* Remove references to pthread_workqueue_additem_np(), which isn't in the ↵Alexander Potapenko2013-01-181-46/+0
| | | | | | official libdispatch API. llvm-svn: 172802
* Add basic command line parsing to TestMain.Manuel Klimek2013-01-181-0/+2
| | | | | | | | | | | | | Summary: This allows unit tests for components that use Support/Debug.h to print debug information from test runs by specifying -debug when running the test. CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D301 llvm-svn: 172801
* [ASan] fixes for Android buildAlexey Samsonov2013-01-183-4/+4
| | | | llvm-svn: 172800
* Also align trailing line comments in include directives.Daniel Jasper2013-01-182-9/+16
| | | | | | | | | | | Before: #include <a> // for x #include <a/b/c> // for yz After: #include <a> // for x #include <a/b/c> // for yz llvm-svn: 172799
* Let the formatter align trailing line comments where possible.Daniel Jasper2013-01-182-54/+158
| | | | | | | | | | | | Before: int a; // comment int bbbbb; // comment After: int a; // comment int bbbbb; // comment llvm-svn: 172798
* Calculate vector element size more directly for VINSERTF128/VEXTRACTF128 ↵Craig Topper2013-01-181-6/+4
| | | | | | immediate handling. Also use MVT since this only called on legal types during pattern matching. llvm-svn: 172797
* Minor formatting fix. No functional change.Craig Topper2013-01-181-1/+1
| | | | llvm-svn: 172795
* Remove support for Tcl test format since nobody uses itDmitri Gribenko2013-01-1821-664/+11
| | | | llvm-svn: 172794
* Spelling fix: extened->extended. Trailing whitespace in same function.Craig Topper2013-01-181-5/+6
| | | | llvm-svn: 172793
* Make more use of is128BitVector/is256BitVector in place of getSizeInBits() ↵Craig Topper2013-01-181-35/+31
| | | | | | == 128/256. llvm-svn: 172792
* [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the ↵Kostya Serebryany2013-01-1810-128/+129
| | | | | | warning on Mac. llvm-svn: 172791
* Formatter: After case blocks, "break" goes on the same line as the "}", PR14907.Nico Weber2013-01-183-2/+30
| | | | | | | | | | | | | | | | | | | | | Before: switch (foo) { case a: { int a = g(); h(a); } break; } Now: switch (foo) { case a: { int a = g(); h(a); } break; } llvm-svn: 172789
* Check for less than 0 in shuffle mask instead of -1. It's more consistent ↵Craig Topper2013-01-181-1/+1
| | | | | | with other code related to shuffles and easier to implement in compiled code. llvm-svn: 172788
* Formatter: Enable @encode test.Nico Weber2013-01-181-1/+3
| | | | | | | This doesn't work right with pointers to pointers, but that's likely just a dupe of PR14884. llvm-svn: 172785
* Remove trailing whitespace. Remove new lines between closing brace and 'else'Craig Topper2013-01-181-7/+5
| | | | llvm-svn: 172784
* Revert Clang r172620 and r172629, which caused a hang when buildingDouglas Gregor2013-01-187-78/+74
| | | | | | | complicated modules (<rdar://problem/13038265>). Unfortunately, this un-fixes <rdar://problem/13016031>. llvm-svn: 172783
* Fixed 80+ violation.Michael Gottesman2013-01-181-2/+2
| | | | llvm-svn: 172782
* Formatter: The contents of @selector() should be formatted as a selector.Nico Weber2013-01-182-13/+46
| | | | | | Before: @selector(foo: ) Now: @selector(foo:) llvm-svn: 172781
* When checking the parameter types of an Objective-C method, don'tDouglas Gregor2013-01-182-3/+5
| | | | | | | decay the parameter type immediately; let CheckParameter() do its job. Fixes <rdar://problem/12071218>. llvm-svn: 172780
* [MC/Mach-O] Add support for linker options in Mach-O files.Daniel Dunbar2013-01-189-7/+148
| | | | llvm-svn: 172779
* [MC/Mach-O] Add AsmParser support for .linker_option directive.Daniel Dunbar2013-01-184-0/+66
| | | | llvm-svn: 172778
* [MC] Expose ParseEscapedString to target AsmParser implementations.Daniel Dunbar2013-01-182-4/+5
| | | | llvm-svn: 172777
* [MC] Fix 80-col violas.Daniel Dunbar2013-01-181-41/+89
| | | | llvm-svn: 172776
* <rdar://problem/12243932> Jason Molenda2013-01-182-5/+21
| | | | | | | Change RNBSocket from using lockdown's lockdown_secure_checkin() function to using lockdown's secure_lockdown_checkin() function. llvm-svn: 172775
* [ms-inline asm] Test case for r172773.Chad Rosier2013-01-181-0/+12
| | | | llvm-svn: 172774
* [ms-inline asm] Make the error message more generic now that we support the Chad Rosier2013-01-181-1/+1
| | | | | | 'SIZE' and 'LENGTH' operators. llvm-svn: 172773
* www: Add kernelgen publicationsTobias Grosser2013-01-183-3/+11
| | | | | | Contributed by: Dmitry Mikushin <dmitry@kernelgen.org> llvm-svn: 172772
* Add missing __isl_giveTobias Grosser2013-01-181-1/+1
| | | | | | Contributed by: Sameer Abu Asal <sameer.abuasal@gmail.com> llvm-svn: 172771
* One can override an Objective-C ARC ownership qualifier that came fromDouglas Gregor2013-01-172-0/+18
| | | | | | | a template parameter; make that also include one that came from 'auto'. Fixes <rdar://problem/12078752>. llvm-svn: 172770
* Some builtins do not evaluate their arguments. Teach EvaluatedExprVisitor notRichard Smith2013-01-176-5/+32
| | | | | | to visit them. llvm-svn: 172769
* In Objective-C ARC, completely ignore ownership qualifiers on theDouglas Gregor2013-01-175-2/+87
| | | | | | | | return type of a function by canonicalizing them away. They are useless anyway, and conflict with our rules for template argument deduction and __strong. Fixes <rdar://problem/12367446>. llvm-svn: 172768
* [analyzer] DirectIvarAssignment: allow suppression annotation on Ivars.Anna Zaks2013-01-172-8/+21
| | | | llvm-svn: 172766
* Defer checking for unsequenced operations on the RHS of && and || in order toRichard Smith2013-01-171-7/+17
| | | | | | reduce stack usage and hopefully bring back the linux x86_64 buildbot. llvm-svn: 172765
* The wchar_t and char1632_t test cases were erroneously running as x86_64 ↵Enrico Granata2013-01-172-2/+2
| | | | | | | | only even if you tried to run them in i386 mode Courtesy of Daniel Malea for discovering this. llvm-svn: 172764
* Revert r172719, r172721-172723, and r172725.Jakob Stoklund Olesen2013-01-1711-168/+128
| | | | | | | | | | | | | | | | | | The r172719 patch broke the build on Mac, the others depended on it. compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function 'SetThreadName' [-Werror,-Wunused-function] static void SetThreadName(const char *name) { Orignal headlines: [asan] attempting to fix the Mac build [asan] restructure read/pread/pread64 tests [sanitizer] move write/pwrite/pwrite64 interceptors to common [msan] start using common interceptors in msan [tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too llvm-svn: 172763
* Format strings: don't ever convert %+d to %lu.Jordan Rose2013-01-175-7/+11
| | | | | | | | | | Presumably, if the printf format has the sign explicitly requested, the user wants to treat the data as signed. This is a fix-up for r172739, and also includes several test changes that didn't make it into that commit. llvm-svn: 172762
* Parsing support for C11's _Noreturn keyword. No semantics yet.Richard Smith2013-01-1712-5/+104
| | | | llvm-svn: 172761
* -Wunsequenced: if the LHS of an &&, || or ?: is not constant, check forRichard Smith2013-01-172-6/+29
| | | | | | | | | unsequenced operations in the RHS. We don't compare the RHS with the rest of the expression yet; such checks will need care to avoid diagnosing unsequenced operations which are both in conditionally-evaluated subexpressions which actually can't occur together, such as in '(b && ++x) + (!b && ++x)'. llvm-svn: 172760
* [Linker] Drop some now-dead component dependencies.Daniel Dunbar2013-01-171-1/+1
| | | | llvm-svn: 172759
* We want the dwarf AT_producer for assembly source files to match clang'sKevin Enderby2013-01-175-0/+26
| | | | | | | | | | | | | | | | AT_producer. Which includes clang's version information so we can tell which version of the compiler was used. This is second of the two steps to allow us to do this. The first was a change to llvm-mc with revision 172630 to provide a method to set the AT_producer string. This second step has the clang driver passing the value of getClangFullVersion() via the new flag -dwarf-debug-producer when invoking the integrated assembler on assembly source files. Then using the new setDwarfDebugProducer() method to set the AT_producer string. rdar://12888242 llvm-svn: 172758
* <rdar://problem/12786725>Enrico Granata2013-01-174-2/+69
| | | | | | | | If there is any alive process being debugged, the user is asked for confirmation before quitting LLDB This should prevent situations where the user mistakenly types "q" and LLDB slaughters their process without any mercy whatsoever Since it can quickly get tedious, there is a new setting on the command interpreter to disable this and replicate the previous behavior llvm-svn: 172757
* Reverting r171325 & r172363. This was causing a mis-compile on the ↵Bill Wendling2013-01-173-160/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | self-hosted LTO build bots. Okay, here's how to reproduce the problem: 1) Build a Release (or Release+Asserts) version of clang in the normal way. 2) Using the clang & clang++ binaries from (1), build a Release (or Release+Asserts) version of the same sources, but this time enable LTO --- specify the `-flto' flag on the command line. 3) Run the ARC migrator tests: $ arcmt-test --args -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c++ ./src/tools/clang/test/ARCMT/cxx-rewrite.mm You'll see that the output isn't correct (the whitespace is off). The mis-compile is in the function `RewriteBuffer::RemoveText' in the clang/lib/Rewrite/Core/Rewriter.cpp file. When that function and RewriteRope.cpp are compiled with LTO and the `arcmt-test' executable is regenerated, you'll see the error. When those files are not LTO'ed, then the output of the `arcmt-test' is fine. It is *really* hard to get a testcase out of this. I'll file a PR with what I have currently. --- Reverse-merging r172363 into '.': U include/llvm/Analysis/MemoryBuiltins.h U lib/Analysis/MemoryBuiltins.cpp --- Reverse-merging r171325 into '.': U test/Transforms/InstCombine/objsize.ll G include/llvm/Analysis/MemoryBuiltins.h G lib/Analysis/MemoryBuiltins.cpp llvm-svn: 172756
* Converting lambdas to plain old static function pointersEnrico Granata2013-01-171-15/+20
| | | | llvm-svn: 172755
* Do not pass -pie flag to linker if -shared specified. This matchesPeter Collingbourne2013-01-172-1/+7
| | | | | | | the gcc driver and makes it possible to add -pie to $CC or similar and have it apply in the right places. llvm-svn: 172753
* Harden this test a bit to work on the mac with ancient gdbs.Eric Christopher2013-01-171-8/+9
| | | | llvm-svn: 172752
* Reverting back to the fallback instead of using the 64-bit popcnt ↵Aaron Ballman2013-01-171-2/+0
| | | | | | instruction as it doesn't exist on all x64 CPU architectures. llvm-svn: 172751
* [Linker] Drop support for IR-level extended linking support (archives, etc.).Daniel Dunbar2013-01-176-577/+3
| | | | | | | | - This code is dead, and the "right" way to get this support is to use the platform-specific linker-integrated LTO mechanisms, or the forthcoming LLVM linker. llvm-svn: 172749
OpenPOWER on IntegriCloud