Hi All,
I am trying to get the name (hello) of the c file (e.g., hello.c) that I am processing.
When I use Module.getModuleIdentifier, I get as the
module id. It seems I am doing something wrong. Any help
is greatly appreciated. Thanks.
George
Hi All,
I am trying to get the name (hello) of the c file (e.g., hello.c) that I am processing.
When I use Module.getModuleIdentifier, I get as the
module id. It seems I am doing something wrong. Any help
is greatly appreciated. Thanks.
George
Hi George,
I am trying to get the name (hello) of the c file (e.g., hello.c) that I am
processing.
When I use Module.getModuleIdentifier, I get <stdin> as the
module id. It seems I am doing something wrong. Any help
is greatly appreciated. Thanks.
the LLVM IR does not contain the name of the file in general. That's normal
since (1) bitcode need not come from compiling a file; and (2) the bitcode
could be the result of compiling several files and linking their bitcode
together (so corresponds to several files). Anyway, you should use debug info
to get this information (which will only work if the bitcode contains debug
info).
Ciao, Duncan.