[LLVMbugs] [Bug 7439] New: avoid unecessary execing in a case of clang -cc1 and clang -cc1as

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 21 10:52:21 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7439

           Summary: avoid unecessary execing in a case of clang -cc1 and
                    clang -cc1as
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


the attached patch introduces new class "FunctionC" and embeds it into class
Job and converts cc1_main.cpp and cc1as_main.cpp to be instances of this. it
uses this class to avoid unecessary exec() in a case of calling "clang -cc1"
and "clang -cc1as"

this brings a little performance speedup and also avoids a possible problem we
encounter in FreeBSD where /foo/bar/lala/clang called /usr/bin/clang -cc1

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list