| Index: src/IceClFlags.cpp
|
| diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp
|
| index 1f4f3956a00b57c2061c4e1a4c0fedc7458d76b1..1e194a12b8a902b7c2fe3e221bf4e3dbe9dc2eaa 100644
|
| --- a/src/IceClFlags.cpp
|
| +++ b/src/IceClFlags.cpp
|
| @@ -50,6 +50,12 @@ cl::opt<bool> AllowIacaMarks(
|
| "inserted. These binaries are not executable."),
|
| cl::init(false));
|
|
|
| +cl::opt<bool> AllowUnsafeIas(
|
| + "unsafe-ias",
|
| + cl::desc("Convert (potentially broken) instructions to bytes in "
|
| + "integrated assembler."),
|
| + cl::init(false));
|
| +
|
| // This is currently needed by crosstest.py.
|
| cl::opt<bool> AllowUninitializedGlobals(
|
| "allow-uninitialized-globals",
|
| @@ -382,6 +388,7 @@ void ClFlags::resetClFlags(ClFlags &OutFlags) {
|
| OutFlags.AllowErrorRecovery = false;
|
| OutFlags.AllowExternDefinedSymbols = false;
|
| OutFlags.AllowIacaMarks = false;
|
| + OutFlags.AllowUnsafeIas = false;
|
| OutFlags.AllowUninitializedGlobals = false;
|
| OutFlags.DataSections = false;
|
| OutFlags.DecorateAsm = false;
|
| @@ -456,6 +463,7 @@ void ClFlags::getParsedClFlags(ClFlags &OutFlags) {
|
| OutFlags.setDisableInternal(::DisableInternal);
|
| OutFlags.setDisableIRGeneration(::DisableIRGeneration);
|
| OutFlags.setDisableTranslation(::DisableTranslation);
|
| + OutFlags.setAllowUnsafeIas(::AllowUnsafeIas);
|
| OutFlags.setDumpStats(::DumpStats);
|
| OutFlags.setEnableBlockProfile(::EnableBlockProfile);
|
| OutFlags.setForceMemIntrinOpt(::ForceMemIntrinOpt);
|
|
|