projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7eef180
)
make this work when constructed with a null module*
author
Chris Lattner
<sabre@nondot.org>
Sat, 28 Feb 2009 23:01:30 +0000
(23:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 28 Feb 2009 23:01:30 +0000
(23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65733
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 4128fdb6e8467357eba072cb8bc7b4986e567391..854c3ba7ccbb782814646782028b24729795291b 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-146,9
+146,8
@@
void TypePrinting::clear() {
}
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.