StandardConversionSequence Before;
/// EllipsisConversion - When this is true, it means user-defined
- /// conversion sequence starts with a ... (elipsis) conversion, instead of
+ /// conversion sequence starts with a ... (ellipsis) conversion, instead of
/// a standard conversion. In this case, 'Before' field must be ignored.
// FIXME. I much rather put this as the first field. But there seems to be
// a gcc code gen. bug which causes a crash in a test. Putting it here seems
static const char Name[] = "MSRTTIClassHierarchyDescriptor";
if (auto Type = CGM.getModule().getTypeByName(Name))
return Type;
- // Forward declare RTTIClassHierarchyDescriptor to break a cycle.
+ // Forward-declare RTTIClassHierarchyDescriptor to break a cycle.
llvm::StructType *Type = llvm::StructType::create(CGM.getLLVMContext(), Name);
llvm::Type *FieldTypes[] = {
CGM.IntTy,
if (auto CHD = Module.getNamedGlobal(MangledName))
return CHD;
- // Serialize the class hierarchy and initalize the CHD Fields.
+ // Serialize the class hierarchy and initialize the CHD Fields.
SmallVector<MSRTTIClass, 8> Classes;
serializeClassHierarchy(Classes, RD);
Classes.front().initialize(/*Parent=*/0, /*Specifier=*/0);
llvm::Value *GEPIndices[] = {llvm::ConstantInt::get(CGM.IntTy, 0),
llvm::ConstantInt::get(CGM.IntTy, 0)};
- // Forward declare the class hierarchy descriptor
+ // Forward-declare the class hierarchy descriptor
auto Type = getClassHierarchyDescriptorType(CGM);
auto CHD = new llvm::GlobalVariable(Module, Type, /*Constant=*/true, Linkage,
/*Initializer=*/0, MangledName.c_str());
Mangler.mangleCXXRTTIBaseClassArray(RD, Out);
}
- // Foward declare the base class array.
+ // Forward-declare the base class array.
// cl.exe pads the base class array with 1 (in 32 bit mode) or 4 (in 64 bit
// mode) bytes of padding. We provide a pointer sized amount of padding by
// adding +1 to Classes.size(). The sections have pointer alignment and are
if (auto BCD = Module.getNamedGlobal(MangledName))
return BCD;
- // Forward declare the base class descriptor.
+ // Forward-declare the base class descriptor.
auto Type = getBaseClassDescriptorType(CGM);
auto BCD = new llvm::GlobalVariable(Module, Type, /*Constant=*/true, Linkage,
/*Initializer=*/0, MangledName.c_str());
->second.hasVtorDisp())
VFPtrOffset = Info->NonVirtualOffset.getQuantity() + 4;
- // Forward declare the complete object locator.
+ // Forward-declare the complete object locator.
llvm::StructType *Type = getCompleteObjectLocatorType(CGM);
auto COL = new llvm::GlobalVariable(Module, Type, /*Constant=*/true, Linkage,
/*Initializer=*/0, MangledName.c_str());
} else if (!MD->isTrivial() || MD->isExplicitlyDefaulted() ||
MD->isCopyAssignmentOperator() ||
MD->isMoveAssignmentOperator()) {
- // Instantiate non-trival or explicitly defaulted methods, and the
+ // Instantiate non-trivial or explicitly defaulted methods, and the
// copy assignment / move assignment operators.
S.MarkFunctionReferenced(Class->getLocation(), MD);
// Resolve its exception specification; CodeGen needs it.