43dca6a8d2 
								
							 
						 
						
							
							
								
								Simplify code a bit by using CallArgList::add.  No intended functionality change.  
							
							... 
							
							
							
							llvm-svn: 130699 
							
						 
						
							2011-05-02 17:57:46 +00:00  
				
					
						
							
							
								 
						
							
								e5ec21c977 
								
							 
						 
						
							
							
								
								Change CollectPrimaryBases to collect the bases in the right order. Fixes one half of PR9660.  
							
							... 
							
							
							
							llvm-svn: 129252 
							
						 
						
							2011-04-10 18:00:32 +00:00  
				
					
						
							
							
								 
						
							
								68aad14dd3 
								
							 
						 
						
							
							
								
								Make -fdump-vtable-layouts also dump vtable indices for all virtual member functions in the class.  
							
							... 
							
							
							
							llvm-svn: 129250 
							
						 
						
							2011-04-10 17:42:45 +00:00  
				
					
						
							
							
								 
						
							
								bb4e977218 
								
							 
						 
						
							
							
								
								[Reapply r128776, modified so that it does not break debug info.]  
							
							... 
							
							
							
							Change the return type of CodeGenVTables::getVirtualBaseOffsetOffset() to
CharUnits. No change in functionality intended.
llvm-svn: 129072 
							
						 
						
							2011-04-07 12:37:09 +00:00  
				
					
						
							
							
								 
						
							
								3a09bc5ab0 
								
							 
						 
						
							
							
								
								[Reapply r128773. This is not the source of the issues Devang was seeing  
							
							... 
							
							
							
							with debug info.]
Use CharUnits for the offsets in the VirtualBaseClassOffsetOffsetsMapTy. No
change in functionality intended.
llvm-svn: 129048 
							
						 
						
							2011-04-07 01:22:42 +00:00  
				
					
						
							
							
								 
						
							
								25c82240e9 
								
							 
						 
						
							
							
								
								[Reapply r128771. It wasn't the source of the issues Devang saw with debug  
							
							... 
							
							
							
							info.]
Use CharUnits for the offset type in the ClassNamesAndOffsets map in
dumpLayout(). No change in functionality intended.
llvm-svn: 129046 
							
						 
						
							2011-04-07 00:59:42 +00:00  
				
					
						
							
							
								 
						
							
								42a9d29c2c 
								
							 
						 
						
							
							
								
								Reapply r128770. It's not the cause of the issues Devang saw with debug info.  
							
							... 
							
							
							
							Use CharUnits for the offsets in the VBaseOffsetOffsetsMapTy types. No
change in functionality intended.
llvm-svn: 129043 
							
						 
						
							2011-04-07 00:55:01 +00:00  
				
					
						
							
							
								 
						
							
								84852bbb42 
								
							 
						 
						
							
							
								
								Revert r128770, r128771, r128773 and r128776 for now. It breaks debug info.  
							
							... 
							
							
							
							llvm-svn: 128842 
							
						 
						
							2011-04-04 20:36:06 +00:00  
				
					
						
							
							
								 
						
							
								1473c9a7c4 
								
							 
						 
						
							
							
								
								Change the return type of CodeGenVTables::getVirtualBaseOffsetOffset() to  
							
							... 
							
							
							
							CharUnits. No change in functionality intended.
llvm-svn: 128776 
							
						 
						
							2011-04-02 17:52:22 +00:00  
				
					
						
							
							
								 
						
							
								1b23db93df 
								
							 
						 
						
							
							
								
								Use CharUnits for the offsets in the VirtualBaseClassOffsetOffsetsMapTy. No  
							
							... 
							
							
							
							change in functionality intended.
llvm-svn: 128773 
							
						 
						
							2011-04-02 17:13:02 +00:00  
				
					
						
							
							
								 
						
							
								cf4ef5314f 
								
							 
						 
						
							
							
								
								Use CharUnits for the offset type in the ClassNamesAndOffsets map in  
							
							... 
							
							
							
							dumpLayout(). No change in functionality intended.
llvm-svn: 128771 
							
						 
						
							2011-04-02 17:03:24 +00:00  
				
					
						
							
							
								 
						
							
								1eac9f1546 
								
							 
						 
						
							
							
								
								Use CharUnits for the offsets in the VBaseOffsetOffsetsMapTy types. No  
							
							... 
							
							
							
							change in functionality intended.
