summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Make all CXXConstructExpr's block-level expressions. This is required by Zhongxing Xu2010-11-014-667/+749
| | | | | | method inlining. Temporarily fail a test case. llvm-svn: 117907
* Only apply -fvisibility-inlines-hidden to definitions. ApparentlyJohn McCall2010-11-012-3/+24
| | | | | | | | isInlined() just gives meaningless results for non-definitions. Fixes rdar://problem/8614470 llvm-svn: 117887
* Get rid of more calls to getBaseClassOffsetInBits.Anders Carlsson2010-11-011-10/+5
| | | | llvm-svn: 117883
* Port over a couple of getVBaseClassOffsetInBits call sites to use ↵Anders Carlsson2010-10-312-19/+19
| | | | | | getVBaseClassOffset instead. llvm-svn: 117882
* Rename getBaseClassOffset to getBaseClassOffsetInBits and introduce a ↵Anders Carlsson2010-10-3114-65/+87
| | | | | | getBaseClassOffset which returns the offset in CharUnits. Do the same thing for getVBaseClassOffset. llvm-svn: 117881
* Start converting over the RecordLayoutBuilder next.Anders Carlsson2010-10-311-20/+15
| | | | llvm-svn: 117878
* EmptyObjectMap now uses CharUnits wherever possible.Anders Carlsson2010-10-313-65/+65
| | | | llvm-svn: 117877
* More CharUnits conversion.Anders Carlsson2010-10-311-22/+44
| | | | llvm-svn: 117875
* More CharUnits conversion.Anders Carlsson2010-10-312-145/+28
| | | | llvm-svn: 117874
* Use CharUnits in the EmptyClassOffsets map.Anders Carlsson2010-10-311-3/+12
| | | | llvm-svn: 117873
* Add a DenseMapInfo specializaiton for CharUnits.Anders Carlsson2010-10-311-0/+35
| | | | llvm-svn: 117872
* Correct typos and whitespace, spotted by Nico Weber!Nick Lewycky2010-10-311-3/+3
| | | | llvm-svn: 117871
* Fix typo spotted by Nico Weber.Nick Lewycky2010-10-311-1/+1
| | | | llvm-svn: 117870
* Baby steps towards using only CharUnits for base class offsets in ↵Anders Carlsson2010-10-312-9/+17
| | | | | | ASTRecordLayout. Start by storing the offsets in CharUnits in the ASTRecordLayout object. llvm-svn: 117869
* Teach the constant expr evaluator about derived-to-base casts when no ↵Anders Carlsson2010-10-313-0/+53
| | | | | | virtual bases are involved. Fixes PR5974. llvm-svn: 117868
* Make Clang static analyzer skip function template definitions. This fixes ↵Zhanyong Wan2010-10-312-2/+51
| | | | | | Clang PR 8426, 8427, & 8433. Reviewed by Ted Kremenek and Doug Gregor. llvm-svn: 117853
* Don't try to evaluate the LHS or RHS of a member pointer binary operation. ↵Anders Carlsson2010-10-312-0/+15
| | | | | | Fixes PR8507. llvm-svn: 117850
* Emit an error when trying to form a pointer-to-member to a bitfield.Argyrios Kyrtzidis2010-10-302-0/+10
| | | | | | As a bonus, avoids a crash on the IRGen side due to accepting invalid code. llvm-svn: 117842
* renamed: test/SemaCXX/ptrtomember-badcall.cpp -> test/SemaCXX/ptrtomember.cppArgyrios Kyrtzidis2010-10-301-0/+0
| | | | llvm-svn: 117841
* Revert r117678, "Qualified 'id' should implement all of static class ↵Daniel Dunbar2010-10-302-67/+20
| | | | | | type's", it breaks things. llvm-svn: 117829
* Turns out that we may end up calling dladdr on GetExecutablePath, give it ↵Benjamin Kramer2010-10-302-3/+2
| | | | | | external linkage to make sure the lookup works on all platforms. llvm-svn: 117813
* This function doesn't need external linkage either.Benjamin Kramer2010-10-301-1/+2
| | | | llvm-svn: 117786
* Better solution: calculate the visibility of functions and variablesJohn McCall2010-10-309-185/+227
| | | | | | | | | | independently of whether they're definitions, then teach IR generation to ignore non-explicit visibility when emitting declarations. Use this to make sure that RTTI, vtables, and VTTs get the right visibility. More of rdar://problem/8613093 llvm-svn: 117781
* GCC faithfully calculates visibility for variables independently ofJohn McCall2010-10-302-23/+35
| | | | | | | | whether it's a declaration or not, then ignores that information for declarations unless it was explicitly given. It's not totally clear how that should be mapped into a sane system, but make an effort. llvm-svn: 117780
* Use the expanded form of S_ISREG. Hopefully this unbreaks the MSVC build.Benjamin Kramer2010-10-301-1/+1
| | | | llvm-svn: 117779
* Preserve the template type parameter name when instantiating a templace.Nick Lewycky2010-10-302-1/+13
| | | | | | Fixes PR8489. llvm-svn: 117776
* Rename alignof -> alignOf to avoid irritating C++'0x compilers,Chris Lattner2010-10-307-19/+19
| | | | | | PR8423 llvm-svn: 117775
* Flush statements after writing each DECL_CXX_BASE_SPECIFIERS nodeDouglas Gregor2010-10-302-3/+3
| | | | llvm-svn: 117770
* Don't remove the init expression from the initializer list if it had a ↵Argyrios Kyrtzidis2010-10-302-1/+15
| | | | | | | | | semantic error. We already flag the error with InitListChecker's hadError and we mess up the AST unnecessarily. Fixes rdar://8605381. llvm-svn: 117760
* Add test/SemaCXX/crash-PR7625.cpp into test/SemaCXX/crashes.cppArgyrios Kyrtzidis2010-10-302-6/+7
| | | | llvm-svn: 117759
* test/SemaCXX/crash-8124080.cpp -> test/SemaCXX/crashes.cppArgyrios Kyrtzidis2010-10-302-0/+1
| | | | llvm-svn: 117758
* Add test case for <rdar://problem/8610363> (a bogus report of using an ↵Ted Kremenek2010-10-301-0/+14
| | | | | | | | uninitialized field). This was already fixed, but this serves for detecting regressions. llvm-svn: 117754
* Make the deserialization of macro definitions lazy, so that we canDouglas Gregor2010-10-306-3/+93
| | | | | | | | | load identifiers without loading their corresponding macro definitions. This is likely to improve PCH performance slightly, and reduces deserialization stack depth considerably when using preprocessor metaprogramming. llvm-svn: 117750
* When list-initializing a vector, try to copy-initialize from vectors insteadJohn McCall2010-10-302-53/+91
| | | | | | | | of descending into the subelements. rdar://problem/8345836 llvm-svn: 117749
* Don't test isRegularFile before calling eraseFromDisk, sinceDan Gohman2010-10-291-11/+5
| | | | | | | eraseFromDisk does the same check. This avoids a stat call in the common case. llvm-svn: 117744
* Handle Type.h a better way.Dale Johannesen2010-10-292-1/+2
| | | | llvm-svn: 117743
* Improve diagnostics reporting of un-implementedFariborz Jahanian2010-10-298-25/+37
| | | | | | | methods in protocols when protocols are in system headers and thus ignored. //rdar: //8227199 llvm-svn: 117739
* Generate bitcasts going in and out of MMX parametersDale Johannesen2010-10-293-1/+30
| | | | | | | | | in asm's. PR 8501, 8602988. I don't like including Type.h where it is; the idea was to get references to X86_MMXTy out of the common code. Maybe there's a better way? llvm-svn: 117736
* Use CodeGenFunction's getContext(), for consistency.Dan Gohman2010-10-291-1/+1
| | | | llvm-svn: 117734
* These functions don't need external linkage.Dan Gohman2010-10-291-2/+2
| | | | llvm-svn: 117733
* Make the deserialization of C++ base class specifiers lazy, improvingDouglas Gregor2010-10-2912-41/+272
| | | | | | the performance of C++ PCH and reducing stack depth in the reader. llvm-svn: 117732
* Restore r117644, this time properly ignoring -fvisibility and type visibilityJohn McCall2010-10-294-65/+213
| | | | | | | | | | | | | | | for namespace-scope variable declarations. Apply visibility in IR gen to variables that are merely declared and never defined. We were previously emitting these with default visibility unless they were declared with private_extern. Ignore global visibility settings when computing visibility for a declaration's context, and key several conditions on whether a visibility attribute exists anywhere in the hierarchy as opposed to whether it exists at the current level. llvm-svn: 117729
* Use objdir != srcdir in the getting started doc.Rafael Espindola2010-10-291-2/+5
| | | | llvm-svn: 117723
* Update tests to not search of as.Rafael Espindola2010-10-294-5/+0
| | | | llvm-svn: 117711
* Switch to using the integrated assembler by default on x86 and x86-64 ELFRafael Espindola2010-10-292-8/+20
| | | | | | systems. llvm-svn: 117697
* If Consumer object failed to create due to someFariborz Jahanian2010-10-291-0/+2
| | | | | | | user error, fail gracefully. Fixes pr8508. llvm-svn: 117692
* Qualified 'id' should implement all of static class type'sFariborz Jahanian2010-10-293-21/+67
| | | | | | | | protocols, including those added to class, super class and categories; otherewise issue a warning. This fixes pr8453. llvm-svn: 117678
* After processing named unions do not fall through to handle anonymous unions.Devang Patel2010-10-291-0/+1
| | | | | | This is tested by funcargs.exp in gdb testsuite. llvm-svn: 117659
* When doing name lookup for members don't look into global/namespace scope.Argyrios Kyrtzidis2010-10-292-0/+17
| | | | | | Better performance and fixes rdar://8603569. llvm-svn: 117656
* Revert r117644, "Apply visibility in IR gen to variables that are merelyDaniel Dunbar2010-10-293-177/+62
| | | | | | declared", it breaks things. llvm-svn: 117653
OpenPOWER on IntegriCloud