diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-23 23:43:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-23 23:43:17 +0000 |
commit | bc7b2581cb34bca623b2525e2efdf9a1261d8888 (patch) | |
tree | d992ae2518e82eaffa4e2e745537752786ae2a29 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | a10387b99ab29607473c94a12d26466c962b2b9d (diff) | |
download | bcm5719-llvm-bc7b2581cb34bca623b2525e2efdf9a1261d8888.tar.gz bcm5719-llvm-bc7b2581cb34bca623b2525e2efdf9a1261d8888.zip |
Add support for reading/writing inline asm
llvm-svn: 25564
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 6c91a4ad6a7..6a3251d68ad 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -2102,12 +2102,16 @@ void BytecodeReader::ParseModuleGlobalInfo() { if (Handler) Handler->handleTargetTriple(triple); - if (At != BlockEnd && !hasAlignment) { + if (!hasAlignment && At != BlockEnd) { // If the file has section info in it, read the section names now. unsigned NumSections = read_vbr_uint(); while (NumSections--) SectionNames.push_back(read_str()); } + + // If the file has module-level inline asm, read it now. + if (!hasAlignment && At != BlockEnd) + TheModule->setInlineAsm(read_str()); } // If any globals are in specified sections, assign them now. |