diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2016-04-08 22:42:14 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-04-08 22:42:14 +0000 |
| commit | 86e8cc8a9b0689ebb1a797bf7070bea092408653 (patch) | |
| tree | 0424639a80abc34265edc1bf63793d2fef58df37 | |
| parent | da21e98932d5b31375b9b934ad8e322e4c76c74c (diff) | |
| download | bcm5719-llvm-86e8cc8a9b0689ebb1a797bf7070bea092408653.tar.gz bcm5719-llvm-86e8cc8a9b0689ebb1a797bf7070bea092408653.zip | |
benchcomp: Look at all sections whose names begin with .text, not just the .text section.
llvm-svn: 265859
| -rw-r--r-- | llgo/utils/benchcomp/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llgo/utils/benchcomp/main.go b/llgo/utils/benchcomp/main.go index 433add546e1..94acafc9db8 100644 --- a/llgo/utils/benchcomp/main.go +++ b/llgo/utils/benchcomp/main.go @@ -22,7 +22,7 @@ func symsizes(path string) map[string]float64 { panic(err.Error()) } for _, sym := range syms { - if sym.Section < elf.SectionIndex(len(f.Sections)) && f.Sections[sym.Section].Name == ".text" { + if sym.Section < elf.SectionIndex(len(f.Sections)) && strings.HasPrefix(f.Sections[sym.Section].Name, ".text") { m[sym.Name] = float64(sym.Size) } } |

