[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Reid Spencer
reid at x10sys.com
Thu Jan 18 15:24:41 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.222 -> 1.223
---
Log message:
For PR761: http://llvm.org/PR761 :
Implement reading and writing of the Module's data layout string.
---
Diffs of the changes: (+7 -0)
Reader.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.222 llvm/lib/Bytecode/Reader/Reader.cpp:1.223
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.222 Fri Jan 12 18:09:12 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Jan 18 17:24:24 2007
@@ -2013,6 +2013,13 @@
TheModule->setTargetTriple(triple);
if (Handler)
Handler->handleTargetTriple(triple);
+
+ // Read the data layout string and place into the module.
+ std::string datalayout = read_str();
+ TheModule->setDataLayout(datalayout);
+ // FIXME: Implement
+ // if (Handler)
+ // Handler->handleDataLayout(datalayout);
if (At != BlockEnd) {
// If the file has section info in it, read the section names now.
More information about the llvm-commits
mailing list