Skip to content

Commit

Permalink
Move trivial functions into the class definition.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153810 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Mar 31, 2012
1 parent deee238 commit 7baa27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 0 additions & 8 deletions tools/lto/LTOCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ bool LTOCodeGenerator::setCodePICModel(lto_codegen_model 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,
std::string &errMsg) {
if (determineTarget(errMsg))
Expand Down
9 changes: 7 additions & 2 deletions tools/lto/LTOCodeGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ struct LTOCodeGenerator {
bool addModule(struct LTOModule*, std::string &errMsg);
bool setDebugInfo(lto_debug_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 compile_to_file(const char **name, std::string &errMsg);
const void *compile(size_t *length, std::string &errMsg);
Expand Down

0 comments on commit 7baa27d

Please sign in to comment.