llvm-svn: 128770 
							
						 
						
							2011-04-02 16:57:20 +00:00  
				
					
						
							
							
								 
						
							
								6b20919317 
								
							 
						 
						
							
							
								
								Convert BaseOffset::NonVirtualOffset to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128756 
							
						 
						
							2011-04-02 01:32:03 +00:00  
				
					
						
							
							
								 
						
							
								872d74a591 
								
							 
						 
						
							
							
								
								Convert offset parameters and return values of VTableComponent methods to  
							
							... 
							
							
							
							CharUnits. No change in functionality intended.
llvm-svn: 128754 
							
						 
						
							2011-04-02 01:14:48 +00:00  
				
					
						
							
							
								 
						
							
								496906629b 
								
							 
						 
						
							
							
								
								Convert the offsets in VCallOffsetMap to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128753 
							
						 
						
							2011-04-02 00:51:15 +00:00  
				
					
						
							
							
								 
						
							
								eff7fe645b 
								
							 
						 
						
							
							
								
								Convert offset parameters of VTableBuilder::IsOverriderUsed() to CharUnits.  
							
							... 
							
							
							
							No change in functionality intended.
llvm-svn: 128752 
							
						 
						
							2011-04-02 00:44:58 +00:00  
				
					
						
							
							
								 
						
							
								4680e9219a 
								
							 
						 
						
							
							
								
								Convert the return value of  
							
							... 
							
							
							
							VCallAndVBaseOffsetBuilder::getCurrentOffsetOffset() to CharUnits. No change
in functionality intended.
llvm-svn: 128603 
							
						 
						
							2011-03-31 01:08:46 +00:00  
				
					
						
							
							
								 
						
							
								47e1e54343 
								
							 
						 
						
							
							
								
								Convert the OffsetInLayoutClass parameter of  
							
							... 
							
							
							
							VCallAndVBaseOffsetBuilder::AddVBaseOffsets() to CharUnits. No change in
functionality intended.
llvm-svn: 128600 
							
						 
						
							2011-03-31 00:56:47 +00:00  
				
					
						
							
							
								 
						
							
								1a93b3b080 
								
							 
						 
						
							
							
								
								Convert the OffsetInLayoutClass of the VCallAndVBaseOffsetBuilder  
							
							... 
							
							
							
							constructor to CharUnits. No change in functionality intended.
llvm-svn: 128598 
							
						 
						
							2011-03-31 00:48:04 +00:00  
				
					
						
							
							
								 
						
							
								9b32ee1611 
								
							 
						 
						
							
							
								
								Convert the RealBaseOffset parameter of  
							
							... 
							
							
							
							VCallAndVBaseOffsetBuilder::AddVCallAndVBaseOffsets() to
CharUnits. No change in functionality intended.
llvm-svn: 128596 
							
						 
						
							2011-03-31 00:37:24 +00:00  
				
					
						
							
							
								 
						
							
								20c0f02cc5 
								
							 
						 
						
							
							
								
								Remove PHINode::reserveOperandSpace(). Instead, add a parameter to  
							
							... 
							
							
							
							PHINode::Create() giving the (known or expected) number of operands.
llvm-svn: 128538 
							
						 
						
							2011-03-30 11:28:58 +00:00  
				
					
						
							
							
								 
						
							
								b3ba775523 
								
							 
						 
						
							
							
								
								Convert the offset parameter of  
							
							... 
							
							
							
							VCallAndVBaseOffsetBuilder::AddVCallOffsets() to CharUnits. No change in
functionality intended.
llvm-svn: 128531 
							
						 
						
							2011-03-30 10:11:40 +00:00  
				
					
						
							
							
								 
						
							
								075de167f8 
								
							 
						 
						
							
							
								
								Convert local offset variable to CharUnits in AddVCallOffsets. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128522 
							
						 
						
							2011-03-30 01:21:33 +00:00  
				
					
						
							
							
								 
						
							
								078f3e6905 
								
							 
						 
						
							
							
								
								Convert a local offset variable to CharUnits. No change in functionality  
							
							... 
							
							
							
							intended.
llvm-svn: 128521 
							
						 
						
							2011-03-30 01:14:22 +00:00  
				
					
						
							
							
								 
						
							
								032a903982 
								
							 
						 
						
							
							
								
								Convert the OffsetInLayoutClass parameter of DeterminePrimaryVirtualBases()  
							
							... 
							
							
							
							to CharUnits. No change in functionality intended.
