Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for canInstrumentGlobal (0.17 sec)

  1. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    // InstrumentGlobalsMap and iterate over the InstrumentGlobalsSlice.
    var InstrumentGlobalsMap = make(map[string]ir.Node)
    var InstrumentGlobalsSlice = make([]ir.Node, 0, 0)
    
    func canInstrumentGlobal(g ir.Node) bool {
    	if g.Op() != ir.ONAME {
    		return false
    	}
    	n := g.(*ir.Name)
    	if n.Class == ir.PFUNC {
    		return false
    	}
    	if n.Sym().Pkg != types.LocalPkg {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top