[llvm-commits] CVS: llvm/include/llvm/Bytecode/Archive.h
Reid Spencer
reid at x10sys.com
Sat Feb 26 14:00:43 PST 2005
Changes in directory llvm/include/llvm/Bytecode:
Archive.h updated: 1.9 -> 1.10
---
Log message:
Implement an isBytecodeArchive method to determine if an archive contains
bytecode file members or not.
Patch Contributed By Adam Treat
---
Diffs of the changes: (+9 -0)
Archive.h | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/include/llvm/Bytecode/Archive.h
diff -u llvm/include/llvm/Bytecode/Archive.h:1.9 llvm/include/llvm/Bytecode/Archive.h:1.10
--- llvm/include/llvm/Bytecode/Archive.h:1.9 Sun Dec 12 20:58:16 2004
+++ llvm/include/llvm/Bytecode/Archive.h Sat Feb 26 16:00:32 2005
@@ -414,6 +414,15 @@
std::set<std::string>& symbols, ///< Symbols to be sought
std::set<ModuleProvider*>& modules ///< The modules matching \p symbols
);
+
+ /// This method determines whether the archive is a properly formed llvm
+ /// bytecode archive. It first makes sure the symbol table has been loaded
+ /// and has a non-zero size. If it does, then it is an archive. If not,
+ /// then it tries to load all the bytecode modules of the archive. Finally,
+ /// it returns whether it was successfull.
+ /// @returns true if the archive is a proper llvm bytecode archive
+ /// @brief Determine whether the archive is a proper llvm bytecode archive.
+ bool isBytecodeArchive();
/// @}
/// @name Mutators
More information about the llvm-commits
mailing list