summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Include optional subclass flags, such as inbounds, nsw, etc., ...", thisDaniel Dunbar2009-09-0616-349/+243
| | | | | | breaks MiniSAT on x86_64. llvm-svn: 81098
* Fix spacing.Daniel Dunbar2009-09-061-1/+1
| | | | llvm-svn: 81097
* Initialize default CXXConstructExpr arguments to 0. Fixes a crash when ↵Anders Carlsson2009-09-053-3/+8
| | | | | | destroying the CXXConstructExpr. llvm-svn: 81096
* Now that googletest can print ConstantRange, use EXPECT_EQ when testing forNick Lewycky2009-09-051-149/+149
| | | | | | | equality. Prefer EXPECT_EQ(foo, Full) over EXPECT_TRUE(foo.isFullSet()) because the former will print out the contents of the constant range that failed. llvm-svn: 81094
* Teach googletest to use raw_ostream instead of just std::ostream.Jeffrey Yasskin2009-09-053-8/+26
| | | | | | | | This can break when there are implicit conversions from types raw_ostream understands but std::ostream doesn't, but it increases the number of cases that Just Work. llvm-svn: 81093
* Fix buffer overflow reported in PR 4903.Ted Kremenek2009-09-051-5/+8
| | | | llvm-svn: 81092
* Quote another '%S' in a test.Daniel Dunbar2009-09-051-2/+2
| | | | llvm-svn: 81088
* Rename %S metavar to %M (clang uses %S for the basename of the test file).Daniel Dunbar2009-09-057-23/+23
| | | | llvm-svn: 81087
* Temporary test files should use %t.Daniel Dunbar2009-09-052-6/+6
| | | | llvm-svn: 81086
* Don't depend on arch specific global prefix.Daniel Dunbar2009-09-051-1/+1
| | | | llvm-svn: 81084
* Eliminate uses of %prcontext.Daniel Dunbar2009-09-0516-27/+67
| | | | | | | - I'd appreciate it if someone else eyeballs my changes to make sure I captured the intent of the test. llvm-svn: 81083
* opt: Add -S option to print output as LLVM assembly.Daniel Dunbar2009-09-051-5/+14
| | | | llvm-svn: 81082
* Eliminate some Tclisms.Daniel Dunbar2009-09-052-2/+2
| | | | llvm-svn: 81081
* Refine overrides and thunks for virtual bases. Cleanups. WIP.Mike Stump2009-09-051-25/+41
| | | | llvm-svn: 81080
* Replace some instances of std::string with StringRefs.Benjamin Kramer2009-09-054-20/+18
| | | | llvm-svn: 81079
* Cleanup.Mike Stump2009-09-051-6/+7
| | | | llvm-svn: 81078
* Cleanups.Mike Stump2009-09-051-5/+5
| | | | llvm-svn: 81077
* Delete unused #include.Benjamin Kramer2009-09-051-4/+3
| | | | llvm-svn: 81076
* Cleanups.Mike Stump2009-09-051-2/+0
| | | | llvm-svn: 81075
* Cleanups.Mike Stump2009-09-051-21/+10
| | | | llvm-svn: 81074
* Cleanups.Mike Stump2009-09-051-6/+3
| | | | llvm-svn: 81073
* Cleanups.Mike Stump2009-09-051-5/+29
| | | | llvm-svn: 81072
* Cleanups.Mike Stump2009-09-051-6/+5
| | | | llvm-svn: 81071
* Overhaul the mangler to use a visitor pattern, at least for types. We can ↵John McCall2009-09-051-96/+134
| | | | | | | | | | | safely ignore non-canonical type classes, but apparently we need to know how to mangle dependent names. The missing cases are much more obvious now. llvm-svn: 81070
* Cleanups. WIP.Mike Stump2009-09-051-50/+53
| | | | llvm-svn: 81069
* Pass the ConstructLoc to BuildCXXConstructExpr.Anders Carlsson2009-09-055-20/+27
| | | | llvm-svn: 81068
* Install thunks later to fixup overrides. Track space taken by vbaseMike Stump2009-09-055-65/+101
| | | | | | offsets better for thunk refinements. Cleanups. WIP. llvm-svn: 81067
* pass the correct predecessor node.Zhongxing Xu2009-09-051-1/+1
| | | | llvm-svn: 81066
* Start emitting ElaboratedTypes in C++ mode. Support the effort in variousJohn McCall2009-09-057-5/+29
| | | | | | | | ways: remove elab types during desugaring, enhance pretty-printing to allow tags to be suppressed without suppressing scopes, look through elab types when associating a typedef name with an anonymous record type. llvm-svn: 81065
* Do not call FlushReports() in GRBugReporter's dtor. We already call it inZhongxing Xu2009-09-051-1/+1
| | | | | | ActionGRExprEngine(). llvm-svn: 81064
* Report errors for member functions correctly.Anders Carlsson2009-09-052-2/+8
| | | | llvm-svn: 81063
* Use a separate diagnostic for default function argument expressions.Anders Carlsson2009-09-055-11/+67
| | | | llvm-svn: 81062
* Refactor builtin function evaluation code into its own function.Zhongxing Xu2009-09-052-33/+47
| | | | llvm-svn: 81061
* Stabilize the order of live intervals in the priority_queue used by theBob Wilson2009-09-053-5/+8
| | | | | | | | | | | | | linear scan reg alloc. This fixes a problem I ran into where extracting a function from a larger file caused the generated code to change (masking the problem I was trying to debug) because the allocator behaved differently. This changes the results for two X86 regression checks. stack-color-with-reg is improved, with one less instruction, but pr3495 is worse, with one more copy. As far as I can tell, these tests were just getting lucky or unlucky, so I've changed the expected results. llvm-svn: 81060
* Add missing include.Daniel Dunbar2009-09-051-0/+1
| | | | llvm-svn: 81059
* Detect VLAs.Devang Patel2009-09-051-1/+5
| | | | | | Do not use DenseMap operator[] because it inserts new entry if lookup fails. Use find() to check an entry in a DenseMap first. llvm-svn: 81058
* Basic support for representing elaborated type specifiersJohn McCall2009-09-0511-14/+142
| | | | | | | | | | | | | | | directly in the AST. The current thinking is to create these only in C++ mode for efficiency. But for now, they're not being created at all; patch to follow. This will let us do things like verify that tags match during template instantation, as well as signal that an elaborated type specifier was used for clients that actually care. Optimally, the TypeLoc hierarchy should be adjusted to carry tag location information as well. llvm-svn: 81057
* Ignore malformed global variable debug info.Devang Patel2009-09-041-0/+4
| | | | llvm-svn: 81055
* Improve the AST representation and semantic analysis for externDouglas Gregor2009-09-0410-87/+139
| | | | | | | | | | | templates. We now distinguish between an explicit instantiation declaration and an explicit instantiation definition, and know not to instantiate explicit instantiation declarations. Unfortunately, there is some remaining confusion w.r.t. instantiation of out-of-line member function definitions that causes trouble here. llvm-svn: 81053
* Prune #includes.Benjamin Kramer2009-09-041-3/+0
| | | | llvm-svn: 81052
* Remove an unneeded call to c_str().Benjamin Kramer2009-09-041-1/+1
| | | | llvm-svn: 81051
* Added AsmToken enum constants to MCAsmLexer.h for '[', ']', '{', and '}' inKevin Enderby2009-09-042-1/+5
| | | | | | | preparation of supporting other targets. Then changed the lexer to parse these as tokens. llvm-svn: 81050
* Added the AsmToken::Hash enum constant to MCAsmLexer.h in preparation ofKevin Enderby2009-09-045-26/+49
| | | | | | | | supporting other targets. Changed the code to pass MCAsmInfo to the parser and the lexer. Then changed the lexer to use CommentString from MCAsmInfo instead of a literal '#' character. llvm-svn: 81046
* While replacing an MDNode elment, properly update MDNode's operand list. Devang Patel2009-09-043-3/+292
| | | | | | MDNode's operand list does not include all elements. llvm-svn: 81045
* Prevent warnings on compilers for which its not clear that assert won't return.Andreas Neustifter2009-09-041-0/+1
| | | | llvm-svn: 81044
* Removed yet another std::ostream reference.Lang Hames2009-09-041-3/+0
| | | | llvm-svn: 81042
* Removed some junk and a std::ostream operator that was hanging around.Lang Hames2009-09-041-59/+0
| | | | llvm-svn: 81041
* Replaces uses of unsigned for indexes in LiveInterval and VNInfo withLang Hames2009-09-0412-609/+945
| | | | | | | | a new class, MachineInstrIndex, which hides arithmetic details from most clients. This is a step towards allowing the register allocator to update/insert code during allocation. llvm-svn: 81040
* Test for llvm-gcc commit 81037.Dale Johannesen2009-09-041-0/+7
| | | | llvm-svn: 81038
* Don't generate any code for an explicit call to a trivial destructor. Douglas Gregor2009-09-045-9/+23
| | | | | | | | | | | Now that parsing, semantic analysis, and (I think) code generation of pseudo-destructor expressions and explicit destructor calls works, update the example-dynarray.cpp test to destroy the objects it allocates and update the test to actually compile + link. The code seems correct, but the Clang-compiled version dies with a malloc error. Time to debug! llvm-svn: 81025
OpenPOWER on IntegriCloud