diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-30 21:19:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-30 21:19:29 +0000 |
commit | ad7da6834364a9c6df160cb598abb465f1c43a64 (patch) | |
tree | 364e3d7d0835c6d25a468b4881509e7c05447499 /llvm/docs/CommandGuide/llvm2cpp.pod | |
parent | 30945ca559f0106cbbd61fe89c05b06faf5b6d2a (diff) | |
download | bcm5719-llvm-ad7da6834364a9c6df160cb598abb465f1c43a64.tar.gz bcm5719-llvm-ad7da6834364a9c6df160cb598abb465f1c43a64.zip |
Add the new command line arguments.
llvm-svn: 28569
Diffstat (limited to 'llvm/docs/CommandGuide/llvm2cpp.pod')
-rw-r--r-- | llvm/docs/CommandGuide/llvm2cpp.pod | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm2cpp.pod b/llvm/docs/CommandGuide/llvm2cpp.pod index 9d710d08af9..0dc30acd6c2 100644 --- a/llvm/docs/CommandGuide/llvm2cpp.pod +++ b/llvm/docs/CommandGuide/llvm2cpp.pod @@ -70,6 +70,22 @@ read from the standard input then the module name will be '<stdin>'. This option overrides both these default actions and specifies that the module name used must be F<moduleName>. +=item B<-funcname> F<functionName> + +Specify the name of the function to be generated. The generated code contains a +single function that produces the input module. By default its name is +I<makeLLVMModule>. The B<-funcname> option overrides this default and allows +you to control the name of the generated function. This is handy in conjunction +with the B<-fragment> option when you only want B<llvm2cpp> to generate a +single function that produces the module. With both options, such generated code +could be I<#included> into another program. + +=item B<-fragment> + +This boolean option tells B<llvm2cpp> to generate only a program fragment. By +deault B<llvm2cpp> generates a full program. With this option specified, only a +single function that generates the input module will be generated. + =back =head1 EXIT STATUS |