LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 885 - opt tool registers multiple command line options
Summary: opt tool registers multiple command line options
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Support Libraries (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Chris Lattner
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2006-08-19 01:57 PDT by Reid Spencer
Modified: 2010-03-06 14:00 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reid Spencer 2006-08-19 01:57:19 PDT
After the analyze functionality was merged into opt, it now seems to register
multiple command line options. The simple command:

opt < /dev/null

will reproduce this output:

<unknown>: CommandLine Error: Argument 'printm' defined more than once!
<unknown>: CommandLine Error: Argument 'profile-loader' defined more than once!
<unknown>: CommandLine Error: Argument 'print' defined more than once!
opt: Standard Input empty!


Its not clear what's going on. Debugging this problem has lead to the errors
being generated in the bowels of the PassNameParser that is used to collect all
the analysis passes. However, its unclear how this could lead to duplicate pass
registrations.

Perhaps someone with a better handle on this code can figure it out.