[llvm-dev] Help in generating Debug symbols
Florian Hahn via llvm-dev
llvm-dev at lists.llvm.org
Fri Dec 8 05:18:23 PST 2017
Hi,
On 08/12/2017 06:24, Nagaraju Mekala via llvm-dev wrote:
> Hi all,
>
> I am new to LLVM. Currently working on adding an embedded target to
> LLVM backend.
> I was able to generate the object file for our target using LLVM and
> Clang framework.
> The generated object file doesn't contain any debug symbols in it.
>
What commands are you using? Do you get object files with debug info for
other backends? If you pass `clang -g`, debug info should be generated.
In the IR, you should have !dbg metadata.
Cheers,
Florian
More information about the llvm-dev
mailing list