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

Side by Side Diff: courgette/disassembler_elf_32_x86.h

Issue 2554863002: Cleanup remaining class/struct fwd declarations (Closed)
Patch Set: Style fixes Created 4 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 unified diff | Download patch
« no previous file with comments | « courgette/disassembler_elf_32_arm.h ('k') | courgette/disassembler_win32_x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_X86_H_ 5 #ifndef COURGETTE_DISASSEMBLER_ELF_32_X86_H_
6 #define COURGETTE_DISASSEMBLER_ELF_32_X86_H_ 6 #define COURGETTE_DISASSEMBLER_ELF_32_X86_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "courgette/disassembler_elf_32.h" 14 #include "courgette/disassembler_elf_32.h"
15 #include "courgette/types_elf.h" 15 #include "courgette/types_elf.h"
16 16
17 namespace courgette { 17 namespace courgette {
18 18
19 class AssemblyProgram;
20 class InstructionReceptor; 19 class InstructionReceptor;
21 20
22 class DisassemblerElf32X86 : public DisassemblerElf32 { 21 class DisassemblerElf32X86 : public DisassemblerElf32 {
23 public: 22 public:
24 // Returns true if a valid executable is detected using only quick checks. 23 // Returns true if a valid executable is detected using only quick checks.
25 static bool QuickDetect(const uint8_t* start, size_t length) { 24 static bool QuickDetect(const uint8_t* start, size_t length) {
26 return DisassemblerElf32::QuickDetect(start, length, EM_386); 25 return DisassemblerElf32::QuickDetect(start, length, EM_386);
27 } 26 }
28 27
29 class TypedRVAX86 : public TypedRVA { 28 class TypedRVAX86 : public TypedRVA {
(...skipping 30 matching lines...) Expand all
60 std::map<RVA, int> rel32_target_rvas_; 59 std::map<RVA, int> rel32_target_rvas_;
61 #endif 60 #endif
62 61
63 private: 62 private:
64 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32X86); 63 DISALLOW_COPY_AND_ASSIGN(DisassemblerElf32X86);
65 }; 64 };
66 65
67 } // namespace courgette 66 } // namespace courgette
68 67
69 #endif // COURGETTE_DISASSEMBLER_ELF_32_X86_H_ 68 #endif // COURGETTE_DISASSEMBLER_ELF_32_X86_H_
OLDNEW
« no previous file with comments | « courgette/disassembler_elf_32_arm.h ('k') | courgette/disassembler_win32_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698