diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-02-04 21:00:02 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-02-04 21:00:02 +0000 |
commit | 6cbbdfd2e900164beeb34513a25d88cc58e582b0 (patch) | |
tree | 2ed08f191479e0669627b89cb26a41953836e3c2 /tools/gold/gold-plugin.cpp | |
parent | 4caa0427bfae369854ecdfe60b94238e566a5475 (diff) | |
download | external_llvm-6cbbdfd2e900164beeb34513a25d88cc58e582b0.zip external_llvm-6cbbdfd2e900164beeb34513a25d88cc58e582b0.tar.gz external_llvm-6cbbdfd2e900164beeb34513a25d88cc58e582b0.tar.bz2 |
Alphabetize includes. Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold/gold-plugin.cpp')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 65092a6..9632762 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -19,11 +19,11 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/System/Path.h" +#include <cerrno> #include <cstdlib> #include <cstring> #include <list> #include <vector> -#include <cerrno> using namespace llvm; @@ -158,10 +158,9 @@ ld_plugin_status onload(ld_plugin_tv *tv) { ld_plugin_status claim_file_hook(const ld_plugin_input_file *file, int *claimed) { void *buf = NULL; - // If set, this means gold found IR in an ELF section. LLVM doesn't wrap its - // IR in ELF, so we know it's not us. But it can also be an .a file containing - // LLVM IR. if (file->offset) { + /* This is probably an archive member containing either an ELF object, or + * LLVM IR. Find out which one it is */ 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", |