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 | a0b8515f303c17fbe4184a7d69d748065a26e384 (patch) | |
tree | e25e99e65cb8459e3660288fd973e9baf8958d65 /docs/CommandGuide/llvm2cpp.pod | |
parent | 15f7e010651045f28455cd0648d9f01d67617405 (diff) | |
download | external_llvm-a0b8515f303c17fbe4184a7d69d748065a26e384.zip external_llvm-a0b8515f303c17fbe4184a7d69d748065a26e384.tar.gz external_llvm-a0b8515f303c17fbe4184a7d69d748065a26e384.tar.bz2 |
Add the new command line arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide/llvm2cpp.pod')
-rw-r--r-- | docs/CommandGuide/llvm2cpp.pod | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/CommandGuide/llvm2cpp.pod b/docs/CommandGuide/llvm2cpp.pod index 9d710d0..0dc30ac 100644 --- a/docs/CommandGuide/llvm2cpp.pod +++ b/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 |