aboutsummaryrefslogtreecommitdiff
path: root/include/lld/Core/LinkingContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/Core/LinkingContext.h')
-rw-r--r--include/lld/Core/LinkingContext.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/include/lld/Core/LinkingContext.h b/include/lld/Core/LinkingContext.h
index 81a3b4b4eb71..a723854b3c91 100644
--- a/include/lld/Core/LinkingContext.h
+++ b/include/lld/Core/LinkingContext.h
@@ -41,7 +41,6 @@ public:
enum class OutputFileType : uint8_t {
Default, // The default output type for this target
YAML, // The output type is set to YAML
- Native // The output file format is Native (Atoms)
};
virtual ~LinkingContext();
@@ -62,7 +61,7 @@ public:
/// should be marked live (along with all Atoms they reference). Usually
/// this method returns false for main executables, but true for dynamic
/// shared libraries.
- bool globalsAreDeadStripRoots() const { return _globalsAreDeadStripRoots; };
+ bool globalsAreDeadStripRoots() const { return _globalsAreDeadStripRoots; }
/// Only used if deadStrip() returns true. This method returns the names
/// of DefinedAtoms that should be marked live (along with all Atoms they
@@ -273,13 +272,11 @@ public:
/// Set the various output file types that the linker would
/// create
bool setOutputFileType(StringRef outputFileType) {
- if (outputFileType.equals_lower("yaml"))
+ if (outputFileType.equals_lower("yaml")) {
_outputFileType = OutputFileType::YAML;
- else if (outputFileType.equals_lower("native"))
- _outputFileType = OutputFileType::YAML;
- else
- return false;
- return true;
+ return true;
+ }
+ return false;
}
/// Returns the output file type that that the linker needs to create.
@@ -292,7 +289,7 @@ public:
/// This method is called by core linking to give the Writer a chance
/// to add file format specific "files" to set of files to be linked. This is
/// how file format specific atoms can be added to the link.
- virtual bool createImplicitFiles(std::vector<std::unique_ptr<File> > &);
+ virtual void createImplicitFiles(std::vector<std::unique_ptr<File>> &);
/// This method is called by core linking to build the list of Passes to be
/// run on the merged/linked graph of all input files.