[llvm-commits] CVS: llvm/lib/Transforms/Utils/CloneModule.cpp

Reid Spencer reid at x10sys.com
Fri Jan 26 00:11:59 PST 2007



Changes in directory llvm/lib/Transforms/Utils:

CloneModule.cpp updated: 1.19 -> 1.20
---
Log message:

For PR761: http://llvm.org/PR761 :
The Module::setEndianness and Module::setPointerSize methods have been
removed. Instead you can get/set the DataLayout. Adjust thise accordingly.


---
Diffs of the changes:  (+1 -2)

 CloneModule.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/lib/Transforms/Utils/CloneModule.cpp
diff -u llvm/lib/Transforms/Utils/CloneModule.cpp:1.19 llvm/lib/Transforms/Utils/CloneModule.cpp:1.20
--- llvm/lib/Transforms/Utils/CloneModule.cpp:1.19	Sat Jan  6 01:24:44 2007
+++ llvm/lib/Transforms/Utils/CloneModule.cpp	Fri Jan 26 02:11:39 2007
@@ -37,8 +37,7 @@
 Module *llvm::CloneModule(const Module *M, std::map<const Value*, Value*> &ValueMap) {
   // First off, we need to create the new module...
   Module *New = new Module(M->getModuleIdentifier());
-  New->setEndianness(M->getEndianness());
-  New->setPointerSize(M->getPointerSize());
+  New->setDataLayout(M->getDataLayout());
   New->setTargetTriple(M->getTargetTriple());
   New->setModuleInlineAsm(M->getModuleInlineAsm());
 






More information about the llvm-commits mailing list