fixes from review of first commit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Kledzik
2008-02-27 22:25:36 +00:00
parent cfd72797b5
commit ef194ed740
6 changed files with 185 additions and 203 deletions

View File

@@ -18,6 +18,7 @@
#include "llvm/Linker.h"
#include "llvm/ADT/StringMap.h"
#include <string>
//
@@ -34,8 +35,9 @@ public:
bool setDebugInfo(lto_debug_model, std::string& errMsg);
bool setCodePICModel(lto_codegen_model, std::string& errMsg);
void addMustPreserveSymbol(const char* sym);
bool writeMergedModules(const char* path, std::string& errMsg);
void* compile(size_t* length, std::string& errMsg);
bool writeMergedModules(const char* path,
std::string& errMsg);
const void* compile(size_t* length, std::string& errMsg);
private:
bool generateAssemblyCode(std::ostream& out,
@@ -53,6 +55,7 @@ private:
bool _scopeRestrictionsDone;
lto_codegen_model _codeModel;
StringSet _mustPreserveSymbols;
llvm::MemoryBuffer* _nativeObjectFile;
};
#endif // LTO_CODE_GENERATOR_H