[llvm-commits] CVS: llvm/include/llvm/System/DynamicLibrary.h
Reid Spencer
reid at x10sys.com
Mon Nov 29 02:39:04 PST 2004
Changes in directory llvm/include/llvm/System:
DynamicLibrary.h updated: 1.1 -> 1.2
---
Log message:
Make the default constructor cause the program's symbols to be loaded as
if it was a dynamic library.
---
Diffs of the changes: (+10 -2)
Index: llvm/include/llvm/System/DynamicLibrary.h
diff -u llvm/include/llvm/System/DynamicLibrary.h:1.1 llvm/include/llvm/System/DynamicLibrary.h:1.2
--- llvm/include/llvm/System/DynamicLibrary.h:1.1 Wed Nov 17 22:33:40 2004
+++ llvm/include/llvm/System/DynamicLibrary.h Mon Nov 29 04:38:54 2004
@@ -32,10 +32,19 @@
/// @name Constructors
/// @{
public:
+ /// Construct a DynamicLibrary that represents the currently executing
+ /// program. The program must have been linked with -export-dynamic or
+ /// -dlopen self for this to work. Any symbols retrieved with the
+ /// GetAddressOfSymbol function will refer to the program not to any
+ /// library.
+ /// @throws std::string indicating why the program couldn't be opened.
+ /// @brief Open program as dynamic library.
+ DynamicLibrary();
+
/// This is the constructor for DynamicLibrary instances. It will open
/// the dynamic library specified by the \filename Path.
/// @throws std::string indicating why the library couldn't be opened.
- /// @brief DynamicLibrary constructor
+ /// @brief Open a dynamic library.
DynamicLibrary(const char* filename);
/// After destruction, the symbols of the library will no longer be
@@ -68,7 +77,6 @@
protected:
void* handle; // Opaque handle for information about the library
- DynamicLibrary(); ///< Do not implement
DynamicLibrary(const DynamicLibrary&); ///< Do not implement
DynamicLibrary& operator=(const DynamicLibrary&); ///< Do not implement
/// @}
More information about the llvm-commits
mailing list