Definition of the Bytecode Handler interface. Subclasses can override just
[oota-llvm.git] / include / llvm / Bytecode / Reader.h
index e195a322d1a70fb06b5fd72429158c9d207a22a4..1e9fa32bd12309743c17b313502e4dc30d92958b 100644 (file)
@@ -1,4 +1,11 @@
 //===-- llvm/Bytecode/Reader.h - Reader for VM bytecode files ---*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This functionality is implemented by the lib/Bytecode/Reader library.
 // This library is used to read VM bytecode files from an iostream.
 #include <string>
 #include <vector>
 
+namespace llvm {
+
 /// getBytecodeModuleProvider - lazy function-at-a-time loading from a file
 ///
-AbstractModuleProvider*
-getBytecodeModuleProvider(const std::string &Filename);
+ModuleProvider *getBytecodeModuleProvider(const std::string &Filename);
 
 /// getBytecodeBufferModuleProvider - lazy function-at-a-time loading from a
 /// buffer
 ///
-AbstractModuleProvider* 
-getBytecodeBufferModuleProvider(const unsigned char *Buffer,
-                                unsigned BufferSize,
-                                const std::string &ModuleID = "");
+ModuleProvider *getBytecodeBufferModuleProvider(const unsigned char *Buffer,
+                                                unsigned BufferSize,
+                                                const std::string &ModuleID="");
 
 /// ParseBytecodeFile - Parse the given bytecode file
 ///
@@ -48,4 +55,6 @@ bool ReadArchiveFile(const std::string &Filename,
                      std::vector<Module*> &Objects,
                      std::string *ErrorStr = 0);
 
+} // End llvm namespace
+
 #endif