[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Tue Jun 27 20:16:56 PDT 2006



Changes in directory llvm-poolalloc/lib/PoolAllocate:

TransformFunctionBody.cpp updated: 1.54 -> 1.55
---
Log message:

Ignore inline asm

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

 TransformFunctionBody.cpp |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.54 llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.55
--- llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp:1.54	Tue Jun 27 20:13:50 2006
+++ llvm-poolalloc/lib/PoolAllocate/TransformFunctionBody.cpp	Tue Jun 27 22:16:43 2006
@@ -460,6 +460,11 @@
     if (CE->getOpcode() == Instruction::Cast && isa<Function>(CE->getOperand(0)))
       CF = cast<Function>(CE->getOperand(0));
 
+  if (isa<InlineAsm>(TheCall->getOperand(0))) {
+    std::cerr << "INLINE ASM: ignoring.  Hoping that's safe.\n";
+    return;
+  }
+
   // If this function is one of the memory manipulating functions built into
   // libc, emulate it with pool calls as appropriate.
   if (CF && CF->isExternal())






More information about the llvm-commits mailing list