mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 04:49:04 +00:00
+1
-1
@@ -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.
|
||||||
//
|
//
|
||||||
|
|||||||
+1
-1
@@ -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())
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user