Allow tweaking of the compiler artifacts to emit in the profile.

It's really frustrating being unable to easily dump the assembly
and llvm ir generated by rustc through cargo. This patch provides
a way.