Using the module ID here is wrong for a couple of reasons:
- The module ID is not persisted, so we can end up with different object file contents given the same input file (for example if the same file is accessed via different paths).
- With ThinLTO the module ID field may contain the path to a bitcode file, which is incorrect, as the .file argument is supposed to contain the path to a source file.