[llvm-dev] Can I delete a function argument and its corresponding code from a file (original) (raw)
Johannes Doerfert via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 4 07:08:34 PST 2020
- Previous message: [llvm-dev] Can I delete a function argument and its corresponding code from a file
- Next message: [llvm-dev] Can I delete a function argument and its corresponding code from a file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200204/db61d968/attachment.sig>
- Previous message: [llvm-dev] Can I delete a function argument and its corresponding code from a file
- Next message: [llvm-dev] Can I delete a function argument and its corresponding code from a file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]