Skip to content

More VMCore Cleanups (.cpp files) #775

@llvmbot

Description

@llvmbot
Bugzilla Link 403
Resolution FIXED
Resolved on Mar 06, 2010 14:06
Version 1.0
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions