[llvm-commits] CVS: llvm/lib/Transforms/Utils/ValueMapper.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 1 15:17:24 PST 2006



Changes in directory llvm/lib/Transforms/Utils:

ValueMapper.cpp updated: 1.22 -> 1.23
---
Log message:

add valuemapper support for inline asm


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

 ValueMapper.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Utils/ValueMapper.cpp
diff -u llvm/lib/Transforms/Utils/ValueMapper.cpp:1.22 llvm/lib/Transforms/Utils/ValueMapper.cpp:1.23
--- llvm/lib/Transforms/Utils/ValueMapper.cpp:1.22	Sun Mar 26 23:50:18 2006
+++ llvm/lib/Transforms/Utils/ValueMapper.cpp	Sat Apr  1 17:17:11 2006
@@ -24,7 +24,7 @@
 
   // Global values do not need to be seeded into the ValueMap if they are using
   // the identity mapping.
-  if (isa<GlobalValue>(V))
+  if (isa<GlobalValue>(V) || isa<InlineAsm>(V))
     return VMSlot = const_cast<Value*>(V);
 
   if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V))) {






More information about the llvm-commits mailing list