[llvm-dev] Can I delete a function argument and its corresponding code from a file (original) (raw)
MIRIYALA JEEVAN KUMAR via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 4 22:29:10 PST 2020
- Previous message: [llvm-dev] Can I delete a function argument and its corresponding code from a file
- Next message: [llvm-dev] [RFC] Print FP constant assembly in hexadecimal form instead of decimal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thank you for the clarification.
On Tue, Feb 4, 2020 at 8:39 PM Johannes Doerfert <jdoerfert at anl.gov> wrote:
Hi Jeevan,
the function is externally visible, you cannot modify the signature. If it has internal or private linkage you can, assuming you adjust all the uses (call sites and other uses). Cheers, Johannes On 02/04, MIRIYALA JEEVAN KUMAR via llvm-dev wrote: > I have a following sample function in a file which contains only function > definitions like this. > > void mul(int x, int y, int& out, int arr*) { > * arr[0] = 2;* > * arr[1] = 1;* > out = x * y; > } > > I want to convert it to > void mul(int x, int y, int& out) { > out = x * y; > } > > file contains only above function definitions. > > -- > Thanks & Regards > Jeevan _> ________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-- Johannes Doerfert Researcher Argonne National Laboratory Lemont, IL 60439, USA jdoerfert at anl.gov
-- Thanks & Regards Miriyala Jeevan Kumar ph no: 8985437363 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200205/5faa9bba/attachment.html>
- Previous message: [llvm-dev] Can I delete a function argument and its corresponding code from a file
- Next message: [llvm-dev] [RFC] Print FP constant assembly in hexadecimal form instead of decimal
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]