mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Make AsmPrinter::EmitTTypeReference() more robust - put
the zero GV check inside, so we won't forget it at the caller side. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -696,11 +696,7 @@ void DwarfException::EmitTypeInfos(unsigned TTypeEncoding) {
|
||||
const GlobalVariable *GV = *I;
|
||||
if (VerboseAsm)
|
||||
Asm->OutStreamer.AddComment("TypeInfo " + Twine(Entry--));
|
||||
if (GV)
|
||||
Asm->EmitTTypeReference(GV, TTypeEncoding);
|
||||
else
|
||||
Asm->OutStreamer.EmitIntValue(0,Asm->GetSizeOfEncodedValue(TTypeEncoding),
|
||||
0);
|
||||
Asm->EmitTTypeReference(GV, TTypeEncoding);
|
||||
}
|
||||
|
||||
// Emit the Exception Specifications.
|
||||
|
Reference in New Issue
Block a user