Clang plugin causes changes in debug information

Hi,

I noticed that using even a simple plugin for clang sometimes causes some shifts in debug info of produced object files.Source code of the plugin is attached.

Could anyone answer if it is expected behaviour? And what causes it if so.

SimplePlugin.cpp (1.18 KB)

+cfe-dev

I suspect that the compiler driver generates slightly different jobs, depending on how it's run (with plugin vs without plugins).

It would help if you could clarify how you generate your outputs and in exactly what way they differ.

-Andrzej