| 30 | } |
| 31 | |
| 32 | void Linker::CleanCode() |
| 33 | { |
| 34 | exTypes.clear(); |
| 35 | exTypeExtra.clear(); |
| 36 | exVariables.clear(); |
| 37 | exFunctions.clear(); |
| 38 | exCode.clear(); |
| 39 | exSymbols.clear(); |
| 40 | exLocals.clear(); |
| 41 | exModules.clear(); |
| 42 | exCodeInfo.clear(); |
| 43 | exSource.clear(); |
| 44 | exCloseLists.clear(); |
| 45 | |
| 46 | #ifdef NULLC_LLVM_SUPPORT |
| 47 | llvmModuleSizes.clear(); |
| 48 | llvmModuleCodes.clear(); |
| 49 | #endif |
| 50 | |
| 51 | jumpTargets.clear(); |
| 52 | |
| 53 | globalVarSize = 0; |
| 54 | offsetToGlobalCode = 0; |
| 55 | |
| 56 | typeRemap.clear(); |
| 57 | funcRemap.clear(); |
| 58 | moduleRemap.clear(); |
| 59 | |
| 60 | funcMap.clear(); |
| 61 | |
| 62 | NULLC::ClearMemory(); |
| 63 | } |
| 64 | |
| 65 | bool Linker::LinkCode(const char *code) |
| 66 | { |