[llvm] r249183 - Call the correct overload.

Richard Trieu via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 13:52:15 PDT 2015


Author: rtrieu
Date: Fri Oct  2 15:52:14 2015
New Revision: 249183

URL: http://llvm.org/viewvc/llvm-project?rev=249183&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp
    llvm/trunk/test/CodeGen/X86/seh-catchpad.ll

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp?rev=249183&r1=249182&r2=249183&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/WinException.cpp Fri Oct  2 15:52:14 2015
@@ -425,8 +425,10 @@ void WinException::emitCSpecificHandlerT
 
     // 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);

Modified: llvm/trunk/test/CodeGen/X86/seh-catchpad.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/seh-catchpad.ll?rev=249183&r1=249182&r2=249183&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/seh-catchpad.ll (original)
+++ llvm/trunk/test/CodeGen/X86/seh-catchpad.ll Fri Oct  2 15:52:14 2015
@@ -126,8 +126,8 @@ ehcleanup.end:
 ; 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 at IMGREL
 ; CHECK-NEXT:         .long   .Ltmp1 at IMGREL+1
 ; CHECK-NEXT:         .long   1
@@ -144,7 +144,7 @@ ehcleanup.end:
 ; CHECK-NEXT:         .long   .Ltmp3 at IMGREL+1
 ; CHECK-NEXT:         .long   "?filt$0 at 0@main@@"@IMGREL
 ; CHECK-NEXT:         .long   .LBB1_6 at IMGREL
-; CHECK-NEXT: .Ltmp14:
+; CHECK-NEXT: .Llsda_end0:
 
 ; CHECK:         .text
 ; CHECK:         .seh_endproc




More information about the llvm-commits mailing list