[llvm-commits] [llvm] r93041 - in /llvm/trunk: include/llvm/ValueSymbolTable.h lib/VMCore/Module.cpp lib/VMCore/ValueSymbolTable.cpp
Devang Patel
dpatel at apple.com
Fri Jan 8 17:45:05 PST 2010
Author: dpatel
Date: Fri Jan 8 19:44:59 2010
New Revision: 93041
URL: http://llvm.org/viewvc/llvm-project?rev=93041&view=rev
Log:
Delete NamedMDSymTable while destrucing Module.
Disable copy ctor and operator= for NamedMDSymTable. Hide typedef that should be public.
Modified:
llvm/trunk/include/llvm/ValueSymbolTable.h
llvm/trunk/lib/VMCore/Module.cpp
llvm/trunk/lib/VMCore/ValueSymbolTable.cpp
Modified: llvm/trunk/include/llvm/ValueSymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ValueSymbolTable.h?rev=93041&r1=93040&r2=93041&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ValueSymbolTable.h (original)
+++ llvm/trunk/include/llvm/ValueSymbolTable.h Fri Jan 8 19:44:59 2010
@@ -135,10 +135,11 @@
class MDSymbolTable {
/// @name Types
/// @{
-public:
+private:
/// @brief A mapping of names to metadata
typedef StringMap<NamedMDNode*> MDMap;
+public:
/// @brief An iterator over a ValueMap.
typedef MDMap::iterator iterator;
@@ -150,6 +151,8 @@
/// @{
public:
+ MDSymbolTable(const MDNode &); // DO NOT IMPLEMENT
+ void operator=(const MDSymbolTable &); // DO NOT IMPLEMENT
MDSymbolTable() : mmap(0) {}
~MDSymbolTable();
Modified: llvm/trunk/lib/VMCore/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Module.cpp?rev=93041&r1=93040&r2=93041&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Module.cpp (original)
+++ llvm/trunk/lib/VMCore/Module.cpp Fri Jan 8 19:44:59 2010
@@ -71,6 +71,7 @@
NamedMDList.clear();
delete ValSymTab;
delete TypeSymTab;
+ delete NamedMDSymTab;
}
/// Target endian information...
Modified: llvm/trunk/lib/VMCore/ValueSymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ValueSymbolTable.cpp?rev=93041&r1=93040&r2=93041&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ValueSymbolTable.cpp (original)
+++ llvm/trunk/lib/VMCore/ValueSymbolTable.cpp Fri Jan 8 19:44:59 2010
@@ -119,3 +119,5 @@
//DEBUG(dbgs() << "\n");
}
}
+
+MDSymbolTable::~MDSymbolTable() { }
More information about the llvm-commits
mailing list