From 8547101c4bb331ff7adc3f617d6cb4e1d273b57d Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 25 Apr 2012 05:53:42 -1000 Subject: [PATCH] Debugging info: produce more descriptive producer string --- module.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module.cpp b/module.cpp index d082255f..bb339e4d 100644 --- a/module.cpp +++ b/module.cpp @@ -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 */);