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 4159 - forward_as does not use second argument
Summary: forward_as does not use second argument
Status: RESOLVED FIXED
Alias: None
Product: tools
Classification: Unclassified
Component: TableGen (show other bugs)
Version: trunk
Hardware: Other Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-05 11:04 PDT by Martin Nowack
Modified: 2009-05-05 20:41 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
patch to fix forward (707 bytes, patch)
2009-05-05 11:04 PDT, Martin Nowack
Details
Documentation fix (540 bytes, patch)
2009-05-05 11:32 PDT, Martin Nowack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Nowack 2009-05-05 11:04:37 PDT
Created attachment 2956 [details]
patch to fix forward

Using forward_as to substitute a parameter with a new one does not use the new parameter in the generated file. This bug at least exists for 2.5

Patch attached to fix this. 

By the way, please update the online documentation (http://www.llvm.org/docs/CompilerDriver.html).
The provided example for forward_as omits the comma between the arguments.
Comment 1 Martin Nowack 2009-05-05 11:32:30 PDT
Created attachment 2957 [details]
Documentation fix
Comment 2 Mikhail Glushenkov 2009-05-05 20:41:27 PDT
Applied, thanks!