summaryrefslogtreecommitdiff
path: root/tools/gold
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-02-05 04:14:23 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-02-05 04:14:23 +0000
commitc1da8864a9a47329af6255567097f01d352eb311 (patch)
tree7e2b0a1825e2287a2a2ef8daa41d41fed5c059a6 /tools/gold
parent49de98214b82fefeb8f16efbf8cdd8813a85469b (diff)
downloadllvm-c1da8864a9a47329af6255567097f01d352eb311.tar.gz
llvm-c1da8864a9a47329af6255567097f01d352eb311.tar.bz2
llvm-c1da8864a9a47329af6255567097f01d352eb311.tar.xz
Remove accidentally included debug message!
Reword a comment for clarity. Remove some extra whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r--tools/gold/gold-plugin.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp
index 963276243c..6f579fe370 100644
--- a/tools/gold/gold-plugin.cpp
+++ b/tools/gold/gold-plugin.cpp
@@ -159,8 +159,8 @@ ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
int *claimed) {
void *buf = NULL;
if (file->offset) {
- /* This is probably an archive member containing either an ELF object, or
- * LLVM IR. Find out which one it is */
+ // Gold has found what might be IR part-way inside of a file, such as
+ // an .a archive.
if (lseek(file->fd, file->offset, SEEK_SET) == -1) {
(*message)(LDPL_ERROR,
"Failed to seek to archive member of %s at offset %d: %s\n",
@@ -195,8 +195,8 @@ ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
Modules.resize(Modules.size() + 1);
claimed_file &cf = Modules.back();
- cf.M = buf ? lto_module_create_from_memory(buf, file->filesize) :
- lto_module_create(file->name);
+ cf.M = buf ? lto_module_create_from_memory(buf, file->filesize) :
+ lto_module_create(file->name);
cf.buf = buf;
if (!cf.M) {
(*message)(LDPL_ERROR, "Failed to create LLVM module: %s",
@@ -294,8 +294,6 @@ ld_plugin_status all_symbols_read_hook(void) {
E = Modules.end(); I != E; ++I) {
(*get_symbols)(I->handle, I->syms.size(), &I->syms[0]);
for (unsigned i = 0, e = I->syms.size(); i != e; i++) {
- (*message)(LDPL_WARNING, "def: %d visibility: %d resolution %d",
- I->syms[i].def, I->syms[i].visibility, I->syms[i].resolution);
if (I->syms[i].resolution == LDPR_PREVAILING_DEF) {
lto_codegen_add_must_preserve_symbol(cg, I->syms[i].name);
anySymbolsPreserved = true;