git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117462
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!Symbol.isUndefined() && !Rest.startswith("@@@"))
continue;
+ // FIXME: produce a better error message.
+ if (Symbol.isUndefined() && Rest.startswith("@@") &&
+ !Rest.startswith("@@@"))
+ report_fatal_error("A @@ version cannot be undefined");
+
std::pair<const MCSymbol *, const MCSymbol *> t(&Symbol, &Alias);
Renames.insert(t);
}
--- /dev/null
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t 2> %t.out
+// RUN: FileCheck --input-file=%t.out %s
+
+// CHECK: A @@ version cannot be undefined
+
+ .symver undefined, foo@@bar
+ .long undefined