llvm-svn: 128520 
							
						 
						
							2011-03-30 01:10:23 +00:00  
				
					
						
							
							
								 
						
							
								45956a467e 
								
							 
						 
						
							
							
								
								Convert the OffsetInLayoutClass parameter of LayoutSecondaryVTables to  
							
							... 
							
							
							
							CharUnits. No change in functionality intended.
llvm-svn: 128516 
							
						 
						
							2011-03-30 00:50:28 +00:00  
				
					
						
							
							
								 
						
							
								f9742cca31 
								
							 
						 
						
							
							
								
								Convert offset parameter in LayoutPrimaryAndSecondaryVTables() to CharUnits.  
							
							... 
							
							
							
							No change in functionality intended.
llvm-svn: 128393 
							
						 
						
							2011-03-27 20:33:38 +00:00  
				
					
						
							
							
								 
						
							
								9a7e532dd8 
								
							 
						 
						
							
							
								
								Convert VTableBuilder::MostDerivedClassOffset to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128392 
							
						 
						
							2011-03-27 20:20:28 +00:00  
				
					
						
							
							
								 
						
							
								0d5804a622 
								
							 
						 
						
							
							
								
								Convert FinalOverriders::MostDerivedClassOffset to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128391 
							
						 
						
							2011-03-27 20:10:29 +00:00  
				
					
						
							
							
								 
						
							
								5f3601d35a 
								
							 
						 
						
							
							
								
								Remove a fixed FIXME comment (the base offset has already been converted to  
							
							... 
							
							
							
							CharUnits).
llvm-svn: 128386 
							
						 
						
							2011-03-27 19:19:52 +00:00  
				
					
						
							
							
								 
						
							
								f4be03ae04 
								
							 
						 
						
							
							
								
								Convert the offset parameters of AddMethods() to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128385 
							
						 
						
							2011-03-27 19:15:11 +00:00  
				
					
						
							
							
								 
						
							
								f736d9cb75 
								
							 
						 
						
							
							
								
								Convert the BaseOffsetInLayoutClass parameter of ComputeThisAdjustment() to  
							
							... 
							
							
							
							CharUnits. No change in functionality intended.
llvm-svn: 128384 
							
						 
						
							2011-03-27 19:03:44 +00:00  
				
					
						
							
							
								 
						
							
								7d876f3649 
								
							 
						 
						
							
							
								
								Convert offset members in MethodInfo to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128383 
							
						 
						
							2011-03-27 18:57:53 +00:00  
				
					
						
							
							
								 
						
							
								358d056c14 
								
							 
						 
						
							
							
								
								We were emitting construction v-tables with internal linkage all the time.  
							
							... 
							
							
							
							Emit them instead with the linkage of the VTT.
I'm actually really ambivalent about this;  it's what GCC does, but outside
of improving code size (if the linkage is coalescing), I'm not sure it's
at all relevant.  Construction vtables are naturally referenced only by the
VTT, which is itself only referenced by complete-object constructors and
destructors;  giving the construction vtables possibly-external linkage is
important if you have an optimization that drills through the VTT to a
reference to a particular construction vtable which it cannot just emit
itself.
llvm-svn: 128374 
							
						 
						
							2011-03-27 09:00:25 +00:00  
				
					
						
							
							
								 
						
							
								1baf38f5a6 
								
							 
						 
						
							
							
								
								On Mac OS X, the presence of an 'availability' attribute for that  
							
							... 
							
							
							
							platform implies default visibility. To achieve these, refactor our
lookup of explicit visibility so that we search for both an explicit
VisibilityAttr and an appropriate AvailabilityAttr, favoring the
VisibilityAttr if it is present.
llvm-svn: 128336 
							
						 
						
							2011-03-26 12:10:19 +00:00  
				
					
						
							
							
								 
						
							
								58863dc46a 
								
							 
						 
						
							
							
								
								Convert the OffsetInLayoutClass parameter of  
							
							... 
							
							
							
							FinalOverriders::ComputeBaseOffsets() to CharUnits. No change in
functionality intended.
llvm-svn: 128323 
							
						 
						
							2011-03-26 01:36:26 +00:00  
				
					
						
							
							
								 
						
							
								785cbdb6da 
								
							 
						 
						
							
							
								
								Convert FinalOverriders::Offset to CharUnits. No change in functionality  
							
							... 
							
							
							
							intended.
