mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
make this work when constructed with a null module*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7eef1800ea
commit
8ab55b747d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user