git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247814
91177308-0d34-0410-b5e6-
96231b3b80d8
Asm.getContext().reportFatalError(Fixup.getLoc(),
Twine("symbol '") + A.getName() +
"' can not be undefined");
+ if (A.isTemporary() && A.isUndefined()) {
+ Asm.getContext().reportFatalError(Fixup.getLoc(),
+ Twine("assembler label '") + A.getName() +
+ "' can not be undefined");
+ }
MCSection *Section = Fragment->getParent();
--- /dev/null
+// RUN: not llvm-mc -filetype=obj -triple i386-pc-win32 %s 2>&1 | FileCheck %s
+// CHECK: assembler label 'Lundefined' can not be undefined
+ .text
+ movl Lundefined, %eax