Debugging info: produce more descriptive producer string

This commit is contained in:
Matt Pharr
2012-04-25 05:53:42 -10:00
parent 5d58a9e4c2
commit 8547101c4b

View File

@@ -144,10 +144,13 @@ Module::Module(const char *fn) {
std::string directory, name;
GetDirectoryAndFileName(g->currentDirectory, filename, &directory,
&name);
char producerString[512];
sprintf(producerString, "ispc version %s (build %s on %s)",
ISPC_VERSION, BUILD_VERSION, BUILD_DATE);
diBuilder->createCompileUnit(llvm::dwarf::DW_LANG_C99, /* lang */
name, /* filename */
directory, /* directory */
"ispc", /* producer */
producerString, /* producer */
g->opt.level > 0 /* is optimized */,
"-g", /* command line args */
0 /* run time version */);