Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsmWriter produces wrong output for functions with no name #3983

Closed
llvmbot opened this issue Feb 18, 2009 · 5 comments
Closed

AsmWriter produces wrong output for functions with no name #3983

llvmbot opened this issue Feb 18, 2009 · 5 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Member

llvmbot commented Feb 18, 2009

Bugzilla Link 3611
Resolution FIXED
Resolved on Feb 19, 2009 12:18
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

Same goes for global variables, it seems.

@llvmbot
Copy link
Member Author

llvmbot commented Feb 18, 2009

Hit the commit button instead of "Add an attachment"!
Bitcode showing the problem attached. It has two functions
with no name. They both get output by llvm-dis with the name
@"". Shouldn't this be a slot number? And llvm-as will not
read the resulting .ll, saying

llvm-as: noname.ll:5:21: use of undefined value '@'
@​f = alias void ()* @"" ; <void ()*> [#uses=0]

@llvmbot
Copy link
Member Author

llvmbot commented Feb 18, 2009

testcase .bc

@lattner
Copy link
Collaborator

lattner commented Feb 18, 2009

Fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090216/073952.html

Please verify the global case works as well.

@llvmbot
Copy link
Member Author

llvmbot commented Feb 19, 2009

Thanks a lot. Unfortunately globals still don't parse.
Consider

@​0 = global i32 0

Then llvm-as says:

llvm-as: noname.ll:1:1: expected top-level entity
@​0 = global i32 0
^

@lattner
Copy link
Collaborator

lattner commented Feb 19, 2009

Anonymous globals don't accept a name like that right now, this works fine though:

global i32 0

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

2 participants