diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-18 23:24:24 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-18 23:24:24 +0000 |
commit | 650d292f89643aad10a447747286ba4b07182635 (patch) | |
tree | 83904614787b901a844ce839a1ffbab7686b1df9 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | 97057f37a53f70732fa7e3c8499fac248af6405b (diff) | |
download | bcm5719-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/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index efdb4f17d26..355fc1df4c0 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -2013,6 +2013,13 @@ 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. |