Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

root/gen/linker.h

Revision 1313:2bebd938548f, 1.0 kB (checked in by Frits van Bommel <fvbommel wxs.nl>, 3 years ago)

Fix typo in function name

Line 
1 #ifndef LDC_GEN_LINKER_H
2 #define LDC_GEN_LINKER_H
3
4 #include "llvm/Support/CommandLine.h"
5 #include <vector>
6
7 extern llvm::cl::opt<bool> quiet;
8
9 namespace llvm
10 {
11     class Module;
12 }
13
14 /**
15  * Links the modules given in MV in to dst.
16  * @param dst Destination module.
17  * @param MV Vector of modules to link in to destination.
18  */
19 void linkModules(llvm::Module* dst, const std::vector<llvm::Module*>& MV);
20
21 /**
22  * Link an executable.
23  * @param argv0 the argv[0] value as passed to main
24  * @return 0 on success.
25  */
26 int linkExecutable(const char* argv0);
27
28 /**
29  * Link an executable only from object files.
30  * @param argv0 the argv[0] value as passed to main
31  * @return 0 on success.
32  */
33 int linkObjToExecutable(const char* argv0);
34
35 /**
36  * Delete the executable that was previously linked with linkExecutable.
37  */
38 void deleteExecutable();
39
40 /**
41  * Runs the executable that was previously linked with linkExecutable.
42  * @return the return status of the executable.
43  */
44 int runExecutable();
45
46 #endif // LDC_GEN_LINKER_H
Note: See TracBrowser for help on using the browser.
Copyright © 2008, LDC Development Team.