]> git.saurik.com Git - apple/ld64.git/blob - src/Readers/ObjectFileMachO-all.h
0f27244552e987380f23fd00b07d8775dd14c678
[apple/ld64.git] / src / Readers / ObjectFileMachO-all.h
1 /*
2 * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24
25 #ifndef __OBJECTFILEMACHO__
26 #define __OBJECTFILEMACHO__
27
28 class Options;
29
30 namespace ppc {
31 class macho_header;
32 namespace ObjectFileMachO {
33 extern class ObjectFile::Reader* MakeReader(const macho_header*, const char* path, const ObjectFile::ReaderOptions& options);
34 };
35 namespace ObjectFileDylibMachO {
36 extern class ObjectFile::Reader* MakeReader(const macho_header*, const char* path, const ObjectFile::ReaderOptions& options);
37 };
38 namespace ObjectFileArchiveMachO {
39 extern class ObjectFile::Reader* MakeReader(const uint8_t fileContent[], uint64_t fileLength, const char* path, const ObjectFile::ReaderOptions& options);
40 };
41 };
42
43 namespace ppc64 {
44 class macho_header;
45 namespace ObjectFileMachO {
46 extern class ObjectFile::Reader* MakeReader(const macho_header*, const char* path, const ObjectFile::ReaderOptions& options);
47 };
48 namespace ObjectFileDylibMachO {
49 extern class ObjectFile::Reader* MakeReader(const macho_header*, const char* path, const ObjectFile::ReaderOptions& options);
50 };
51 namespace ObjectFileArchiveMachO {
52 extern class ObjectFile::Reader* MakeReader(const uint8_t fileContent[], uint64_t fileLength, const char* path, const ObjectFile::ReaderOptions& options);
53 };
54 };
55
56 #undef i386 // compiler sometimes #defines this
57 namespace i386 {
58 class macho_header;
59 namespace ObjectFileMachO {
60 extern class ObjectFile::Reader* MakeReader(const macho_header*, const char* path, const ObjectFile::ReaderOptions& options);
61 };
62 namespace ObjectFileDylibMachO {
63 extern class ObjectFile::Reader* MakeReader(const macho_header*, const char* path, const ObjectFile::ReaderOptions& options);
64 };
65 namespace ObjectFileArchiveMachO {
66 extern class ObjectFile::Reader* MakeReader(const uint8_t fileContent[], uint64_t fileLength, const char* path, const ObjectFile::ReaderOptions& options);
67 };
68 };
69
70
71
72 #endif // __OBJECTFILEMACHO__
73
74
75