]> git.saurik.com Git - apple/ld64.git/blobdiff - src/Options.cpp
ld64-85.2.1.tar.gz
[apple/ld64.git] / src / Options.cpp
index d0a2d15abfa0f11b3b1b059a61a7359087590948..eb244ed4fc22864a7e8210960302d92eed79d4ae 100644 (file)
@@ -2311,6 +2311,12 @@ void Options::parse(int argc, const char* argv[])
                        else if ( strcmp(arg, "-no_encryption") == 0 ) {
                                fEncryptable = false;
                        }
+                       else if ( strcmp(arg, "-mllvm") == 0 ) {
+                               const char* opts = argv[++i];
+                               if ( opts == NULL )
+                                       throw "missing argument to -mllvm";
+                               fLLVMOptions.push_back(opts);
+                       }
                        else {
                                throwf("unknown option: %s", arg);
                        }