| Index: src/llvm2ice.cpp
|
| diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp
|
| index bf7de31a233df13fbae0cdc575e1a709e8c412d8..dab13f08351ac439c7cf26973624ecd8b045423a 100644
|
| --- a/src/llvm2ice.cpp
|
| +++ b/src/llvm2ice.cpp
|
| @@ -88,6 +88,10 @@ DisableTranslation("notranslate", cl::desc("Disable Subzero translation"));
|
| static cl::opt<bool> SubzeroTimingEnabled(
|
| "timing", cl::desc("Enable breakdown timing of Subzero translation"));
|
|
|
| +static cl::opt<bool>
|
| + DisableGlobals("disable-globals",
|
| + cl::desc("Disable global initializer translation"));
|
| +
|
| static cl::opt<NaClFileFormat> InputFileFormat(
|
| "bitcode-format", cl::desc("Define format of input file:"),
|
| cl::values(clEnumValN(LLVMFormat, "llvm", "LLVM file (default)"),
|
| @@ -128,6 +132,7 @@ int main(int argc, char **argv) {
|
| Flags.DisableInternal = DisableInternal;
|
| Flags.SubzeroTimingEnabled = SubzeroTimingEnabled;
|
| Flags.DisableTranslation = DisableTranslation;
|
| + Flags.DisableGlobals = DisableGlobals;
|
|
|
| if (BuildOnRead) {
|
| Ice::PNaClTranslator Translator(&Ctx, Flags);
|
|
|