aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Archive
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-10 19:00:15 +0000
committerChris Lattner <sabre@nondot.org>2004-01-10 19:00:15 +0000
commit3446ae833754df5b139d056de025797dbacc10e5 (patch)
treeb310f4668e93bcabdd1937b4395f15b214d8ecbe /lib/Archive
parent4443019b7df16797da58d1cc2fd24a4a3351f8f7 (diff)
downloadexternal_llvm-3446ae833754df5b139d056de025797dbacc10e5.zip
external_llvm-3446ae833754df5b139d056de025797dbacc10e5.tar.gz
external_llvm-3446ae833754df5b139d056de025797dbacc10e5.tar.bz2
* 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
Diffstat (limited to 'lib/Archive')
-rw-r--r--lib/Archive/ArchiveReader.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Archive/ArchiveReader.cpp b/lib/Archive/ArchiveReader.cpp
index 35bbbb9..b8bb914 100644
--- a/lib/Archive/ArchiveReader.cpp
+++ b/lib/Archive/ArchiveReader.cpp
@@ -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