Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1226)

Unified Diff: courgette/disassembler_elf_32_x86.h

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/disassembler_elf_32_arm.cc ('k') | courgette/disassembler_elf_32_x86.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/disassembler_elf_32_x86.h
diff --git a/courgette/disassembler_elf_32_x86.h b/courgette/disassembler_elf_32_x86.h
index 913e93f98c7f44924c8eedfc55090d29b5222eb4..5c87d4c889e8ad8a42c8b62e64e2cf787ab424c8 100644
--- a/courgette/disassembler_elf_32_x86.h
+++ b/courgette/disassembler_elf_32_x86.h
@@ -5,7 +5,10 @@
#ifndef COURGETTE_DISASSEMBLER_ELF_32_X86_H_
#define COURGETTE_DISASSEMBLER_ELF_32_X86_H_
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
#include "courgette/disassembler_elf_32.h"
#include "courgette/memory_allocator.h"
#include "courgette/types_elf.h"
@@ -21,7 +24,7 @@ class DisassemblerElf32X86 : public DisassemblerElf32 {
explicit TypedRVAX86(RVA rva) : TypedRVA(rva) {
}
- CheckBool ComputeRelativeTarget(const uint8* op_pointer) override {
+ CheckBool ComputeRelativeTarget(const uint8_t* op_pointer) override {
set_relative_target(Read32LittleEndian(op_pointer) + 4);
return true;
}
@@ -31,7 +34,7 @@ class DisassemblerElf32X86 : public DisassemblerElf32 {
return program->EmitRel32(program->FindOrMakeRel32Label(target_rva));
}
- uint16 op_size() const override { return 4; }
+ uint16_t op_size() const override { return 4; }
};
explicit DisassemblerElf32X86(const void* start, size_t length);
« no previous file with comments | « courgette/disassembler_elf_32_arm.cc ('k') | courgette/disassembler_elf_32_x86.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698