From 021830bb0394332063e856e0a9e4b6179513133b Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 19 Jan 2007 00:07:16 +0000 Subject: [PATCH] Back out last changes for dataLayout. Much more work is needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33347 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 7 ------- lib/Bytecode/Writer/Writer.cpp | 3 --- 2 files changed, 10 deletions(-) diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 355fc1df4c0..efdb4f17d26 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -2013,13 +2013,6 @@ void BytecodeReader::ParseModuleGlobalInfo() { 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. diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index aea90007549..20135249390 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -1090,9 +1090,6 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) { // Output the target triple from the module output(M->getTargetTriple()); - - // Output the data layout from the module - output(M->getDataLayout()); // Emit the table of section names. output_vbr((unsigned)SectionNames.size());