mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
add valuemapper support for inline asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3837d4917
commit
3805dea3fe
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user