mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +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:
@ -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
|
// Global values do not need to be seeded into the ValueMap if they are using
|
||||||
// the identity mapping.
|
// the identity mapping.
|
||||||
if (isa<GlobalValue>(V))
|
if (isa<GlobalValue>(V) || isa<InlineAsm>(V))
|
||||||
return VMSlot = const_cast<Value*>(V);
|
return VMSlot = const_cast<Value*>(V);
|
||||||
|
|
||||||
if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V))) {
|
if (Constant *C = const_cast<Constant*>(dyn_cast<Constant>(V))) {
|
||||||
|
Reference in New Issue
Block a user