From 3446ae833754df5b139d056de025797dbacc10e5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 10 Jan 2004 19:00:15 +0000 Subject: * 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 --- lib/Bytecode/Reader/ArchiveReader.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/Bytecode/Reader/ArchiveReader.cpp') diff --git a/lib/Bytecode/Reader/ArchiveReader.cpp b/lib/Bytecode/Reader/ArchiveReader.cpp index 35bbbb9788..b8bb914eba 100644 --- a/lib/Bytecode/Reader/ArchiveReader.cpp +++ b/lib/Bytecode/Reader/ArchiveReader.cpp @@ -22,8 +22,7 @@ #include "Config/sys/mman.h" #include "Config/fcntl.h" #include - -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 &Objects, - std::string *ErrorStr) { +bool llvm::ReadArchiveFile(const std::string &Filename, + std::vector &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 &Objects, return Result; } - -} // End llvm namespace -- cgit v1.2.3