diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-29 20:58:32 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-29 20:58:32 +0000 |
commit | 545c28117c64e78521b8b402caa060ba0b58a530 (patch) | |
tree | 2ffd69bbf9b2d4a54e169657bebcf8a578dd294c /include/clang/Frontend/CompilerInvocation.h | |
parent | 660cc18ba28dac6785ab00350974b4ca57e62ada (diff) |
Change CompilerInvocation::CreateFromArgs to take Argv0 and the address of main (or something in the main executable) so it can find the builtin compiler files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInvocation.h')
-rw-r--r-- | include/clang/Frontend/CompilerInvocation.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index f4f79cb695..76863d4ae0 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -80,9 +80,15 @@ public: /// FIXME: Documenting error behavior. /// /// \param Res [out] - The resulting invocation. - /// \param Args - The input argument strings. + /// \param ArgBegin - The first element in the argument vector. + /// \param ArgEnd - The last element in the argument vector. + /// \param Argv0 - The program path (from argv[0]), for finding the builtin + /// compiler path. + /// \param MainAddr - The address of main (or some other function in the main + /// executable), for finding the builtin compiler path. static void CreateFromArgs(CompilerInvocation &Res, const char **ArgBegin, - const char **ArgEnd); + const char **ArgEnd, const char *Argv0, + void *MainAddr); /// toArgs - Convert the CompilerInvocation to a list of strings suitable for /// passing to CreateFromArgs. |