lld MachO addEntryPointLoadCommand

Should this function return true when _outputkind is outputDynamicExecutable?

WriterOptionsMachO.cpp:
bool WriterOptionsMachO::addEntryPointLoadCommand() const {
   switch ( _outputkind ) {
     case outputDynamicExecutable:
       // Only main executables have an entry point
       return false;
     case outputDylib:
     case outputBundle:
     case outputObjectFile:
       return false;
   }
   llvm_unreachable("unknown outputkind");
}

Should this function return true when _outputkind is outputDynamicExecutable?

It depends on what the minimum OS version (a command line option) is. We don't have platform specific command line options working yet, so it is hard coded for now.

-Nick