Add support for tracking whether a module is 64/32 bit and big/little endian

Also add a moduleID field which can be used for diagnostics


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-04-22 18:02:04 +00:00
parent baf0607cbc
commit 678c6a089d
2 changed files with 30 additions and 9 deletions

View File

@ -52,7 +52,8 @@ struct GlobalValueRefMap {
};
Module::Module() {
Module::Module(const std::string &MID)
: ModuleID(MID), Endian(BigEndian), PtrSize(Pointer64) {
FunctionList.setItemParent(this);
FunctionList.setParent(this);
GlobalList.setItemParent(this);