Fix clang warnings / move some plat code into poly.

This commit is contained in:
Ben Vanik
2014-07-10 22:51:27 -07:00
parent 7daa85179c
commit 9031d5f4a4
41 changed files with 347 additions and 218 deletions

View File

@@ -44,7 +44,7 @@ bool Instrument::Detach() {
}
FunctionInstrument::FunctionInstrument(Runtime* runtime, Function* function)
: target_(function), Instrument(runtime) {}
: Instrument(runtime), target_(function) {}
bool FunctionInstrument::Attach() {
if (!Instrument::Attach()) {
@@ -81,7 +81,7 @@ void FunctionInstrument::Exit(ThreadState* thread_state) {
MemoryInstrument::MemoryInstrument(Runtime* runtime, uint64_t address,
uint64_t end_address)
: address_(address), end_address_(end_address), Instrument(runtime) {}
: Instrument(runtime), address_(address), end_address_(end_address) {}
bool MemoryInstrument::Attach() {
if (!Instrument::Attach()) {