Adjust to disable IL generation under FULL_AOT_RUNTIME
[mono.git] / mcs / class / referencesource / System / regex / system / text / regularexpressions / RegexParser.cs
index b105e22a5a9d94a21ca410712a8ec8073b707822..8cf2d64a9db72d7fbd5253643d7d9e9cb7a25b28 100644 (file)
@@ -1336,7 +1336,7 @@ namespace System.Text.RegularExpressions {
          */
         internal bool IsOnlyTopOption(RegexOptions option) {
             return(option == RegexOptions.RightToLeft
-#if !SILVERLIGHT
+#if !(SILVERLIGHT||FULL_AOT_RUNTIME)
                 || option == RegexOptions.Compiled
 #endif
                 || option == RegexOptions.CultureInvariant
@@ -1476,7 +1476,7 @@ namespace System.Text.RegularExpressions {
                 ch += (char)('a' - 'A');
 
             switch (ch) {
-#if !SILVERLIGHT
+#if !(SILVERLIGHT||FULL_AOT_RUNTIME)
                 case 'c':
                     return RegexOptions.Compiled;
 #endif