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()) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits