summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Make GenerateVtable a private member function of CGVtableInfo.Anders Carlsson2009-12-063-36/+35
| | | | llvm-svn: 90684
* Fix for PR5693: shift some code into SetClassDeclAttributesFromBase so thatEli Friedman2009-12-052-5/+23
| | | | | | it gets called during template instantiation. llvm-svn: 90682
* Only emit the vtable definition if the class has a key function and we're ↵Anders Carlsson2009-12-051-32/+22
| | | | | | emitting it, or if the class doesn't have a key function and we are emitting the complete constructor. llvm-svn: 90681
* If a class does not have a key function, its linkage should be weak_odr.Anders Carlsson2009-12-053-3/+13
| | | | llvm-svn: 90680
* Use createGlobalVariable for creating vtable variables too.Anders Carlsson2009-12-052-52/+52
| | | | llvm-svn: 90679
* Don't call back() on an empty vector.Benjamin Kramer2009-12-051-2/+1
| | | | llvm-svn: 90678
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-052-11/+110
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71225 http://llvm.org/viewvc/llvm-project?view=rev&revision=73207 http://llvm.org/viewvc/llvm-project?view=rev&revision=73414 llvm-svn: 90677
* CodeGenModule::GenerateVtable now returns a pointer directly to the vtable ↵Anders Carlsson2009-12-052-34/+34
| | | | | | and not to the address point. llvm-svn: 90676
* Make sure that hte vtable always has an i8* array type.Anders Carlsson2009-12-051-5/+4
| | | | llvm-svn: 90675
* Add a function for getting the vtable address point of a class.Anders Carlsson2009-12-052-0/+12
| | | | llvm-svn: 90674
* Simplify BuildVTT.Anders Carlsson2009-12-051-11/+10
| | | | llvm-svn: 90673
* Let the VTT builder pretend that getVtable returns a pointer to the vtable ↵Anders Carlsson2009-12-051-4/+4
| | | | | | and not to the vtable address point. llvm-svn: 90672
* Change getCtorVtable to not return the address point offset, but the global ↵Anders Carlsson2009-12-051-2/+10
| | | | | | variable. llvm-svn: 90671
* Simplify some code.Anders Carlsson2009-12-051-11/+11
| | | | llvm-svn: 90670
* Factor vtable related GlobalVariable creation out into a separate function. ↵Anders Carlsson2009-12-052-24/+58
| | | | | | Add vtable linkage test. llvm-svn: 90667
* Update .xcodeproj fileAnders Carlsson2009-12-051-4/+4
| | | | llvm-svn: 90666
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-9/+37
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 http://llvm.org/viewvc/llvm-project?view=rev&revision=71107 Note: This fixes <rdar://problem/6845623> from protocol to template. llvm-svn: 90665
* Remove 'LangOpts' from Diagnostic (added in ↵Steve Naroff2009-12-054-10/+1
| | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=90642). Simply use the 'LangOpts' member already present in TextDiagnosticPrinter. Sorry for the confusion! llvm-svn: 90664
* Avoid trashing two temporary strings.Benjamin Kramer2009-12-051-2/+2
| | | | llvm-svn: 90663
* strcasecmp is unportable.Benjamin Kramer2009-12-051-1/+1
| | | | llvm-svn: 90662
* Improve the performance of code completion by 2.2x when completing for ↵Douglas Gregor2009-12-051-6/+46
| | | | | | ordinary names with Cocoa.h included, by drastically improving the performance of our results sorting. llvm-svn: 90661
* fix comment.Chris Lattner2009-12-051-1/+1
| | | | llvm-svn: 90660
* consolidate some tests.Chris Lattner2009-12-053-23/+23
| | | | llvm-svn: 90659
* implement rdar://7346691 by codegen'ing struct/array initializersChris Lattner2009-12-055-65/+158
| | | | | | to a memset or a memcpy from a global when possible. llvm-svn: 90658
* various cleanups.Chris Lattner2009-12-051-9/+11
| | | | llvm-svn: 90657
* simplify a condition and add a testcase.Chris Lattner2009-12-052-8/+22
| | | | llvm-svn: 90652
* fix rdar://7446395, a crash on invalid, by fixing a broken assertion.Chris Lattner2009-12-052-4/+5
| | | | llvm-svn: 90647
* Tweak "key function" rules so that they work for templates with virtualEli Friedman2009-12-052-1/+27
| | | | | | inline functions. llvm-svn: 90645
* CIndex: For the time being, don't return translation units if we encounter ↵Daniel Dunbar2009-12-052-4/+22
| | | | | | | | | an error during parsing. - We need to be more careful in the rest of CIndex if we are to handle possibly-invalid ASTs, and don't have much experience with this yet. llvm-svn: 90643
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-054-7/+21
| | | | | | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 Note - This commit only includes the fix for: <rdar://problem/6309338> slightly different error message format for Visual Studio. The fix for <rdar://problem/6845623> from protocol to template. is separate/forthcoming. llvm-svn: 90642
* Skip actually generating the vtable unless we are defining it. This avoidsEli Friedman2009-12-051-24/+38
| | | | | | the side-effects of generating the methods in the vtable (including PR5676). llvm-svn: 90635
* Unbreak -ccc-cxx and -ccc-clang-cxx defaulting.Daniel Dunbar2009-12-051-2/+3
| | | | llvm-svn: 90629
* Don't emit explicit specializations of static member variable declarations.Anders Carlsson2009-12-042-5/+22
| | | | llvm-svn: 90624
* Add support for function try blocks.Mike Stump2009-12-043-2/+51
| | | | llvm-svn: 90622
* Fix "using typename" and the instantiation of non-dependent using declarations.John McCall2009-12-0420-117/+670
| | | | llvm-svn: 90614
* Return bool as a bool instead of a uint64_t.Benjamin Kramer2009-12-041-1/+1
| | | | llvm-svn: 90610
* Be a little more clever about inline member functions that are marked inline ↵Anders Carlsson2009-12-042-1/+36
| | | | | | | | | | | | | | in the inline class declaration but not in the actual definition: class A { inline void f(); } void A::f() { } This is not the most ideal solution, since it doesn't work 100% with regular functions (as my FIXME comment states). llvm-svn: 90607
* Forgot this.Anders Carlsson2009-12-041-1/+4
| | | | llvm-svn: 90606
* Diagnose declarations of implicit member functions.Anders Carlsson2009-12-043-26/+71
| | | | llvm-svn: 90605
* Add an easy accessor for the end of the try/catch statement.Mike Stump2009-12-041-1/+2
| | | | llvm-svn: 90604
* Driver: Switch -ccc-* options to using the standard options functionality.Daniel Dunbar2009-12-045-183/+108
| | | | | | - I still want to get rid of them, but manually handling them isn't adding value. llvm-svn: 90602
* Fix for PR5650 - Revised vector_size attribute handling to be done earlier ↵John Thompson2009-12-044-93/+64
| | | | | | before declaration is finalized. llvm-svn: 90600
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-041-1/+1
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70978 llvm-svn: 90597
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-041-0/+3
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70926 llvm-svn: 90596
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-041-3/+13
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70922 llvm-svn: 90595
* Put in FIXME that this mangling is not official in.Alexis Hunt2009-12-041-1/+1
| | | | llvm-svn: 90594
* OptTable: Allow option groups to be used to define "help groups", which willDaniel Dunbar2009-12-043-20/+67
| | | | | | collate the options inside that group. llvm-svn: 90592
* OptParser: Add HelpHidden flag.Daniel Dunbar2009-12-043-8/+25
| | | | llvm-svn: 90591
* Switch mangling of literal operator names to a string that'sAlexis Hunt2009-12-041-1/+1
| | | | | | | | | | a) legal b) likely to be chosen as the official mangling This will break ABI compatibility with all literal operator names, so you may need to recompile any such code. Sorry. llvm-svn: 90587
* Be sure to instantiate rtti for non-polymorphic bases.Mike Stump2009-12-041-1/+4
| | | | llvm-svn: 90586
OpenPOWER on IntegriCloud