mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Prevent a crash in debug dumps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -979,6 +979,10 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AssemblyWriter::printAlias(const GlobalAlias *GA) {
|
void AssemblyWriter::printAlias(const GlobalAlias *GA) {
|
||||||
|
// Don't crash when dumping partially built GA
|
||||||
|
if (!GA->hasName())
|
||||||
|
Out << "<<nameless>> = ";
|
||||||
|
else
|
||||||
Out << getLLVMName(GA->getName(), GlobalPrefix) << " = ";
|
Out << getLLVMName(GA->getName(), GlobalPrefix) << " = ";
|
||||||
switch (GA->getVisibility()) {
|
switch (GA->getVisibility()) {
|
||||||
default: assert(0 && "Invalid visibility style!");
|
default: assert(0 && "Invalid visibility style!");
|
||||||
|
Reference in New Issue
Block a user