Adding --dwarf-version=X option to control emitted DWARF version.

This commit is contained in:
Dmitry Babokin
2016-07-04 16:13:06 +03:00
parent e3837dcc63
commit d8b353ac98
4 changed files with 32 additions and 7 deletions

8
ispc.h
View File

@@ -606,6 +606,14 @@ struct Globals {
program in its output. */
bool generateDebuggingSymbols;
/** Require generation of DWARF of certain version (2, 3, 4). For
default version, this field is set to 0. */
// Hint: to verify dwarf version in the object file, run on Linux:
// readelf --debug-dump=info object.o | grep -A 2 'Compilation Unit @'
// on Mac:
// xcrun dwarfdump -r0 object.o
int generateDWARFVersion;
/** If true, function names are mangled by appending the target ISA and
vector width to them. */
bool mangleFunctionsWithTarget;