From 0e4cfb749561b85f38e7a4351e4a8911efa01e3b Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Fri, 2 Oct 2015 20:52:14 +0000 Subject: [PATCH] Call the correct overload. Call the correct overload so a string literal does not get converted to a bool. Also fix the test case to match the names given. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249183 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/WinException.cpp | 6 ++++-- test/CodeGen/X86/seh-catchpad.ll | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/WinException.cpp b/lib/CodeGen/AsmPrinter/WinException.cpp index b0c6b7d11e4..87437a1fe07 100644 --- a/lib/CodeGen/AsmPrinter/WinException.cpp +++ b/lib/CodeGen/AsmPrinter/WinException.cpp @@ -425,8 +425,10 @@ void WinException::emitCSpecificHandlerTable(const MachineFunction *MF) { // Use the assembler to compute the number of table entries through label // difference and division. - MCSymbol *TableBegin = Ctx.createTempSymbol("lsda_begin"); - MCSymbol *TableEnd = Ctx.createTempSymbol("lsda_end"); + MCSymbol *TableBegin = + Ctx.createTempSymbol("lsda_begin", /*AlwaysAddSuffix=*/true); + MCSymbol *TableEnd = + Ctx.createTempSymbol("lsda_end", /*AlwaysAddSuffix=*/true); const MCExpr *LabelDiff = MCBinaryExpr::createSub(MCSymbolRefExpr::create(TableEnd, Ctx), MCSymbolRefExpr::create(TableBegin, Ctx), Ctx); diff --git a/test/CodeGen/X86/seh-catchpad.ll b/test/CodeGen/X86/seh-catchpad.ll index e69bc018d83..e70ea793c79 100644 --- a/test/CodeGen/X86/seh-catchpad.ll +++ b/test/CodeGen/X86/seh-catchpad.ll @@ -126,8 +126,8 @@ ehcleanup.end: ; preds = %ehcleanup ; CHECK: jmp .LBB1_[[epilogue]] ; CHECK: .seh_handlerdata -; CHECK-NEXT: .long (.Ltmp14-.Ltmp13)/16 -; CHECK-NEXT: .Ltmp13: +; CHECK-NEXT: .long (.Llsda_end0-.Llsda_begin0)/16 +; CHECK-NEXT: .Llsda_begin0: ; CHECK-NEXT: .long .Ltmp0@IMGREL ; CHECK-NEXT: .long .Ltmp1@IMGREL+1 ; CHECK-NEXT: .long 1 @@ -144,7 +144,7 @@ ehcleanup.end: ; preds = %ehcleanup ; CHECK-NEXT: .long .Ltmp3@IMGREL+1 ; CHECK-NEXT: .long "?filt$0@0@main@@"@IMGREL ; CHECK-NEXT: .long .LBB1_6@IMGREL -; CHECK-NEXT: .Ltmp14: +; CHECK-NEXT: .Llsda_end0: ; CHECK: .text ; CHECK: .seh_endproc -- 2.34.1