summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit650d292f89643aad10a447747286ba4b07182635 (patch)
tree83904614787b901a844ce839a1ffbab7686b1df9 /llvm/lib/Bytecode/Writer/Writer.cpp
parent97057f37a53f70732fa7e3c8499fac248af6405b (diff)
downloadbcm5719-llvm-650d292f89643aad10a447747286ba4b07182635.tar.gz
bcm5719-llvm-650d292f89643aad10a447747286ba4b07182635.zip
For PR761:
Implement reading and writing of the Module's data layout string. llvm-svn: 33346
Diffstat (limited to 'llvm/lib/Bytecode/Writer/Writer.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index 20135249390..aea90007549 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud