From edeaa6454ef1dc29fa3144b93e2121495b160b35 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 19 Nov 2013 21:12:39 +0000 Subject: Make it explicit that nulls are not allowed in names. The object files we support use null terminated strings, so there is no way to support these. This patch adds an assert to catch bad API use and an error check in the .ll parser. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195155 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Assembler/invalid-name.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Assembler/invalid-name.ll (limited to 'test/Assembler') diff --git a/test/Assembler/invalid-name.ll b/test/Assembler/invalid-name.ll new file mode 100644 index 0000000000..d9d7a11088 --- /dev/null +++ b/test/Assembler/invalid-name.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as %s 2>&1 | FileCheck %s + +; CHECK: expected function name +define void @"zed\00bar"() { + ret void +} -- cgit v1.2.3