Signed-off-by: cui fliter <imcusg@gmail.com>
Этот коммит содержится в:
cui fliter 2023-04-18 09:17:36 +08:00 коммит произвёл Ron Evans
родитель 64957c5254
коммит 4e9f9e2773
4 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -23,7 +23,7 @@ type espImageSegment struct {
data []byte data []byte
} }
// makeESPFirmare converts an input ELF file to an image file for an ESP32 or // makeESPFirmareImage converts an input ELF file to an image file for an ESP32 or
// ESP8266 chip. This is a special purpose image format just for the ESP chip // ESP8266 chip. This is a special purpose image format just for the ESP chip
// family, and is parsed by the on-chip mask ROM bootloader. // family, and is parsed by the on-chip mask ROM bootloader.
// //

Просмотреть файл

@ -229,7 +229,7 @@ func extractSubfield(t types.Type, field int) types.Type {
} }
} }
// flattenAggregateTypeOffset returns the offsets from the start of an object of // flattenAggregateTypeOffsets returns the offsets from the start of an object of
// type t if this object were flattened like in flattenAggregate. Used together // type t if this object were flattened like in flattenAggregate. Used together
// with flattenAggregate to know the start indices of each value in the // with flattenAggregate to know the start indices of each value in the
// non-flattened object. // non-flattened object.

Просмотреть файл

@ -724,7 +724,7 @@ func (c *compilerContext) getMethodsString(itf *types.Interface) string {
return strings.Join(methods, "; ") return strings.Join(methods, "; ")
} }
// getInterfaceImplementsfunc returns a declared function that works as a type // getInterfaceImplementsFunc returns a declared function that works as a type
// switch. The interface lowering pass will define this function. // switch. The interface lowering pass will define this function.
func (c *compilerContext) getInterfaceImplementsFunc(assertedType types.Type) llvm.Value { func (c *compilerContext) getInterfaceImplementsFunc(assertedType types.Type) llvm.Value {
s, _ := getTypeCodeName(assertedType.Underlying()) s, _ := getTypeCodeName(assertedType.Underlying())

Просмотреть файл

@ -417,7 +417,7 @@ func (c *compilerContext) addStandardDefinedAttributes(llvmFn llvm.Value) {
} }
} }
// addStandardAttribute adds all attributes added to defined functions. // addStandardAttributes adds all attributes added to defined functions.
func (c *compilerContext) addStandardAttributes(llvmFn llvm.Value) { func (c *compilerContext) addStandardAttributes(llvmFn llvm.Value) {
c.addStandardDeclaredAttributes(llvmFn) c.addStandardDeclaredAttributes(llvmFn)
c.addStandardDefinedAttributes(llvmFn) c.addStandardDefinedAttributes(llvmFn)