| Index: src/IceConverter.h
|
| diff --git a/src/IceConverter.h b/src/IceConverter.h
|
| index 30d3b6041c4d8e859d6fa2e0351b4c5b135273d1..7b0d6e793b8081168b076a185acc4b3989a2cee8 100644
|
| --- a/src/IceConverter.h
|
| +++ b/src/IceConverter.h
|
| @@ -24,16 +24,18 @@ namespace Ice {
|
|
|
| class Converter : public Translator {
|
| public:
|
| - Converter(GlobalContext *Ctx, Ice::ClFlags &Flags) : Translator(Ctx, Flags) {}
|
| + Converter(llvm::Module *Mod, GlobalContext *Ctx, Ice::ClFlags &Flags)
|
| + : Translator(Ctx, Flags), Mod(Mod) {}
|
| /// Converts the LLVM Module to ICE. Sets exit status to false if successful,
|
| /// true otherwise.
|
| - void convertToIce(llvm::Module *Mod);
|
| + void convertToIce();
|
|
|
| private:
|
| + llvm::Module *Mod;
|
| // Converts globals to ICE, and then machine code.
|
| - void convertGlobals(llvm::Module *Mod);
|
| + void convertGlobals();
|
| // Converts functions to ICE, and then machine code.
|
| - void convertFunctions(llvm::Module *Mod);
|
| + void convertFunctions();
|
| Converter(const Converter &) LLVM_DELETED_FUNCTION;
|
| Converter &operator=(const Converter &) LLVM_DELETED_FUNCTION;
|
| };
|
|
|