| Index: src/IceConverter.h
|
| diff --git a/src/IceConverter.h b/src/IceConverter.h
|
| index bf8122895142bf1579c311c9cf20526b5bb8bb7e..b187357f7c093551f7acda6884d93f21d2fb5054 100644
|
| --- a/src/IceConverter.h
|
| +++ b/src/IceConverter.h
|
| @@ -24,16 +24,18 @@ namespace Ice {
|
|
|
| class Converter : public Translator {
|
| public:
|
| - Converter(GlobalContext *Ctx) : Translator(Ctx) {}
|
| + Converter(llvm::Module *Mod, GlobalContext *Ctx, const 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;
|
| };
|
|
|