From caea64b09806a7c6500ceaf93bde4d48d22f810f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 10 Mar 2010 00:09:21 +0000 Subject: mcize uses of PrintRelDirective and eliminate it. llvm-svn: 98107 --- llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index 99e12e2e3e6..4f445343555 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -886,13 +886,11 @@ void DwarfException::EmitExceptionTable() { I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) { const GlobalVariable *GV = *I; - if (GV) { - Asm->OutStreamer.AddComment("TypeInfo"); + Asm->OutStreamer.AddComment("TypeInfo"); + if (GV) EmitReference(GV, TTypeEncoding); - } else { - PrintRelDirective(TTypeEncoding); - O << "0x0\n"; - } + else + Asm->OutStreamer.EmitIntValue(0, SizeOfEncodedValue(TTypeEncoding), 0); } // Emit the Exception Specifications. -- cgit v1.2.3