Remove more dead code.

llvm-svn: 262445
This commit is contained in:
Rui Ueyama 2016-03-02 01:34:36 +00:00
parent 0c23bcb252
commit 0c8fad7dba
2 changed files with 1 additions and 21 deletions

View File

@ -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;

View File

@ -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() {}