summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/ArchiveReader.cpp
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
commit4282cbb93a975a26afdde24c9a5971961d36364f (patch)
treecf26d09bfa7dde3a5ea2c464008974c8b942eb20 /llvm/lib/Bytecode/Reader/ArchiveReader.cpp
parent82167909a80ebaea35fe2aedb2b1b1ef52206c1b (diff)
downloadbcm5719-llvm-4282cbb93a975a26afdde24c9a5971961d36364f.tar.gz
bcm5719-llvm-4282cbb93a975a26afdde24c9a5971961d36364f.zip
* 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! llvm-svn: 10739
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ArchiveReader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/ArchiveReader.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Bytecode/Reader/ArchiveReader.cpp b/llvm/lib/Bytecode/Reader/ArchiveReader.cpp
index 35bbbb97889..b8bb914eba7 100644
--- a/llvm/lib/Bytecode/Reader/ArchiveReader.cpp
+++ b/llvm/lib/Bytecode/Reader/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
OpenPOWER on IntegriCloud