diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-04-01 23:17:11 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-04-01 23:17:11 +0000 | 
| commit | 1b2436a624695c567b8766a4a008b6bfdd4e6c50 (patch) | |
| tree | 8a6a74a790db892a31e0c38cfb4223fe1a0be8c2 /llvm/lib/Transforms/Utils | |
| parent | dc72c177982bdabb54be9166f6a874dc155ef729 (diff) | |
| download | bcm5719-llvm-1b2436a624695c567b8766a4a008b6bfdd4e6c50.tar.gz bcm5719-llvm-1b2436a624695c567b8766a4a008b6bfdd4e6c50.zip  | |
add valuemapper support for inline asm
llvm-svn: 27332
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 6db9ed55de2..f1724db1d47 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -24,7 +24,7 @@ Value *llvm::MapValue(const Value *V, std::map<const Value*, Value*> &VM) {    // 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))) {  | 

