summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/Linker.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-03-19 15:26:24 +0000
committerEli Bendersky <eliben@google.com>2013-03-19 15:26:24 +0000
commit0f7fd36f86190996adbc27b131fcaf63af1195cf (patch)
treed4f61bcd55f6c8115b83eab2b6dc5d9c073cc4f0 /llvm/lib/Linker/Linker.cpp
parent6681486375b11cc2b30ffb4f3cfa60f077199e1b (diff)
downloadbcm5719-llvm-0f7fd36f86190996adbc27b131fcaf63af1195cf.tar.gz
bcm5719-llvm-0f7fd36f86190996adbc27b131fcaf63af1195cf.zip
The Linker interface has some dead code after the cleanup in r172749
(and possibly others). The attached patch removes it, and tries to update comments accordingly. llvm-svn: 177406
Diffstat (limited to 'llvm/lib/Linker/Linker.cpp')
-rw-r--r--llvm/lib/Linker/Linker.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/Linker/Linker.cpp b/llvm/lib/Linker/Linker.cpp
index c8ea8ff0a9e..74d24f278b7 100644
--- a/llvm/lib/Linker/Linker.cpp
+++ b/llvm/lib/Linker/Linker.cpp
@@ -15,7 +15,6 @@
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
using namespace llvm;
@@ -24,7 +23,6 @@ Linker::Linker(StringRef progname, StringRef modname,
LLVMContext& C, unsigned flags):
Context(C),
Composite(new Module(modname, C)),
- LibPaths(),
Flags(flags),
Error(),
ProgramName(progname) { }
@@ -32,7 +30,6 @@ Linker::Linker(StringRef progname, StringRef modname,
Linker::Linker(StringRef progname, Module* aModule, unsigned flags) :
Context(aModule->getContext()),
Composite(aModule),
- LibPaths(),
Flags(flags),
Error(),
ProgramName(progname) { }
@@ -63,27 +60,9 @@ Linker::verbose(StringRef message) {
errs() << " " << message << "\n";
}
-void
-Linker::addPath(const sys::Path& path) {
- LibPaths.push_back(path);
-}
-
-void
-Linker::addPaths(const std::vector<std::string>& paths) {
- for (unsigned i = 0, e = paths.size(); i != e; ++i)
- LibPaths.push_back(sys::Path(paths[i]));
-}
-
-void
-Linker::addSystemPaths() {
- sys::Path::GetBitcodeLibraryPaths(LibPaths);
- LibPaths.insert(LibPaths.begin(),sys::Path("./"));
-}
-
Module*
Linker::releaseModule() {
Module* result = Composite;
- LibPaths.clear();
Error.clear();
Composite = 0;
Flags = 0;
OpenPOWER on IntegriCloud