llvm-svn: 128321 
							
						 
						
							2011-03-26 01:29:16 +00:00  
				
					
						
							
							
								 
						
							
								808457cfd6 
								
							 
						 
						
							
							
								
								Convert offset in MethodBaseOffsetPairTy to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128318 
							
						 
						
							2011-03-26 01:18:17 +00:00  
				
					
						
							
							
								 
						
							
								70b47e08dc 
								
							 
						 
						
							
							
								
								Convert the offsets in SubobjectOffsetMapTy to CharUnits. No change in  
							
							... 
							
							
							
							functionality intended.
llvm-svn: 128317 
							
						 
						
							2011-03-26 01:09:13 +00:00  
				
					
						
							
							
								 
						
							
								ce81203d9b 
								
							 
						 
						
							
							
								
								Convert several local variables to CharUnits. No change in functionality  
							
							... 
							
							
							
							intended.
llvm-svn: 128315 
							
						 
						
							2011-03-26 00:51:24 +00:00  
				
					
						
							
							
								 
						
							
								16ffcac1a2 
								
							 
						 
						
							
							
								
								Convert the BaseOffset member of BaseSubobject to CharUnits from bits. No  
							
							... 
							
							
							
							change in functionality intended.
llvm-svn: 128190 
							
						 
						
							2011-03-24 01:21:01 +00:00  
				
					
						
							
							
								 
						
							
								32ea969415 
								
							 
						 
						
							
							
								
								Use a slightly more semantic interface for emitting call arguments.  
							
							... 
							
							
							
							llvm-svn: 127494 
							
						 
						
							2011-03-11 20:59:21 +00:00  
				
					
						
							
							
								 
						
							
								5fe009660d 
								
							 
						 
						
							
							
								
								Tame this assert, hopefully fixing self-host.  
							
							... 
							
							
							
							llvm-svn: 127319 
							
						 
						
							2011-03-09 07:12:35 +00:00  
				
					
						
							
							
								 
						
							
								a738c25f5e 
								
							 
						 
						
							
							
								
								Use the "undergoes default argument promotion" bit on parameters to  
							
							... 
							
							
							
							simplify the logic of initializing function parameters so that we don't need
both a variable declaration and a type in FunctionArgList.  This also means
that we need to propagate the CGFunctionInfo down in a lot of places rather
than recalculating it from the FAL.  There's more we can do to eliminate
redundancy here, and I've left FIXMEs behind to do it.
llvm-svn: 127314 
							
						 
						
							2011-03-09 04:27:21 +00:00  
				
					
						
							
							
								 
						
							
								99cc30c371 
								
							 
						 
						
							
							
								
								Revert "Add CC_Win64ThisCall and set it in the necessary places."  
							
							... 
							
							
							
							This reverts commit 126863.
llvm-svn: 126886 
							
						 
						
							2011-03-02 21:36:49 +00:00  
				
					
						
							
							
								 
						
							
								e60baf731b 
								
							 
						 
						
							
							
								
								Revert "Add preliminary support for MSVC-style vtables."  
							
							... 
							
							
							
							This reverts commit 126865.
llvm-svn: 126876 
							
						 
						
							2011-03-02 20:40:50 +00:00  
				
					
						
							
							
								 
						
							
								a6c995dbb2 
								
							 
						 
						
							
							
								
								Add preliminary support for MSVC-style vtables.  
							
							... 
							
							
							
							llvm-svn: 126865 
							
						 
						
							2011-03-02 19:38:28 +00:00  
				
					
						
							
							
								 
						
							
								454464b491 
								
							 
						 
						
							
							
								
								Add CC_Win64ThisCall and set it in the necessary places.  
							
							... 
							
							
							
							llvm-svn: 126863 
							
						 
						
							2011-03-02 19:36:23 +00:00  
				
					
						
							
							
								 
						
							
								3968cd0f7b 
								
							 
						 
						
							
							
								
								For consistency, use llvm::raw_ostream in the rest of the mangle api.  
							
							... 
							
							
							
							llvm-svn: 125360 
							
						 
						
							2011-02-11 02:52:17 +00:00  
				
					
						
							
							
								 
						
							
								ad7c5c1657 
								
							 
						 
						
							
							
								
								Reorganize CodeGen{Function,Module} to eliminate the unfortunate  
							
							... 
							
							
							
							Block{Function,Module} base class.  Minor other refactorings.
Fixed a few address-space bugs while I was there.
llvm-svn: 125085 
							
						 
						
							2011-02-08 08:22:06 +00:00