File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -534,8 +534,8 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable *GV) {
534
534
535
535
GVSym->redefineIfPossible ();
536
536
if (GVSym->isDefined () || GVSym->isVariable ())
537
- report_fatal_error ( " symbol '" + Twine (GVSym->getName ()) +
538
- " ' is already defined" );
537
+ OutContext. reportError ( SMLoc (), " symbol '" + Twine (GVSym->getName ()) +
538
+ " ' is already defined" );
539
539
540
540
if (MAI->hasDotTypeDotSizeDirective ())
541
541
OutStreamer->emitSymbolAttribute (EmittedSym, MCSA_ELF_TypeObject);
Original file line number Diff line number Diff line change 1
- ; RUN: not --crash llc < %s 2>&1 | FileCheck %s
1
+ ; RUN: not llc -filetype=null %s 2>&1 | FileCheck %s
2
2
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3
3
target triple = "x86_64-unknown-linux-gnu"
4
4
5
5
module asm ".equiv var, __var"
6
6
7
7
@var = global i32 0
8
- ; CHECK: symbol 'var' is already defined
8
+ ; CHECK: <unknown>:0: error: symbol 'var' is already defined
9
+ ; CHECK: <unknown>:0: error: invalid symbol redefinition
You can’t perform that action at this time.
0 commit comments