Fix header file for multi-target output with pointers to varying in exported functions.

This commit is contained in:
james.brodman
2013-12-12 13:27:23 -05:00
parent d10c0d9545
commit 01432670fd
4 changed files with 270 additions and 76 deletions

View File

@@ -50,6 +50,8 @@ namespace llvm
class raw_string_ostream;
}
struct DispatchHeaderInfo;
class Module {
public:
/** The name of the source file being compiled should be passed as the
@@ -171,8 +173,10 @@ private:
filename may be NULL, indicating that output should go to standard
output. */
bool writeOutput(OutputType ot, const char *filename,
const char *includeFileName = NULL);
const char *includeFileName = NULL,
DispatchHeaderInfo *DHI = 0);
bool writeHeader(const char *filename);
bool writeDispatchHeader(DispatchHeaderInfo *DHI);
bool writeDeps(const char *filename);
bool writeDevStub(const char *filename);
bool writeHostStub(const char *filename);
@@ -181,8 +185,6 @@ private:
llvm::Module *module, OutputType outputType,
const char *outFileName);
static bool writeBitcode(llvm::Module *module, const char *outFileName);
static bool writeDispatchHeader(const char *dispatchHeaderFileName);
bool writeDispatchHeaderSection(FILE *file, unsigned int *flags);
void execPreprocessor(const char *infilename, llvm::raw_string_ostream* ostream) const;
};