summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the code for converting a member pointer to a bool so that it is usableEli Friedman2009-12-112-28/+17
| | | | | | for logical not. llvm-svn: 91112
* Fix for PR5718: implement equality comparisons for member function pointers.Eli Friedman2009-12-111-1/+28
| | | | llvm-svn: 91108
* Improve linkage of RTTI data structures. Introduce ↵Anders Carlsson2009-12-114-52/+100
| | | | | | CodeGenModule::GetAddrOfRTTI which figures out the right linkage of the RTTI information for the given type and whether it should be defined or not. I will migrate clients over to GetAddrOfRTTI in subsequent commits (with tests). llvm-svn: 91098
* Use named flags in RTTIBuilder::BuildPointerType.Anders Carlsson2009-12-111-25/+54
| | | | llvm-svn: 91088
* When extending the lifetime of a temporary, make sure to emit a branch to ↵Anders Carlsson2009-12-111-1/+4
| | | | | | the cleanup exit block. This fixes a broken module error in LLVMCConfigurationEmitter.cpp. llvm-svn: 91086
* When an exception needs to be freed by calling __cxa_exception_free, make ↵Anders Carlsson2009-12-111-12/+20
| | | | | | | | sure to stash away the exception pointer somewhere. This fixes an "Instruction does not dominate all uses!" verification error when compiling TableGen. llvm-svn: 91084
* Fix spacing.Mike Stump2009-12-111-1/+1
| | | | llvm-svn: 91078
* Support unary type traits in a scalar context. Not that I've actually seenEli Friedman2009-12-101-0/+4
| | | | | | this construct, but might as well for completeness. llvm-svn: 91071
* Make sure that explicitly instantiated functions get the right linkage.Anders Carlsson2009-12-101-3/+12
| | | | llvm-svn: 91069
* Mangle static variables inside Objective-C methods in Objective-C++. We ↵Anders Carlsson2009-12-101-3/+24
| | | | | | currently mangle them the same way as gcc does. llvm-svn: 91042
* Get rid of static variable.Eli Friedman2009-12-103-4/+5
| | | | llvm-svn: 91041
* Actually store the pointer into the global variable, spotted by Eli.Anders Carlsson2009-12-101-2/+5
| | | | llvm-svn: 91036
* Setup cleanup on eh edge out of the construction of the cleanup objectMike Stump2009-12-101-12/+6
| | | | | | during throw to deallocate the exception object. WIP. llvm-svn: 91035
* Handle emitting static variables that have reference type.Anders Carlsson2009-12-101-1/+4
| | | | llvm-svn: 91027
* Separate generating code for static variables and global variables.Anders Carlsson2009-12-101-33/+59
| | | | llvm-svn: 91026
* Move more decl related functions to CGDeclCXX.cppAnders Carlsson2009-12-102-117/+117
| | | | llvm-svn: 91012
* Add CGDeclCXX.cpp and move EmitCXXGlobalVarDeclInit there.Anders Carlsson2009-12-103-45/+63
| | | | llvm-svn: 91006
* Fixup spacing.Mike Stump2009-12-101-41/+41
| | | | llvm-svn: 91001
* Fix spacing.Mike Stump2009-12-101-1/+1
| | | | llvm-svn: 91000
* Ensure we only generate one terminate handler.Mike Stump2009-12-103-2/+8
| | | | llvm-svn: 90998
* Remove obsolete FIXME and some dead fallback code.Mike Stump2009-12-091-6/+0
| | | | llvm-svn: 90997
* Add terminate handler to cleanups on exceptional edges.Mike Stump2009-12-091-3/+2
| | | | llvm-svn: 90996
* Code gen for ObjCIsaExpr AST used as lvalue.Fariborz Jahanian2009-12-093-15/+24
| | | | | | (fixes radar 7457534). llvm-svn: 90995
* Add terminate handler for copy constructors for thrown objects. WIP.Mike Stump2009-12-091-2/+16
| | | | llvm-svn: 90994
* Break out code for reuse. WIP.Mike Stump2009-12-092-22/+41
| | | | llvm-svn: 90991
* Add throw support. WIP.Mike Stump2009-12-091-1/+1
| | | | llvm-svn: 90982
* Codegen. support for ObjCIsaExpr AST which until nowFariborz Jahanian2009-12-091-0/+19
| | | | | | was not needed (fixes radar 7453430). llvm-svn: 90981
* Add cleanups for exceptional edges. WIP.Mike Stump2009-12-095-37/+177
| | | | llvm-svn: 90940
* Fix for PR5709: use the computed type of the declaration instead of theEli Friedman2009-12-091-6/+1
| | | | | | | type of the builtin when generating the function declaration for a builtin library call. llvm-svn: 90936
* More detailed analysis of typecast to an objective-c pointerFariborz Jahanian2009-12-081-0/+1
| | | | | | in objective-c++ mode without being too lenient. llvm-svn: 90895
* Add fixme.Mike Stump2009-12-081-0/+1
| | | | llvm-svn: 90884
* Remove some old code. WIP.Mike Stump2009-12-081-5/+0
| | | | llvm-svn: 90882
* Update CGExprConstant for change to emit padding values as undef.Daniel Dunbar2009-12-081-1/+5
| | | | | | - This fixes 2003-05-21-BitfieldHandling. llvm-svn: 90876
* Use StringRef in CGDebugInfo::EmitFunctionStart.Benjamin Kramer2009-12-084-9/+6
| | | | llvm-svn: 90856
* Use a Twine to concatenate the name instead of going through std::string.Benjamin Kramer2009-12-081-3/+1
| | | | llvm-svn: 90854
* Use Path.makeAbsolute() and make a constant std::string a const char*.Benjamin Kramer2009-12-081-7/+3
| | | | llvm-svn: 90851
* DeclRefExpr stores a ValueDecl internally.John McCall2009-12-081-1/+1
| | | | | | Template instantiation can re-use DeclRefExprs. llvm-svn: 90848
* Build fix.Eli Friedman2009-12-081-1/+1
| | | | llvm-svn: 90841
* Fix for PR5707: make sure implicit copy constructors initialize the vtableEli Friedman2009-12-082-0/+8
| | | | | | pointer. llvm-svn: 90840
* Slight tweak to vtable linkage.Eli Friedman2009-12-081-1/+1
| | | | llvm-svn: 90832
* Misc key function fixes.Eli Friedman2009-12-081-0/+10
| | | | llvm-svn: 90831
* Fix some direct checks of expressions which might be surrounded by parentheses.Eli Friedman2009-12-082-4/+5
| | | | llvm-svn: 90825
* Make copy assignment operator synthesis not explode for classes with complexEli Friedman2009-12-081-2/+10
| | | | | | | | | | | | or non-record aggregate members. It might be worth spending some time to optimize this code (and the parallel code for copy constructors) to memcpy in larger chunks, rather than copying one member at a time. Not sure exactly how beneficial that would be, but it seems like could help for large classes with, for example, a vtable pointer forcing the generation of a copy constructor. llvm-svn: 90823
* Remove several .c_str() to be forward-compatible with StringRef.Jeffrey Yasskin2009-12-081-2/+2
| | | | llvm-svn: 90822
* Fixup catch parameters with class reference type. WIP.Mike Stump2009-12-081-1/+1
| | | | llvm-svn: 90821
* No need to add tail padding if the resulting LLVM struct type will have the ↵Anders Carlsson2009-12-081-2/+8
| | | | | | same size as the final record size. llvm-svn: 90820
* A bunch more thunk fixes from misc testing.Eli Friedman2009-12-074-54/+72
| | | | | | (Yes, I do intend to commit some tests for this.) llvm-svn: 90818
* Add codegen support for exception specifications. WIP.Mike Stump2009-12-073-0/+127
| | | | llvm-svn: 90817
* Correctly handle conditional operators involving throw.Eli Friedman2009-12-071-4/+5
| | | | llvm-svn: 90800
* Make the comma operator consistently call EnsureInsertPoint.Eli Friedman2009-12-071-0/+1
| | | | llvm-svn: 90799
OpenPOWER on IntegriCloud