summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/include/lld/Core/LinkingContext.h20
-rw-r--r--lld/lib/Core/LinkingContext.cpp2
2 files changed, 1 insertions, 21 deletions
diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h
index f3c0c9a95cb..38db145d6f6 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 &registry() const { return _registry; }
Registry &registry() { return _registry; }
@@ -282,7 +263,6 @@ protected:
bool _allowRemainingUndefines;
bool _logInputFiles;
bool _allowShlibUndefines;
- OutputFileType _outputFileType;
std::vector<StringRef> _deadStripRoots;
std::vector<const char *> _llvmOptions;
StringRefVector _initialUndefinedSymbols;
diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp
index 7d066c12ec2..e3027fcddf9 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() {}
OpenPOWER on IntegriCloud