Index: src/llvm2ice.cpp |
diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp |
index b1d2d6fbdaaa7b608f3e795c4c68d07b91fb5643..a4a96b9808309c73e6ae1cd63d915fd9067e53cd 100644 |
--- a/src/llvm2ice.cpp |
+++ b/src/llvm2ice.cpp |
@@ -143,7 +143,7 @@ int main(int argc, char **argv) { |
Flags); |
if (BuildOnRead) { |
- Ice::PNaClTranslator Translator(&Ctx); |
+ Ice::PNaClTranslator Translator(&Ctx, Flags); |
Translator.translate(IRFilename); |
return Translator.getErrorStatus(); |
} else { |
@@ -163,8 +163,8 @@ int main(int argc, char **argv) { |
return 1; |
} |
- Ice::Converter Converter(&Ctx); |
- Converter.convertToIce(Mod); |
+ Ice::Converter Converter(Mod, &Ctx, Flags); |
+ Converter.convertToIce(); |
return Converter.getErrorStatus(); |
} |
} |