Adding support for absolute relocations. This occurs in ELF files when a relocation...
[oota-llvm.git] / lib / Archive / ArchiveInternals.h
index 98f9c896c59cbe4879f1580a7dc0ef590f04ab11..f6c87e899f25b498c8850d4b62be5023d55ef207 100644 (file)
 #ifndef LIB_ARCHIVE_ARCHIVEINTERNALS_H
 #define LIB_ARCHIVE_ARCHIVEINTERNALS_H
 
-#include "llvm/Bitcode/Archive.h"
-#include "llvm/System/TimeValue.h"
 #include "llvm/ADT/StringExtras.h"
-
+#include "llvm/Bitcode/Archive.h"
+#include "llvm/Support/TimeValue.h"
 #include <cstring>
 
 #define ARFILE_MAGIC "!<arch>\n"                   ///< magic string
@@ -31,7 +30,7 @@
 
 namespace llvm {
 
-  struct LLVMContext;
+  class LLVMContext;
 
   /// The ArchiveMemberHeader structure is used internally for bitcode
   /// archives.
@@ -66,7 +65,7 @@ namespace llvm {
       fmag[1] = '\n';
     }
 
-    bool checkSignature() {
+    bool checkSignature() const {
       return 0 == memcmp(fmag, ARFILE_MEMBER_MAGIC,2);
     }
   };
@@ -77,11 +76,11 @@ namespace llvm {
                           std::vector<std::string>& symbols,
                           std::string* ErrMsg);
   
-  ModuleProvider* GetBitcodeSymbols(const unsigned char*Buffer,unsigned Length,
-                                    const std::string& ModuleID,
-                                    LLVMContext& Context,
-                                    std::vector<std::string>& symbols,
-                                    std::string* ErrMsg);
+  Module* GetBitcodeSymbols(const char *Buffer, unsigned Length,
+                            const std::string& ModuleID,
+                            LLVMContext& Context,
+                            std::vector<std::string>& symbols,
+                            std::string* ErrMsg);
 }
 
 #endif