| OLD | NEW |
| 1 //===-LTOCodeGenerator.h - LLVM Link Time Optimizer -----------------------===// | 1 //===-LTOCodeGenerator.h - LLVM Link Time Optimizer -----------------------===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file declares the LTOCodeGenerator class. | 10 // This file declares the LTOCodeGenerator class. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Parse the options set in setCodeGenDebugOptions. Like | 85 // Parse the options set in setCodeGenDebugOptions. Like |
| 86 // setCodeGenDebugOptions, this must be called before | 86 // setCodeGenDebugOptions, this must be called before |
| 87 // LTOCodeGenerator::compilexxx() and LTOCodeGenerator::writeMergedModules() | 87 // LTOCodeGenerator::compilexxx() and LTOCodeGenerator::writeMergedModules() |
| 88 void parseCodeGenDebugOptions(); | 88 void parseCodeGenDebugOptions(); |
| 89 | 89 |
| 90 // Write the merged module to the file specified by the given path. | 90 // Write the merged module to the file specified by the given path. |
| 91 // Return true on success. | 91 // Return true on success. |
| 92 bool writeMergedModules(const char *path, std::string &errMsg); | 92 bool writeMergedModules(const char *path, std::string &errMsg); |
| 93 | 93 |
| 94 // @LOCALMOD-BEGIN |
| 95 void wrapSymbol(const char *sym); |
| 96 // @LOCALMOD-END |
| 97 |
| 94 // Compile the merged module into a *single* object file; the path to object | 98 // Compile the merged module into a *single* object file; the path to object |
| 95 // file is returned to the caller via argument "name". Return true on | 99 // file is returned to the caller via argument "name". Return true on |
| 96 // success. | 100 // success. |
| 97 // | 101 // |
| 98 // NOTE that it is up to the linker to remove the intermediate object file. | 102 // NOTE that it is up to the linker to remove the intermediate object file. |
| 99 // Do not try to remove the object file in LTOCodeGenerator's destructor | 103 // Do not try to remove the object file in LTOCodeGenerator's destructor |
| 100 // as we don't who (LTOCodeGenerator or the obj file) will last longer. | 104 // as we don't who (LTOCodeGenerator or the obj file) will last longer. |
| 101 bool compile_to_file(const char **name, | 105 bool compile_to_file(const char **name, |
| 102 bool disableOpt, | 106 bool disableOpt, |
| 103 bool disableInline, | 107 bool disableInline, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 std::vector<char *> CodegenOptions; | 158 std::vector<char *> CodegenOptions; |
| 155 std::string MCpu; | 159 std::string MCpu; |
| 156 std::string MAttr; | 160 std::string MAttr; |
| 157 std::string NativeObjectPath; | 161 std::string NativeObjectPath; |
| 158 TargetOptions Options; | 162 TargetOptions Options; |
| 159 lto_diagnostic_handler_t DiagHandler; | 163 lto_diagnostic_handler_t DiagHandler; |
| 160 void *DiagContext; | 164 void *DiagContext; |
| 161 }; | 165 }; |
| 162 } | 166 } |
| 163 #endif | 167 #endif |
| OLD | NEW |