scons: Add warning for overloaded virtual functions
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:06 +0000 (05:56 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:06 +0000 (05:56 -0500)
commit0acd2a96e5cd2a9bece4d5468dd1a8cc96c8aafe
tree0feaa85408e6aba2d4e4b3ad12b7dd4a98e27ed9
parentd670fa60a105676a19dd91440f66dc186450b3e8
scons: Add warning for overloaded virtual functions

A derived function with a different signature than a base class
function will result in the base class function of the same name being
hidden. The parameter list and return type for the member function in
the derived class must match those of the member function in the base
class, otherwise the function in the derived class will hide the
function in the base class and no polymorphic behaviour will occur.

This patch addresses these warnings by ensuring a unique function name
to avoid (unintentionally) hiding any functions.
13 files changed:
SConstruct
src/arch/alpha/isa/branch.isa
src/arch/alpha/process.hh
src/arch/arm/isa/templates/branch.isa
src/arch/arm/linux/process.hh
src/arch/arm/process.hh
src/arch/mips/isa/formats/branch.isa
src/arch/mips/process.hh
src/arch/power/insts/branch.hh
src/arch/power/linux/process.hh
src/arch/power/process.hh
src/arch/sparc/process.hh
src/arch/x86/process.hh