aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/Writer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-18 23:24:24 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-18 23:24:24 +0000
commit4b70161b69ab4d038bee38970fafcb00d0a6b03b (patch)
tree14e03018250367c3ba352a1e246c6381ee2a0fb8 /lib/Bytecode/Writer/Writer.cpp
parentae19abc2cc81fea233d08148287052204112f489 (diff)
For PR761:
Implement reading and writing of the Module's data layout string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 2013524939..aea9000754 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -1090,6 +1090,9 @@ 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());