[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Jan 23 15:43:31 PST 2006



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.182 -> 1.183
---
Log message:

Add support for reading/writing inline asm


---
Diffs of the changes:  (+5 -1)

 Reader.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.182 llvm/lib/Bytecode/Reader/Reader.cpp:1.183
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.182	Mon Jan 23 02:11:03 2006
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Mon Jan 23 17:43:17 2006
@@ -2102,12 +2102,16 @@
     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.






More information about the llvm-commits mailing list