diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h index f3c0c9a95cb1..38db145d6f67 100644 --- a/lld/include/lld/Core/LinkingContext.h +++ b/lld/include/lld/Core/LinkingContext.h @@ -34,12 +34,6 @@ class SharedLibraryFile; /// Writers. class LinkingContext { public: - /// \brief The types of output file that the linker creates. - enum class OutputFileType : uint8_t { - Default, // The default output type for this target - YAML, // The output type is set to YAML - }; - virtual ~LinkingContext(); /// \name Methods needed by core linking @@ -212,19 +206,6 @@ public: /// the linker to write to an in-memory buffer. StringRef outputPath() const { return _outputPath; } - /// Set the various output file types that the linker would - /// create - bool setOutputFileType(StringRef outputFileType) { - if (outputFileType.equals_lower("yaml")) { - _outputFileType = OutputFileType::YAML; - return true; - } - return false; - } - - /// Returns the output file type that that the linker needs to create. - OutputFileType outputFileType() const { return _outputFileType; } - /// Accessor for Register object embedded in LinkingContext. const Registry ®istry() const { return _registry; } Registry ®istry() { return _registry; } @@ -282,7 +263,6 @@ protected: bool _allowRemainingUndefines; bool _logInputFiles; bool _allowShlibUndefines; - OutputFileType _outputFileType; std::vector _deadStripRoots; std::vector _llvmOptions; StringRefVector _initialUndefinedSymbols; diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index 7d066c12ec24..e3027fcddf9e 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -21,7 +21,7 @@ LinkingContext::LinkingContext() _searchSharedLibrariesToOverrideTentativeDefinitions(false), _printRemainingUndefines(true), _allowRemainingUndefines(false), _logInputFiles(false), _allowShlibUndefines(true), - _outputFileType(OutputFileType::Default), _nextOrdinal(0) {} + _nextOrdinal(0) {} LinkingContext::~LinkingContext() {}