File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -3207,7 +3207,10 @@ bool AsmPrinter::emitSpecialLLVMGlobal(const GlobalVariable *GV) {
3207
3207
return true ;
3208
3208
}
3209
3209
3210
- report_fatal_error (" unknown special variable with appending linkage" );
3210
+ GV->getContext ().emitError (
3211
+ " unknown special variable with appending linkage: " +
3212
+ GV->getNameOrAsOperand ());
3213
+ return true ;
3211
3214
}
3212
3215
3213
3216
// / EmitLLVMUsedList - For targets that define a MAI::UsedDirective, mark each
Original file line number Diff line number Diff line change 1
- ; RUN: not --crash llc < %s -mtriple=i686-- 2>&1 | FileCheck %s
1
+ ; RUN: not llc < %s -mtriple=i686-- 2>&1 | FileCheck %s
2
2
3
- ; CHECK: unknown special variable with appending linkage
4
- @foo = appending constant [1 x i32 ]zeroinitializer
3
+ ; CHECK: error: unknown special variable with appending linkage: foo
4
+ @foo = appending constant [1 x i32 ] zeroinitializer
5
+
6
+ ; CHECK: error: unknown special variable with appending linkage: @0
7
+ @0 = appending constant [1 x i32 ] zeroinitializer
You can’t perform that action at this time.
0 commit comments