[llvm-commits] [llvm] r65733 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 28 15:01:31 PST 2009
Author: lattner
Date: Sat Feb 28 17:01:30 2009
New Revision: 65733
URL: http://llvm.org/viewvc/llvm-project?rev=65733&view=rev
Log:
make this work when constructed with a null module*
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=65733&r1=65732&r2=65733&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Sat Feb 28 17:01:30 2009
@@ -146,9 +146,8 @@
}
TypePrinting::TypePrinting(const Module *M) {
- if (M == 0) return;
-
TypeNames = new std::map<const Type *, std::string>();
+ if (M == 0) return;
// If the module has a symbol table, take all global types and stuff their
// names into the TypeNames map.
More information about the llvm-commits
mailing list