@@ -85,7 +85,6 @@ data IOption = IOption {
8585 , opt_nobanner :: Bool
8686 , opt_quiet :: Bool
8787 , opt_codegen :: Codegen
88− , opt_portableCG :: Bool
8988 , opt_outputTy :: OutputType
9089 , opt_ibcsubdir :: FilePath
9190 , opt_importdirs :: [FilePath]
@@ -113,8 +112,7 @@ defaultOpts = IOption { opt_logLevel = 0
113112 , opt_verbose = True
114113 , opt_nobanner = False
115114 , opt_quiet = False
116− , opt_codegen = Via "c"
117− , opt_portableCG = False
115+ , opt_codegen = Via IBCFormat "c"
118116 , opt_outputTy = Executable
119117 , opt_ibcsubdir = ""
120118 , opt_importdirs = []
@@ -388,18 +386,15 @@ throwError = Trans.lift . throwE
388386
389387-- Commands in the REPL
390388
391−data Codegen = Via String
392−-- | ViaC
393−-- | ViaJava
394−-- | ViaNode
395−-- | ViaJavaScript
396−-- | ViaLLVM
389+data Codegen = Via IRFormat String
397390 | Bytecode
398391 deriving (Show, Eq)
399392{-!
400393deriving instance NFData Codegen
401394!-}
402395
396+data IRFormat = IBCFormat | JSONFormat deriving (Show, Eq)
397+
403398data HowMuchDocs = FullDocs | OverviewDocs
404399
405400-- | REPL commands
@@ -560,7 +555,6 @@ data Opt = Filename String
560555 | DumpDefun String
561556 | DumpCases String
562557 | UseCodegen Codegen
563− | PortableCodegen
564558 | CodegenArgs String
565559 | OutputTy OutputType
566560 | Extension LanguageExt