From c3f6e00011f2f2b92c7059dd51b6c98a0fd84f4c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Apr 2003 18:02:04 +0000 Subject: 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 --- llvm/lib/VMCore/Module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/VMCore/Module.cpp') diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp index e0a6fb271ce..fe9b828b2b9 100644 --- a/llvm/lib/VMCore/Module.cpp +++ b/llvm/lib/VMCore/Module.cpp @@ -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); -- cgit v1.2.3