Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: src/IceConverter.h

Issue 361733002: Update Subzero to start parsing PNaCl bitcode files. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Reformat IceConverter.cpp Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceConverter.h
diff --git a/src/IceConverter.h b/src/IceConverter.h
index 71fc8aa0c5f4dadc13af0867f5da349ccf5b79aa..dc18e7a09838e9b6feca9cf0ba8dee1bb4c35b2e 100644
--- a/src/IceConverter.h
+++ b/src/IceConverter.h
@@ -14,7 +14,7 @@
#ifndef SUBZERO_SRC_ICECONVERTER_H
#define SUBZERO_SRC_ICECONVERTER_H
-#include "IceGlobalContext.h"
+#include "IceTranslator.h"
namespace llvm {
class Module;
@@ -22,27 +22,17 @@ class Module;
namespace Ice {
-class Converter {
+class Converter : public Translator {
public:
- Converter(Ice::GlobalContext *Ctx,
- bool DisableInternal,
- bool SubzeroTimingEnabled,
- bool DisableTranslation)
- : Ctx(Ctx),
- DisableInternal(DisableInternal),
- SubzeroTimingEnabled(SubzeroTimingEnabled),
- DisableTranslation(DisableTranslation)
- {}
+ Converter(GlobalContext *Ctx, Ice::ClFlags &Flags) : Translator(Ctx, Flags) {}
/// Converts the LLVM Module to ICE. Returns exit status 0 if successful,
/// Nonzero otherwise.
int convertToIce(llvm::Module *Mod);
+
private:
- Ice::GlobalContext *Ctx;
- bool DisableInternal;
- bool SubzeroTimingEnabled;
- bool DisableTranslation;
+ Converter(const Converter &) LLVM_DELETED_FUNCTION;
+ Converter &operator=(const Converter &) LLVM_DELETED_FUNCTION;
};
-
}
-#endif // SUBZERO_SRC_ICECONVERTER_H
+#endif // SUBZERO_SRC_ICECONVERTER_H
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceConverter.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698