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
llvm-svn: 5834
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp
index e0a6fb2..fe9b828 100644
--- a/llvm/lib/VMCore/Module.cpp
+++ b/llvm/lib/VMCore/Module.cpp
@@ -52,7 +52,8 @@
};
-Module::Module() {
+Module::Module(const std::string &MID)
+ : ModuleID(MID), Endian(BigEndian), PtrSize(Pointer64) {
FunctionList.setItemParent(this);
FunctionList.setParent(this);
GlobalList.setItemParent(this);