[PATCH] D14468: Add zero size dummy data to ensure section symbol is always created

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 15:22:23 PST 2015


vsk added a comment.

I think the same idea works for InstrProfilingPlatformDarwin.c. Do you mind adding it there?

This could also use a test. Can we compile an input from `test/profile` without `-fprofile-instr-generate`, pass it to the linker, and check for the sections we expect? If that requires too many platform-specific tools, is there some other way we can test this?


http://reviews.llvm.org/D14468





More information about the llvm-commits mailing list