aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-02-27 20:30:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-02-27 20:30:22 +0000
commitd36fb9b5d44b5df27e3d6559e04d44f2cbc6be94 (patch)
tree5575ebb56970b1a61b978f9f190eee06a26863c0 /tools
parent35358e02bbd584af79132df82ad346c2e32cae21 (diff)
downloadexternal_llvm-d36fb9b5d44b5df27e3d6559e04d44f2cbc6be94.zip
external_llvm-d36fb9b5d44b5df27e3d6559e04d44f2cbc6be94.tar.gz
external_llvm-d36fb9b5d44b5df27e3d6559e04d44f2cbc6be94.tar.bz2
Gold now rescans archives as needed, so the pass-through options are not
necessary anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gold/gold-plugin.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp
index 950c743..e959d95 100644
--- a/tools/gold/gold-plugin.cpp
+++ b/tools/gold/gold-plugin.cpp
@@ -73,7 +73,6 @@ namespace options {
static generate_bc generate_bc_file = BC_NO;
static std::string bc_path;
static std::string obj_path;
- static std::vector<std::string> pass_through;
static std::string extra_library_path;
static std::string triple;
static std::string mcpu;
@@ -96,9 +95,6 @@ namespace options {
mcpu = opt.substr(strlen("mcpu="));
} else if (opt.startswith("extra-library-path=")) {
extra_library_path = opt.substr(strlen("extra_library_path="));
- } else if (opt.startswith("pass-through=")) {
- llvm::StringRef item = opt.substr(strlen("pass-through="));
- pass_through.push_back(item.str());
} else if (opt.startswith("mtriple=")) {
triple = opt.substr(strlen("mtriple="));
} else if (opt.startswith("obj-path=")) {
@@ -489,24 +485,6 @@ static ld_plugin_status all_symbols_read_hook(void) {
return LDPS_ERR;
}
- for (std::vector<std::string>::iterator i = options::pass_through.begin(),
- e = options::pass_through.end();
- i != e; ++i) {
- std::string &item = *i;
- const char *item_p = item.c_str();
- if (llvm::StringRef(item).startswith("-l")) {
- if (add_input_library(item_p + 2) != LDPS_OK) {
- (*message)(LDPL_ERROR, "Unable to add library to the link.");
- return LDPS_ERR;
- }
- } else {
- if (add_input_file(item_p) != LDPS_OK) {
- (*message)(LDPL_ERROR, "Unable to add .o file to the link.");
- return LDPS_ERR;
- }
- }
- }
-
if (options::obj_path.empty())
Cleanup.push_back(sys::Path(objPath));