1 # needs-profiler-support
5 COMPILE_FLAGS=-O -Ccodegen-units=1 -Cprofile-generate="$(TMPDIR)"
8 $(RUSTC) $(COMPILE_FLAGS) --emit=llvm-ir test.rs
9 # We expect symbols starting with "__llvm_profile_".
10 $(CGREP) "__llvm_profile_" < $(TMPDIR)/test.ll
11 # We do NOT expect the "__imp_" version of these symbols.
12 $(CGREP) -v "__imp___llvm_profile_" < $(TMPDIR)/test.ll # 64 bit
13 $(CGREP) -v "__imp____llvm_profile_" < $(TMPDIR)/test.ll # 32 bit