mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Alphabetize includes. Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,11 +19,11 @@
|
|||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include "llvm/System/Path.h"
|
#include "llvm/System/Path.h"
|
||||||
|
|
||||||
|
#include <cerrno>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cerrno>
|
|
||||||
|
|
||||||
using namespace llvm;
|
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,
|
ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
|
||||||
int *claimed) {
|
int *claimed) {
|
||||||
void *buf = NULL;
|
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) {
|
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) {
|
if (lseek(file->fd, file->offset, SEEK_SET) == -1) {
|
||||||
(*message)(LDPL_ERROR,
|
(*message)(LDPL_ERROR,
|
||||||
"Failed to seek to archive member of %s at offset %d: %s\n",
|
"Failed to seek to archive member of %s at offset %d: %s\n",
|
||||||
|
Reference in New Issue
Block a user