mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
* finegrainify namespacification of ArchiveReader.cpp
* Refactor reader stuff out of include/llvm/Bytecode/Primitives.h. This is internal implementation details for the reader, not public interfaces! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -22,8 +22,7 @@
|
||||
#include "Config/sys/mman.h"
|
||||
#include "Config/fcntl.h"
|
||||
#include <cstdlib>
|
||||
|
||||
namespace llvm {
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
struct ar_hdr {
|
||||
@ -162,8 +161,8 @@ static bool ReadArchiveBuffer(const std::string &ArchiveName,
|
||||
// true on error, or false on success. This does not support reading files from
|
||||
// standard input.
|
||||
//
|
||||
bool ReadArchiveFile(const std::string &Filename, std::vector<Module*> &Objects,
|
||||
std::string *ErrorStr) {
|
||||
bool llvm::ReadArchiveFile(const std::string &Filename,
|
||||
std::vector<Module*> &Objects,std::string *ErrorStr){
|
||||
int Length = getFileSize(Filename);
|
||||
if (Length == -1)
|
||||
return Error(ErrorStr, "Error getting file length!");
|
||||
@ -192,5 +191,3 @@ bool ReadArchiveFile(const std::string &Filename, std::vector<Module*> &Objects,
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
Reference in New Issue
Block a user