[llvm-commits] CVS: llvm/include/llvm/Bytecode/Reader.h

Reid Spencer reid at x10sys.com
Sat Nov 6 00:54:57 PST 2004



Changes in directory llvm/include/llvm/Bytecode:

Reader.h updated: 1.19 -> 1.20
---
Log message:

Provide an interface for getting just the external symbols from a
Bytecode file.


---
Diffs of the changes:  (+10 -0)

Index: llvm/include/llvm/Bytecode/Reader.h
diff -u llvm/include/llvm/Bytecode/Reader.h:1.19 llvm/include/llvm/Bytecode/Reader.h:1.20
--- llvm/include/llvm/Bytecode/Reader.h:1.19	Fri Sep 10 23:29:13 2004
+++ llvm/include/llvm/Bytecode/Reader.h	Sat Nov  6 02:54:47 2004
@@ -19,6 +19,7 @@
 #ifndef LLVM_BYTECODE_READER_H
 #define LLVM_BYTECODE_READER_H
 
+#include "llvm/System/Path.h"
 #include "llvm/ModuleProvider.h"
 #include "llvm/Module.h"
 #include <string>
@@ -62,6 +63,15 @@
 bool GetBytecodeDependentLibraries(const std::string &fileName, 
                                    Module::LibraryListType& deplibs);
 
+/// This function will read only the necessary parts of a bytecode file in order
+/// to obtain a list of externally visible global symbols that the bytecode
+/// module defines. This is used for archiving and linking when only the list 
+/// of symbols the module defines is needed.
+/// @returns true on success, false otherwise
+/// @brief Get a bytecode file's externally visibile defined global symbols.
+bool GetBytecodeSymbols(const sys::Path& fileName, 
+                        std::vector<std::string>& syms);
+
 /// Read bytecode files from the specfied archive (.a) file, convert them
 /// to Module* and provide them in the \p Objects argument. If an error
 /// occurs, ErrorStr (if non-null) will be set to a string explaining






More information about the llvm-commits mailing list