diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-14 01:03:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-14 01:03:01 +0000 |
commit | a55ce7febfaa52670ce3d9c236d3033de80ac091 (patch) | |
tree | 5955950569cfe09f083ba0e217a1a8085a844103 /gold/parameters.h | |
parent | b3c8c50a8f21a913e6c5dc91ff843cd4e924b01a (diff) | |
download | gdb-a55ce7febfaa52670ce3d9c236d3033de80ac091.zip gdb-a55ce7febfaa52670ce3d9c236d3033de80ac091.tar.gz gdb-a55ce7febfaa52670ce3d9c236d3033de80ac091.tar.bz2 |
From Craig Silverstein: Rework debug info code a bit, add option for
ODR violations, add test case.
Diffstat (limited to 'gold/parameters.h')
-rw-r--r-- | gold/parameters.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/parameters.h b/gold/parameters.h index 79545ac..353f01f 100644 --- a/gold/parameters.h +++ b/gold/parameters.h @@ -121,6 +121,14 @@ class Parameters return this->symbolic_; } + // Whether we should try to detect violations of the One Definition Rule. + bool + detect_odr_violations() const + { + gold_assert(this->options_valid_); + return this->detect_odr_violations_; + } + // The general linker optimization level. int optimization_level() const @@ -218,6 +226,8 @@ class Parameters Strip strip_; // Whether we are doing a symbolic link. bool symbolic_; + // Whether we try to detect One Definition Rule violations. + bool detect_odr_violations_; // The optimization level. int optimization_level_; // Whether the -E/--export-dynamic flag is set. |