[lld] r262445 - Remove more dead code.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 17:34:36 PST 2016
Author: ruiu
Date: Tue Mar 1 19:34:36 2016
New Revision: 262445
URL: http://llvm.org/viewvc/llvm-project?rev=262445&view=rev
Log:
Remove more dead code.
Modified:
lld/trunk/include/lld/Core/LinkingContext.h
lld/trunk/lib/Core/LinkingContext.cpp
Modified: lld/trunk/include/lld/Core/LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/LinkingContext.h?rev=262445&r1=262444&r2=262445&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/LinkingContext.h (original)
+++ lld/trunk/include/lld/Core/LinkingContext.h Tue Mar 1 19:34:36 2016
@@ -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<StringRef> _deadStripRoots;
std::vector<const char *> _llvmOptions;
StringRefVector _initialUndefinedSymbols;
Modified: lld/trunk/lib/Core/LinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/LinkingContext.cpp?rev=262445&r1=262444&r2=262445&view=diff
==============================================================================
--- lld/trunk/lib/Core/LinkingContext.cpp (original)
+++ lld/trunk/lib/Core/LinkingContext.cpp Tue Mar 1 19:34:36 2016
@@ -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() {}
More information about the llvm-commits
mailing list