link_subcommand.h 902 B

123456789101112131415161718192021222324252627282930
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TOOLCHAIN_DRIVER_LINK_SUBCOMMAND_H_
  5. #define CARBON_TOOLCHAIN_DRIVER_LINK_SUBCOMMAND_H_
  6. #include "common/command_line.h"
  7. #include "llvm/ADT/SmallVector.h"
  8. #include "llvm/ADT/StringRef.h"
  9. #include "toolchain/driver/codegen_options.h"
  10. namespace Carbon {
  11. // Options for the link subcommand.
  12. //
  13. // See the implementation of `Build` for documentation on members.
  14. struct LinkOptions {
  15. static const CommandLine::CommandInfo Info;
  16. auto Build(CommandLine::CommandBuilder& b, CodegenOptions& codegen_options)
  17. -> void;
  18. llvm::StringRef output_filename;
  19. llvm::SmallVector<llvm::StringRef> object_filenames;
  20. };
  21. } // namespace Carbon
  22. #endif // CARBON_TOOLCHAIN_DRIVER_LINK_SUBCOMMAND_H_