summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't delete one more instruction than we're allowed to. This should fix theNick Lewycky2012-07-241-1/+3
| | | | | | | Darwin bootstrap. Testcase exists but isn't fully reduced, I expect to commit the testcase this evening. llvm-svn: 160693
* [Object] Remove unneeded const_cast.Michael J. Spencer2012-07-241-2/+1
| | | | llvm-svn: 160692
* When a && or || appears as the condition of a ?:, perform appropriateRichard Smith2012-07-242-10/+18
| | | | | | | | | short-circuiting when building the CFG. Also be sure to skip parens before checking for the && / || special cases. Finally, fix some crashes in CFG printing in the presence of calls to destructors for array of array of class type. llvm-svn: 160691
* add a few more functions to TargetLibraryInfo:Nuno Lopes2012-07-242-0/+21
| | | | | | fputc, memchr, memcmp, putchar, puts, strchr, strncmp llvm-svn: 160690
* CommentSema: simplify functions, per Jordan's comment.Dmitri Gribenko2012-07-241-8/+4
| | | | llvm-svn: 160689
* Pedantic -pedantic correction. Duplicate cv-qualifiers are permitted in C++11Richard Smith2012-07-244-10/+16
| | | | | | unless they appear in a decl-specifier-seq. llvm-svn: 160688
* ELF does not imply GNU/Linux. Do not assume GNU conventions just because weDavid Chisnall2012-07-242-1/+21
| | | | | | | | | are targeting an ELF platform. Only fold gs-relative (and fs-relative) loads if it is actually sensible to do so for the target platform. This fixes PR13438. llvm-svn: 160687
* Don't use a temporary file.Rafael Espindola2012-07-241-2/+1
| | | | llvm-svn: 160686
* Add new interfaces to support ldd's ReaderElf.cpp.Anshuman Dasgupta2012-07-241-3/+42
| | | | | | Patch by Sid Manning! llvm-svn: 160685
* ABIArgInfo's constructor is private and only used by the static get* methods.Rafael Espindola2012-07-241-6/+6
| | | | | | No need to abuse default arguments. llvm-svn: 160684
* Comment parsing: allow newlines between \param, direction specification (e.g.,Dmitri Gribenko2012-07-242-50/+110
| | | | | | [in]), parameter name and description paragraph. llvm-svn: 160682
* Tweak warning text for returning incomplete type from extern "C" functions.Hans Wennborg2012-07-243-4/+10
| | | | | | | | | | A warning was added in r150128 for returning non-C compatible user-defined types from functions with C linkage. This makes the text more clear for the case when the type isn't decidedly non-C compatible, but incomplete. llvm-svn: 160681
* Comment parsing: couple TextTokenRetokenizer and comment parser together toDmitri Gribenko2012-07-242-50/+44
| | | | | | | remove one of the two variable-length lookahead buffers. Now retokenizer will ask for more tokens when it needs them. llvm-svn: 160680
* Move TextTokenRetokenizer from CommentLexer.h to CommentParser.cpp since it isDmitri Gribenko2012-07-242-203/+203
| | | | | | an implementation detail of the parser. llvm-svn: 160679
* TargetLibraryInfo: add strn?cat, strn?cpy, and strn?lenNuno Lopes2012-07-242-0/+18
| | | | llvm-svn: 160678
* Create a new directory before running the polly scriptTobias Grosser2012-07-241-1/+2
| | | | | | | Otherwise the script spams the home directory and, in case there are folders of previous attempts lying around, it may fail in some unexpected way. llvm-svn: 160677
* teach objectsize about strdup() and strndup()Nuno Lopes2012-07-242-3/+64
| | | | llvm-svn: 160676
* Comment parsing: retokenized text tokens are now pushed back in correct (notDmitri Gribenko2012-07-243-3/+31
| | | | | | reverse) order llvm-svn: 160675
* Introduces a new concept for binding results to matchersManuel Klimek2012-07-243-53/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | as per Chandler's request: - introduces a new matcher base type BindableMatcher that provides the bind() call - makes all dynamic-cast matcher creation functions return BindableMatchers; the special case about dynamic-cast matchers is that the node they match on and the node their child matchers match on are the same node, just casted to a different type; thus, there is no ambiguity on what bind() matches on; additionally, those are the matchers that we name with nouns in the matcher language, so it's easy for users to intuitively know which matchers are bindable To make this change possible, we got rid of a non-orthogonal implementation of thisPointerType, which had an implicit dynamic-cast matcher from CallExpr to CXXMemberCallExpr; as alternative, we now provide a memberCall dynamic-cast matcher and thisPointerType is a predicate on CXXMemberCallExpr. Last, the ArgumentAdaptingMatcher is actually not required for the implementation of makeDynCastAllOfComposite - this simplification makes it more obvious where the bind() call can be used based on the matcher creation function types. llvm-svn: 160673
* tsan: align report style with Go internal formatDmitry Vyukov2012-07-243-16/+14
| | | | llvm-svn: 160672
* Revert r160669 (except for compile flag updates)Alexey Samsonov2012-07-241-23/+4
| | | | llvm-svn: 160671
* tsan: output goroutine creation stackDmitry Vyukov2012-07-241-0/+10
| | | | llvm-svn: 160670
* [ASan] hacking cmake build: after generating asan runtime, copy it to the ↵Alexey Samsonov2012-07-241-1/+27
| | | | | | Clang lib directory where Clang driver expects to find it. llvm-svn: 160669
* Clean whitespaces.Nadav Rotem2012-07-2422-498/+500
| | | | llvm-svn: 160668
* Fix PR13207 (Mangling of templates with back references when using -cxx-abi ↵Timur Iskhodzhanov2012-07-242-34/+120
| | | | | | microsoft) llvm-svn: 160667
* [ASan] Support for cmake build of ASan unittests in 32-bit LLVM build. ↵Alexey Samsonov2012-07-243-49/+50
| | | | | | Currently, to run ASan unit tests both for 32- and 64 bits one has to maintain two distinct LLVM builds. In a bright future, we'd like to use a single build for this llvm-svn: 160666
* Teach globalopt to not nuke all stores to globals. Keep them around of theyNick Lewycky2012-07-243-9/+197
| | | | | | | | | might be deliberate "one time" leaks, so that leak checkers can find them. This is a reapply of r160602 with the fix that this time I'm committing the code I thought I was committing last time; the I->eraseFromParent() goes *after* the break out of the loop. llvm-svn: 160664
* Change the way KEYNOMS is defined to be more comprehensible. Francois Pichet2012-07-241-2/+2
| | | | llvm-svn: 160663
* Change llvm_unreachable in SplitVectorOperand to report_fatal_error. Keeps ↵Craig Topper2012-07-241-1/+3
| | | | | | release builds from crashing if code uses an intrinsic with an illegal type. llvm-svn: 160661
* clang/test/CodeGenCXX/debug-info-globalinit.cpp: Fix for -Asserts.NAKAMURA Takumi2012-07-241-4/+4
| | | | llvm-svn: 160660
* Emit debug info for dynamic initializers. Permit __attribute__((nodebug)) onNick Lewycky2012-07-248-24/+68
| | | | | | | variables that have static storage duration, it removes debug info on the emitted initializer function but not all debug info about this variable. llvm-svn: 160659
* Fix whitespace, whoops missed a spot!Nick Lewycky2012-07-241-1/+1
| | | | llvm-svn: 160658
* Fix whitespace, tabs to spaces. No functionality change.Nick Lewycky2012-07-241-6/+6
| | | | llvm-svn: 160657
* Sanity check the result of Symbol::GetPrologueByteSize - make sure it is not ↵Jim Ingham2012-07-241-0/+6
| | | | | | greater than the size of the Symbol returning it. llvm-svn: 160656
* Use a more efficient API to tell if a process belongs to springboard or not.Jim Ingham2012-07-242-44/+6
| | | | llvm-svn: 160655
* Fix function MipsCodeEmitter::emitExternalSymbolAddress to pass testAkira Hatanaka2012-07-241-1/+1
| | | | | | | | ExecutionEngine/test-fp.ll. Patch by Petar Jovanovic. llvm-svn: 160653
* move X86_32ABIInfo::computeInfo out of line.Rafael Espindola2012-07-241-8/+9
| | | | llvm-svn: 160652
* Add basic ability to setup call frame, and make procedure calls.Akira Hatanaka2012-07-2311-44/+338
| | | | | | | | Hello world will compile and execute with this patch. Patch by Reed Kotler. llvm-svn: 160651
* Comment parser unit tests: split a huge test caseDmitri Gribenko2012-07-231-34/+51
| | | | llvm-svn: 160649
* Make classifyReturnType and classifyArgumentType private.Rafael Espindola2012-07-231-3/+3
| | | | llvm-svn: 160648
* Comment parser unit tests: reduce code duplicationDmitri Gribenko2012-07-231-122/+45
| | | | llvm-svn: 160647
* Do not warn about a function decl / direct init ambiguity if the function ↵Richard Smith2012-07-232-2/+4
| | | | | | has a trailing return type. llvm-svn: 160646
* Fix a "Bad fd number" error on some platforms due to a less portableEric Christopher2012-07-231-1/+1
| | | | | | | | redirection in the system call. Patch by Andy Gibbs. llvm-svn: 160644
* make ConstantRange::zeroExtend() optimalNuno Lopes2012-07-232-2/+10
| | | | llvm-svn: 160643
* Add operator== to APSInt. This will compare the signed bit before doingRichard Trieu2012-07-231-1/+20
| | | | | | | the comparison. This prevents large unsigned integers from being equal to signed negative integers of the same bit width. llvm-svn: 160642
* Change APInt to APSInt in one instance. Also change a call to operator==() toRichard Trieu2012-07-234-6/+6
| | | | | | APSInt::isSameValue() when comparing different sized APSInt's. llvm-svn: 160641
* add AST unittests to CMake build systemDmitri Gribenko2012-07-232-0/+2
| | | | llvm-svn: 160640
* Fix this for gdb 7.4.Eric Christopher2012-07-231-1/+2
| | | | | | Patch by Andy Gibbs. llvm-svn: 160639
* libclang comments AST: clang_ParamCommandComment_getParamName: don't assertDmitri Gribenko2012-07-232-25/+35
| | | | | | | when a \param command does not have a parameter name, just return an empty string instead. llvm-svn: 160638
* An objc_retain can serve as a may-use for a different pointer.Dan Gohman2012-07-232-1/+28
| | | | | | rdar://11931823. llvm-svn: 160637
OpenPOWER on IntegriCloud