diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-22 18:02:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-22 18:02:04 +0000 |
commit | 678c6a089da468bc20661922cf63deedef2d9b7a (patch) | |
tree | 847e54806e7baed18b3de6cb16387eb1cb4e0e11 /lib/VMCore/Module.cpp | |
parent | baf0607cbc4457f66d43789f0500d8fa34ac1770 (diff) |
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
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r-- | lib/VMCore/Module.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index e0a6fb271c..fe9b828b2b 100644 --- a/lib/VMCore/Module.cpp +++ b/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); |