summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tidy up whitespace a bitJim Grosbach2010-08-131-7/+6
| | | | llvm-svn: 111019
* Add an options parameter to clang_saveTranslationUnit, because we'll want it ↵Douglas Gregor2010-08-135-3/+41
| | | | | | later llvm-svn: 111016
* Fixed NNS insertion in MemberPointerType.Abramo Bagnara2010-08-131-9/+13
| | | | llvm-svn: 111013
* Properly give unique-external linkage to members of member templatesJohn McCall2010-08-132-23/+81
| | | | | | instantiated with unique-external parameters. llvm-svn: 111012
* Fix the help text on -Wwrite-strings.John McCall2010-08-131-1/+1
| | | | llvm-svn: 111011
* One more XFAIL.Mikhail Glushenkov2010-08-131-0/+1
| | | | llvm-svn: 111010
* Work around a crash when checking access to injected class namesJohn McCall2010-08-132-2/+21
| | | | | | | | | | qua templates. The current fix suppresses the access check entirely in this case; to do better, we'd need to be able to say that a particular lookup result came from a particular injected class name, which is not easy to do with the current representation of LookupResult. This is on my known-problems list. llvm-svn: 111009
* More XFAILs.Mikhail Glushenkov2010-08-132-0/+2
| | | | llvm-svn: 111008
* Add a workaround for building with Clang.Mikhail Glushenkov2010-08-132-5/+19
| | | | llvm-svn: 111007
* Implement clang_saveTranslationUnit(), which saves a translation unitDouglas Gregor2010-08-139-4/+101
| | | | | | into a PCH/AST file. llvm-svn: 111006
* Driver/OptParser: Add a NoForward flag to prevent forwarding certain options toDaniel Dunbar2010-08-137-8/+36
| | | | | | | | GCC. - Mark -Xclang and -mlinker-version= with it for now, although I am sure there are more. llvm-svn: 111005
* Add an XFAIL.Mikhail Glushenkov2010-08-131-0/+3
| | | | llvm-svn: 111004
* Teach ASTUnit to hold on to the Sema object and ASTConsumer that areDouglas Gregor2010-08-135-13/+49
| | | | | | | | used when parsing (or re-parsing) a file. Also, when loading a precompiled header into ASTUnit, create a Sema object that holds onto semantic-analysis information. llvm-svn: 111003
* Make two methods have compatible signatures with the methods they override.John McCall2010-08-131-2/+2
| | | | llvm-svn: 111002
* Revert last patch and r110954 as I meant to.Eric Christopher2010-08-132-24/+24
| | | | llvm-svn: 111001
* Revert r110954 for now, pseudo instructions can't make it through to the JIT.Eric Christopher2010-08-131-0/+1
| | | | llvm-svn: 111000
* Remove -fexceptions from llvmc tests.Mikhail Glushenkov2010-08-1317-17/+17
| | | | llvm-svn: 110999
* llvmc: fix two tests, remove XFAILs.Mikhail Glushenkov2010-08-133-9/+5
| | | | | | | Tested on Linux and Darwin; please add platform-specific XFAILs/mail me a bug report if this still fails. llvm-svn: 110998
* Perform access control when template lookup finds a class template.John McCall2010-08-133-5/+21
| | | | | | This is *really* hacky. llvm-svn: 110997
* Zap unused UnaryOperator::OffsetOf.Eli Friedman2010-08-1314-93/+5
| | | | llvm-svn: 110996
* Let LiveInterval::addRange extend existing ranges, it will verify that valueJakob Stoklund Olesen2010-08-131-5/+2
| | | | | | | | | | numbers match. The old check could accidentally leave holes in openli. Also let useIntv add all ranges for the phi-def value inserted by enterIntvAtEnd. This works as long at the value mapping is established in enterIntvAtEnd. llvm-svn: 110995
* Remember to actually update SplitAnalysis statistics now that we have a fancyJakob Stoklund Olesen2010-08-131-0/+1
| | | | | | function to do it. llvm-svn: 110994
* The Sema object will get destroyed before all of the others anyway. We don't ↵Douglas Gregor2010-08-131-1/+0
| | | | | | need to force it llvm-svn: 110993
* Modified CommandObjectExpression::EvaluateExpression() so that it takes anJohnny Chen2010-08-132-17/+28
| | | | | | | | | additional (ComandReturnObject *) result parameter (default to NULL) and does the right thing in setting the result status. Also removed used variable ast_context. llvm-svn: 110992
* Use getAllOnesValue, saves a copy and looks better.Benjamin Kramer2010-08-131-2/+2
| | | | llvm-svn: 110991
* Documented ClangExpression and made parts of itSean Callanan2010-08-134-125/+196
| | | | | | | more sane (i.e., removed dead arguments, made sensible defaults, etc.) llvm-svn: 110990
* Instead of modifying the ObjC AST to not modify existing declarations, teach ↵Sebastian Redl2010-08-1311-29/+139
| | | | | | chained PCH to overwrite declarations from earlier PCH files in dependent ones. Tell Sema to note when it changes AST nodes so that they have to be reserialized. Finally, the ObjCProtocolDecls created in forward decls, like the ObjCInterfaceDecls in @class forward decls, are not lexically part of the decl context; only the definition is. llvm-svn: 110989
* Make use of __func__ in a block actually refer toFariborz Jahanian2010-08-132-6/+18
| | | | | | block's helper function. Fixes radar 7860965. llvm-svn: 110988
* Reapply this transformation now that it is passing the external test which ↵Nate Begeman2010-08-132-64/+152
| | | | | | it previously failed. llvm-svn: 110987
* Move some code from Verifier into SVI::isValidOperands. This allows us to ↵Nate Begeman2010-08-132-23/+17
| | | | | | catch bad shufflevector operations when they are created, rather than waiting for someone to notice later on. llvm-svn: 110986
* Trim #includes.Dan Gohman2010-08-122-7/+0
| | | | llvm-svn: 110983
* Tidy up whitespace.Dan Gohman2010-08-121-85/+87
| | | | llvm-svn: 110982
* Use .empty() instead of .size().Dan Gohman2010-08-121-1/+1
| | | | llvm-svn: 110981
* Added documentation to ClangASTSource andSean Callanan2010-08-122-8/+136
| | | | | | NameSearchContext. llvm-svn: 110980
* Just disable the hidden-visibility optimization for now by hiding it behindJohn McCall2010-08-1215-30/+61
| | | | | | | | a -cc1 option. The Darwin linker complains about mixed visibility when linking gcc-built objects with clang-built objects, and the optimization isn't really that valuable. Platforms with less ornery linkers can feel free to enable this. llvm-svn: 110979
* Teach CompilerInstance to create and hold on to the Sema object usedDouglas Gregor2010-08-123-6/+48
| | | | | | | for parsing, so that it can persist beyond the lifetime of the parsing call. llvm-svn: 110978
* Fixed copyright notice on ClangASTSource.h.Sean Callanan2010-08-121-8/+9
| | | | llvm-svn: 110977
* Handle an empty dupli.Jakob Stoklund Olesen2010-08-121-2/+8
| | | | | | | | | | | | | | | | | | | | This can happen if the original interval has been broken into two disconnected parts. Ideally, we should be able to detect when the graph is disconnected and create separate intervals, but that code is not implemented yet. Example: Two basic blocks are both branching to a loop header. Our interval is defined in both basic blocks, and live into the loop along both edges. We decide to split the interval around the loop. The interval is split into an inside part and an outside part. The outside part now has two disconnected segments, one in each basic block. If we later decide to split the outside interval into single blocks, we get one interval per basic block and an empty dupli for the remainder. llvm-svn: 110976
* Update the SplitAnalysis statistics as uses are moved from curli to the newJakob Stoklund Olesen2010-08-122-11/+44
| | | | | | | split intervals. THis means the analysis can be used for multiple splits as long as curli doesn't shrink. llvm-svn: 110975
* Small changes to UnreachableCodeCheckerTom Care2010-08-121-3/+20
| | | | | | | - Added detection of Empty CFGBlocks (artificial blocks) - Relaxed an assertion based on an incorrect assumption until further investigation llvm-svn: 110974
* Add a ParseAST overload that takes a Sema object, so that the callerDouglas Gregor2010-08-124-40/+62
| | | | | | | | | can create (and hold on to) the Sema object. Also, move Sema-related initialization/finalization with its various consumers and external sources into the Sema constructor and destructor, rather than placing it in ParseAST. llvm-svn: 110973
* Improved IdempotentOperationChecker false positives and false negatives.Tom Care2010-08-128-134/+268
| | | | | | | | | - Unfinished analysis may still report valid warnings if the path was completely analyzed - New 'CanVary' heuristic to recursively determine if a subexpression has a varying element - Updated test cases, including one known bug - Exposed GRCoreEngine through GRExprEngine llvm-svn: 110970
* Typo.Fariborz Jahanian2010-08-121-1/+1
| | | | llvm-svn: 110965
* Patch to issue warning when colllection expresion's typeFariborz Jahanian2010-08-124-2/+26
| | | | | | | does not implement 'countByEnumeratingWithState' API. Implements radar 7634669. llvm-svn: 110964
* fix PR7876: If ipsccp decides that a function's address is takenChris Lattner2010-08-122-4/+43
| | | | | | before it rewrites the code, we need to use that in the post-rewrite pass. llvm-svn: 110962
* Implement -Wcast-align. The initial design of this diagnostic diverges John McCall2010-08-128-1/+147
| | | | | | | | from GCC's in that we warn on *any* increase in alignment requirements, not just those that are enforced by hardware. Please let us know if this causes major problems for you (which it shouldn't, since it's an optional warning). llvm-svn: 110959
* Fixing the build isn't good enough; back out r110956 and r110953.John McCall2010-08-124-55/+41
| | | | llvm-svn: 110958
* Removed the ClangStmtVisitor, which is old codeSean Callanan2010-08-125-1167/+3
| | | | | | | that translates Clang ASTs straight to DWARF. We are now using IR instead. llvm-svn: 110957
* dgregor should write code that compiles.John McCall2010-08-122-7/+9
| | | | llvm-svn: 110956
* Filling out regex tests...Howard Hinnant2010-08-1227-5/+761
| | | | llvm-svn: 110955
OpenPOWER on IntegriCloud