aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-22 18:02:04 +0000
committerChris Lattner <sabre@nondot.org>2003-04-22 18:02:04 +0000
commit678c6a089da468bc20661922cf63deedef2d9b7a (patch)
tree847e54806e7baed18b3de6cb16387eb1cb4e0e11 /lib/VMCore/Module.cpp
parentbaf0607cbc4457f66d43789f0500d8fa34ac1770 (diff)
downloadexternal_llvm-678c6a089da468bc20661922cf63deedef2d9b7a.zip
external_llvm-678c6a089da468bc20661922cf63deedef2d9b7a.tar.gz
external_llvm-678c6a089da468bc20661922cf63deedef2d9b7a.tar.bz2
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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index e0a6fb2..fe9b828 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);