mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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:
parent
deee238128
commit
7baa27d3b3
@ -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))
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user