Move trivial functions into the class definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-03-31 11:25:18 +00:00
parent deee238128
commit 7baa27d3b3
2 changed files with 7 additions and 10 deletions

View File

@ -113,14 +113,6 @@ bool LTOCodeGenerator::setCodePICModel(lto_codegen_model model,
llvm_unreachable("Unknown PIC model!"); llvm_unreachable("Unknown PIC model!");
} }
void LTOCodeGenerator::setCpu(const char* mCpu) {
_mCpu = mCpu;
}
void LTOCodeGenerator::addMustPreserveSymbol(const char* sym) {
_mustPreserveSymbols[sym] = 1;
}
bool LTOCodeGenerator::writeMergedModules(const char *path, bool LTOCodeGenerator::writeMergedModules(const char *path,
std::string &errMsg) { std::string &errMsg) {
if (determineTarget(errMsg)) if (determineTarget(errMsg))

View File

@ -42,8 +42,13 @@ struct LTOCodeGenerator {
bool addModule(struct LTOModule*, std::string &errMsg); bool addModule(struct LTOModule*, std::string &errMsg);
bool setDebugInfo(lto_debug_model, std::string &errMsg); bool setDebugInfo(lto_debug_model, std::string &errMsg);
bool setCodePICModel(lto_codegen_model, std::string &errMsg); bool setCodePICModel(lto_codegen_model, std::string &errMsg);
void setCpu(const char *cpu);
void addMustPreserveSymbol(const char *sym); void setCpu(const char* mCpu) { _mCpu = mCpu; }
void addMustPreserveSymbol(const char* sym) {
_mustPreserveSymbols[sym] = 1;
}
bool writeMergedModules(const char *path, std::string &errMsg); bool writeMergedModules(const char *path, std::string &errMsg);
bool compile_to_file(const char **name, std::string &errMsg); bool compile_to_file(const char **name, std::string &errMsg);
const void *compile(size_t *length, std::string &errMsg); const void *compile(size_t *length, std::string &errMsg);