summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitc3f6e00011f2f2b92c7059dd51b6c98a0fd84f4c (patch)
tree07cea90bb8881cf8c9bcfc69ee9f76adbcd2ee96 /llvm/lib/VMCore/Module.cpp
parente569e992d8d1e790bf56490ef38ff6407b9d5d18 (diff)
downloadbcm5719-llvm-c3f6e00011f2f2b92c7059dd51b6c98a0fd84f4c.tar.gz
bcm5719-llvm-c3f6e00011f2f2b92c7059dd51b6c98a0fd84f4c.zip
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
Diffstat (limited to 'llvm/lib/VMCore/Module.cpp')
-rw-r--r--llvm/lib/VMCore/Module.cpp3
1 files changed, 2 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud