[LLVMbugs] [Bug 403] NEW: More VMCore Cleanups (.cpp files)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jul 11 23:49:32 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=403

           Summary: More VMCore Cleanups (.cpp files)
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com


The placement of methods into .cpp files in lib/VMCore is somewhat awkward. Of
particular note:

1. GlobalVariable::* is at the end of Function.cpp
2. GlobalValue::* is at the end of Constant.cpp
3. the various i*.cpp files should just be put in Instructions.cpp
4. Correspondingly, the include/llvm/i*.h files should go in Instructions.h

There's probably several other cleanups but two things need to be balanced here:

1. The need to put significant amounts of code in .cpp files so that we aren't
   spending our compile time processing header files
2. The need to put member functions in .cpp files that make sense, are easy to
   find and are intuitive.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list