llvm.org GIT mirror llvm / 7baa27d
Move trivial functions into the class definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153810 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
2 changed file(s) with 7 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
112112 llvm_unreachable("Unknown PIC model!");
113113 }
114114
115 void LTOCodeGenerator::setCpu(const char* mCpu) {
116 _mCpu = mCpu;
117 }
118
119 void LTOCodeGenerator::addMustPreserveSymbol(const char* sym) {
120 _mustPreserveSymbols[sym] = 1;
121 }
122
123115 bool LTOCodeGenerator::writeMergedModules(const char *path,
124116 std::string &errMsg) {
125117 if (determineTarget(errMsg))
4141 bool addModule(struct LTOModule*, std::string &errMsg);
4242 bool setDebugInfo(lto_debug_model, std::string &errMsg);
4343 bool setCodePICModel(lto_codegen_model, std::string &errMsg);
44 void setCpu(const char *cpu);
45 void addMustPreserveSymbol(const char *sym);
44
45 void setCpu(const char* mCpu) { _mCpu = mCpu; }
46
47 void addMustPreserveSymbol(const char* sym) {
48 _mustPreserveSymbols[sym] = 1;
49 }
50
4651 bool writeMergedModules(const char *path, std::string &errMsg);
4752 bool compile_to_file(const char **name, std::string &errMsg);
4853 const void *compile(size_t *length, std::string &errMsg);